Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Jim
 
Posts: n/a
Default possible? =if(That cell = "a certain word", delete row, go next)

Can Conditions include operative actions if true or false? such as:

If cell A7 = "Smith", delete row if yes, go to next cell if no ???

  #2   Report Post  
Posted to microsoft.public.excel.misc
Nick Hodge
 
Posts: n/a
Default possible? =if(That cell = "a certain word", delete row, go next)

Jim

No, functions can only return a value, you will need a macro if you want
automated actions

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
www.nickhodge.co.uk
HIS


"Jim" wrote in message
...
Can Conditions include operative actions if true or false? such as:

If cell A7 = "Smith", delete row if yes, go to next cell if no ???



  #3   Report Post  
Posted to microsoft.public.excel.misc
Toppers
 
Posts: n/a
Default possible? =if(That cell = "a certain word", delete row, go next)

Jim,
You need to use VBA to do this.

Deletes any row containing Smith in column A .... must start at last row and
work upwards

Sub DeleteRow()
e.g For r = 100 to 1 step -1
If cells(r,1)=Ucase("Smith") then
cell(r,1).entirerow.delete
End if
Next r
End sub

"Jim" wrote:

Can Conditions include operative actions if true or false? such as:

If cell A7 = "Smith", delete row if yes, go to next cell if no ???

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
delete a cell if it contains specific word Tim Excel Discussion (Misc queries) 1 February 2nd 06 04:31 PM
VBA Excel Macro to delete contents in named cell reaa Excel Discussion (Misc queries) 1 January 3rd 06 08:16 PM
How do I delete the automatically inserted ' in every Excel cell? SLW Excel Discussion (Misc queries) 6 August 24th 05 03:17 PM
How do you delete a cell then shift cell up? Isela Excel Discussion (Misc queries) 4 January 22nd 05 01:41 AM
Delete Cell Value Based on Another Cell T or F DocuMike Excel Discussion (Misc queries) 3 January 5th 05 08:46 PM


All times are GMT +1. The time now is 07:11 AM.

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

About Us

"It's about Microsoft Excel"