Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Phillip Vong
 
Posts: n/a
Default IF Statement equalling multiple words. Please Help

I want to say if cell A1 = "word1" or "word2" or "word3", then "".
Otherwise do this.

I know how to make check if it = 1 item, but how do you make it check 3 or
four things without using multiple IF statements?

Thanks

Phil


  #2   Report Post  
Cody
 
Posts: n/a
Default


Use and If(or(A1="word1",A1="word2",A1="word3"),then"",els e)

That should work for you,
Cody

"Phillip Vong" wrote:

I want to say if cell A1 = "word1" or "word2" or "word3", then "".
Otherwise do this.

I know how to make check if it = 1 item, but how do you make it check 3 or
four things without using multiple IF statements?

Thanks

Phil



  #3   Report Post  
Alan
 
Posts: n/a
Default

=IF(OR(A1="word1",A1="Word2",A1="word3"), "do something","do something
else") if any one stement is true or
=IF(AND(A1="word1",A1="Word2",A1="word3"), "do something","do something
else") if all statements are true
Regards,

"Phillip Vong" <phillip_vong*at*yahoo*dot*com wrote in message
...
I want to say if cell A1 = "word1" or "word2" or "word3", then "".
Otherwise do this.

I know how to make check if it = 1 item, but how do you make it check 3 or
four things without using multiple IF statements?

Thanks

Phil



  #4   Report Post  
Phillip Vong
 
Posts: n/a
Default

Thanks guys!

Phil


"Phillip Vong" <phillip_vong*at*yahoo*dot*com wrote in message
...
I want to say if cell A1 = "word1" or "word2" or "word3", then "".
Otherwise do this.

I know how to make check if it = 1 item, but how do you make it check 3 or
four things without using multiple IF statements?

Thanks

Phil



  #5   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Thu, 17 Mar 2005 13:52:40 -0500, "Phillip Vong"
<phillip_vong*at*yahoo*dot*com wrote:

I want to say if cell A1 = "word1" or "word2" or "word3", then "".
Otherwise do this.

I know how to make check if it = 1 item, but how do you make it check 3 or
four things without using multiple IF statements?

Thanks

Phil


A little shorter:


=IF(OR(A1={"word1","word2","word3"}),"","do this")


--ron
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
Extracting data from multiple worksheets into a list mnirula Excel Worksheet Functions 16 February 25th 05 08:52 PM
Can I get the mode, min, and max with multiple criteria? BobT Excel Discussion (Misc queries) 1 February 15th 05 03:20 AM
What statement to use? Paul Excel Worksheet Functions 6 February 13th 05 05:23 PM
How do I fix a circular reference in a financial statement? drjayhawk25 Excel Discussion (Misc queries) 0 February 7th 05 05:19 PM
XML / parent with multiple children and with multiple children Richard Excel Discussion (Misc queries) 0 January 5th 05 11:49 AM


All times are GMT +1. The time now is 06:42 PM.

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"