ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   If statements refering to data validated ranges (https://www.excelbanter.com/excel-worksheet-functions/234630-if-statements-refering-data-validated-ranges.html)

skimark

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?




T. Valko

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?






Tom Hutchins

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?





All times are GMT +1. The time now is 12:27 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com