Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel search & delete

Status
Not open for further replies.

Excelprincess

Instructor
Sep 11, 2002
11
US
I have an excel spreadsheet and I wish to delete cells with a value of "n" with one command. Example: I want to delete all rows that have a value of 1.
How might this be accomplished?
 
Might have to elaborate on the 'one command' bit. You can do what you want manually with Data / Filter / Autofilter / 1, then select the range of 1s and do Edit / Go To / Visible cells only, then Edit / Delete / Entire row.

This can also be automated such that you either get a prompt for the value n, or if you have already put it in a cell it can simply use that value for the filter, or it can just be hardcoded into the routine. Where do you want to go?

Regards
Ken...............

----------------------------------------------------------------------------
[peace]It's easier to beg forgiveness than ask permission[2thumbsup]

----------------------------------------------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top