Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 34
Default If a equals "something" or "something else" do this

I have a list of names in column F and starting in row 3. What I would like
to do is write a macro that finds all instances of a certain name and then
deletes that sheet row from my spreadsheet. I was thinking of using an if
statement with an embedded or statement, but i have not come up with
anything. Any help would be great. Example below.

column f

sprint
cingular
virginmo
datawave
tracfone

Find all rows that are Sprint and Tracfone and delete entire row. As an
added feature, if it is possible to instead cut all the rows and paste them
into a new sheet that would be even better.

Thanks so much,

Mike
  #2   Report Post  
Posted to microsoft.public.excel.misc
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default If a equals "something" or "something else" do this

Take a look at the feature Data Filter Autofilter....and the CUSTOM
selection from the drop down arrow.........creative use of the "does not
include" or "begins with" etc will usually give you what you need.......this
filtered result can then be copied and pasted to another sheet.

hth
Vaya con Dios,
Chuck, CABGx3



"MikeD1224" wrote:

I have a list of names in column F and starting in row 3. What I would like
to do is write a macro that finds all instances of a certain name and then
deletes that sheet row from my spreadsheet. I was thinking of using an if
statement with an embedded or statement, but i have not come up with
anything. Any help would be great. Example below.

column f

sprint
cingular
virginmo
datawave
tracfone

Find all rows that are Sprint and Tracfone and delete entire row. As an
added feature, if it is possible to instead cut all the rows and paste them
into a new sheet that would be even better.

Thanks so much,

Mike

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP on "left","right","find","len","substitute" functions serene83 Excel Discussion (Misc queries) 5 June 27th 06 03:23 AM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 11:02 PM
create links to check boxes marked "good" fair"and "bad" pjb Excel Worksheet Functions 3 April 20th 06 03:17 AM
Complex if test program possible? If "value" "value", paste "value" in another cell? jseabold Excel Discussion (Misc queries) 1 January 30th 06 11:01 PM
Insert "-" in text "1234567890" to have a output like this"123-456-7890" Alwyn Excel Discussion (Misc queries) 3 October 26th 05 12:36 AM


All times are GMT +1. The time now is 04:30 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"