#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pam Pam is offline
external usenet poster
 
Posts: 128
Default =OR and =IF Help

I'm trying to do a formula that will look at what someone types in a cell. If
what was typed is one specific word or another, something happens. But if the
person didn't type one of those words, something else will happen.

Any ideas?
tia

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default =OR and =IF Help

=IF(OR(A1="word1",A1="word2"),"Do this","do something else")

HTH

"Pam" wrote:

I'm trying to do a formula that will look at what someone types in a cell. If
what was typed is one specific word or another, something happens. But if the
person didn't type one of those words, something else will happen.

Any ideas?
tia

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default =OR and =IF Help

Try this:

=IF(A1="x","First Option",IF(A1="y","Second Option","Unspecified"))

Mike

"Pam" wrote:

I'm trying to do a formula that will look at what someone types in a cell. If
what was typed is one specific word or another, something happens. But if the
person didn't type one of those words, something else will happen.

Any ideas?
tia

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pam Pam is offline
external usenet poster
 
Posts: 128
Default =OR and =IF Help

Thanks so much to both of you. I was on the right track, just needed a bit of
a push! :)

"Mike H" wrote:

Try this:

=IF(A1="x","First Option",IF(A1="y","Second Option","Unspecified"))

Mike

"Pam" wrote:

I'm trying to do a formula that will look at what someone types in a cell. If
what was typed is one specific word or another, something happens. But if the
person didn't type one of those words, something else will happen.

Any ideas?
tia

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



All times are GMT +1. The time now is 11:08 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"