A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

"IF" question



 
 
Thread Tools Display Modes
  #1  
Old September 23rd, 2009, 05:37 PM posted to microsoft.public.excel.worksheet.functions
Adam
external usenet poster
 
Posts: 545
Default "IF" question

I am trying to get cell BA2 to look at BA1 and say "Yes" if BA1 is equal to
either "1" or "3". I know this should be simple, but for the life of me I
can't remember how to write this.

Thanks
  #2  
Old September 23rd, 2009, 05:41 PM posted to microsoft.public.excel.worksheet.functions
Jacob Skaria
external usenet poster
 
Posts: 5,952
Default "IF" question

Try the below in cell BA2
=IF(OR(BA1=1,BA1=3),"Yes","")

If this post helps click Yes
---------------
Jacob Skaria


"Adam" wrote:

I am trying to get cell BA2 to look at BA1 and say "Yes" if BA1 is equal to
either "1" or "3". I know this should be simple, but for the life of me I
can't remember how to write this.

Thanks

  #3  
Old September 23rd, 2009, 05:44 PM posted to microsoft.public.excel.worksheet.functions
eduardo
external usenet poster
 
Posts: 2,131
Default "IF" question

Hi,
=if(or(BA1=1,BA1=3),"YES","")

I assume you wanted a blank space if the values are not 1 or 3 is you want
no use

=if(or(BA1=1,BA1=3),"YES","NO")

"Adam" wrote:

I am trying to get cell BA2 to look at BA1 and say "Yes" if BA1 is equal to
either "1" or "3". I know this should be simple, but for the life of me I
can't remember how to write this.

Thanks

  #4  
Old September 23rd, 2009, 05:59 PM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default "IF" question

One way:

=IF(OR(BA1={1,3}),"Yes","")

--
Biff
Microsoft Excel MVP


"Adam" wrote in message
...
I am trying to get cell BA2 to look at BA1 and say "Yes" if BA1 is equal to
either "1" or "3". I know this should be simple, but for the life of me I
can't remember how to write this.

Thanks



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:24 AM.


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