View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.misc
Toppers Toppers is offline
external usenet poster
 
Posts: 4,339
Default if statement where cell is not empty

=If(A1<"","do this","do that")

< means "Is not"/"Not equal to" so <"" means "is not empty"

BUT equally

=if(A1="","do this","do something else") would also work as the "do
something else" is actioned if A1 is not empty.

HTH

"mattguerilla" wrote:

when writing if statements, if I want a certain action when the cell is empty
i write - if(A1="","do this","do something else"). But if I want it to do
something when there is anything in the cell in question how do I write the
statement? ie, if(A1="anything","do this","do something else".

Hope I am making sense.

Matt