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 statements refering to data validated ranges



 
 
Thread Tools Display Modes
  #1  
Old June 22nd, 2009, 09:43 PM posted to microsoft.public.excel.worksheet.functions
skimark
external usenet poster
 
Posts: 3
Default If statements refering to data validated ranges

I am creating a spredsheet where a series of questions are posed with data
validated answers - such as '0-6 months' or 'over 6 months'.
Then I want to add an if statement to another cell that goes if the answer
to the above question (if(c30=over 6 months, yes, no) but I get an error
message - any suggestions?



  #2  
Old June 22nd, 2009, 10:29 PM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default If statements refering to data validated ranges

(if(c30=over 6 months, yes, no)

Try it like this:

=IF(C30="over 6 months","yes","no")

--
Biff
Microsoft Excel MVP


"skimark" wrote in message
...
I am creating a spredsheet where a series of questions are posed with data
validated answers - such as '0-6 months' or 'over 6 months'.
Then I want to add an if statement to another cell that goes if the answer
to the above question (if(c30=over 6 months, yes, no) but I get an error
message - any suggestions?





  #3  
Old June 22nd, 2009, 10:38 PM posted to microsoft.public.excel.worksheet.functions
Tom Hutchins
external usenet poster
 
Posts: 722
Default If statements refering to data validated ranges

Enclosing the text strings in your IF function should make it work:

=IF(C30="over 6 months","Yes", "No")

Hope this helps,

Hutch

"skimark" wrote:

I am creating a spredsheet where a series of questions are posed with data
validated answers - such as '0-6 months' or 'over 6 months'.
Then I want to add an if statement to another cell that goes if the answer
to the above question (if(c30=over 6 months, yes, no) but I get an error
message - any suggestions?



 




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 08:01 PM.


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