Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
HOW MANY IF STATEMENTS CAN YOU HAVE IN ONE FORMULA? | Excel Discussion (Misc queries) | |||
assign formula to another cell | Excel Worksheet Functions | |||
"Unable to set the Formula property of the Series class" with a tw | Charts and Charting in Excel | |||
Dynamic Range with unused formula messing up x axis on dynamic graph | Charts and Charting in Excel | |||
Match then lookup | Excel Worksheet Functions |