Why won't it work

Brown

Board Regular
Joined
Sep 14, 2009
Messages
200
Office Version
  1. 365
I am trying to get a cell to return a value, if cell 1 has a value entered from a drop down box then I want cell 2 to return a value. Here is what I am using and cannot get it to work;

=if(b6=" "," ",if(b6=A,"4.0",if(b6=B,"3.0",if(b6=C,"2.0",if(b6=D,"1.0",if(b6=F,"0.0",if(b6=AP,"5.0",if(b6=BP,"4.0",if(b6=CP,"3.0",if(b6=DP,"2.0"," ")))))))))))

Any ideas?:confused:

Thanks
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
There is a limit (7 I think) to the number of If conditions you can have in a formula

Try tabulating your relationships, and use vlookup()
 
Last edited:
Upvote 0
Try

=IF(B6="","",LOOKUP(B6,{"A","B","C","D","F","AP","BP","CP","DP"},{4,3,2,1,0,5,4,3,2}))
 
Upvote 0
I have never used a vlookup, but I will try to figure it out. Thanks for the quick response.
 
Upvote 0
jonmo that worked, except the AP comes back as a 4 not a 5, and the BP comes back as a 3 not 4. Any ideas?

Thanks again!
Brown
 
Upvote 0
Woops..forgot to sort the lookup table...

Post # 4 should be

=IF(B6="","",LOOKUP(B6,{"A","AP","B","BP","C","CP","D","DP","F"},{4,5,3,4,2,3,1,2,0}))
 
Upvote 0

Forum statistics

Threads
1,224,595
Messages
6,179,799
Members
452,943
Latest member
Newbie4296

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top