Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Fiveif statements in a formula

I want to check a cell for one of five responses from a deeop down list. The
if works fine for up to four but the fifth is not allowed. Below is the
formula that works. belo0w that is the fifth condition I want to check for.
Any suggestions?
Thanks

=IF(Survey!E8:E8="Agree","1",IF(Survey!E8:E8="Some what
Agree","2",IF(Survey!E8:E8="Somewhat
Disagree","3",IF(Survey!E8:E8="Disagree","4"))))


IF(Survey!E8:E8="Not Aplicable","0")

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default Fiveif statements in a formula

Hi!

What do you mean by "is not allowed" ?

It works for me:

=IF(Survey!E8="Agree",1,IF(Survey!E8="Somewhat
Agree",2,IF(Survey!E8="Somewhat
Disagree",3,IF(Survey!E8="Disagree",4,IF(Survey!E8 ="Not Aplicable",0,"")))))

Some alternatives:

=VLOOKUP(Survey!E8,{"Agree",1;"Somewhat Agree",2;"Somewhat
Disagree",3;"Disagree",4;"Not Aplicable",0},2,0)

=IF(Survey!E8="Not Aplicable",0,MATCH(Survey!E8,{"Agree","Somewhat
Agree","Somewhat Disagree","Disagree"},0))

Check your spelling on "Aplicable"!

Biff

"BillS" wrote in message
...
I want to check a cell for one of five responses from a deeop down list.
The
if works fine for up to four but the fifth is not allowed. Below is the
formula that works. belo0w that is the fifth condition I want to check
for.
Any suggestions?
Thanks

=IF(Survey!E8:E8="Agree","1",IF(Survey!E8:E8="Some what
Agree","2",IF(Survey!E8:E8="Somewhat
Disagree","3",IF(Survey!E8:E8="Disagree","4"))))


IF(Survey!E8:E8="Not Aplicable","0")



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
HOW MANY IF STATEMENTS CAN YOU HAVE IN ONE FORMULA? bvehslage Excel Discussion (Misc queries) 2 May 17th 06 07:57 PM
assign formula to another cell Dannycol Excel Worksheet Functions 3 May 12th 06 09:46 PM
"Unable to set the Formula property of the Series class" with a tw PeterQ Charts and Charting in Excel 1 February 15th 06 07:37 PM
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM


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