if statment with more than 7 logical values

kings21

Board Regular
Joined
Mar 13, 2007
Messages
62
I tried using this based on another post

=(IF(C5="Jim",H5*27.5,IF(C5="Don",H5*29,IF(C5="Francisco",H5*25.5,IF(C5="Cristobal",H5*16,IF(C5="Paulino",H5*19,IF(C5="Alex",H5*19,IF(C5="","",)))))))&IF(C5="Joe",H5*15,IF(C5="Martin",H5*28.5,IF(C5="Ernesto",H5*16,IF(C5="","")))))


but keep getting this as an example

159.5FALSE

I am sure I just missed something small somewhere in there.

Thanks in advance!!
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Use a lookup table:

Excel 2010
ABCDEFGH
1Jim27.5
2Don29
3Francisco25.5
4Cristobal16
5Paulino19Jim2750100
6Alex19
7Joe15
8Martin28.5
9Ernesto16

<colgroup><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet2
The formula in D5 is:

=IF(C5="","",H5*VLOOKUP(C5,A1:B9,2,FALSE))
 
Upvote 0
Hi,

Try:

=IF(C5="Jim",H5*27.5,IF(C5="Don",H5*29,IF(C5="Francisco",H5*25.5,IF(C5="Cristobal",H5*16,IF(C5="Paulino",H5*19,IF(C5="Alex",H5*19,IF(C5="","",)))))))&IF(C5="Joe",H5*15,IF(C5="Martin",H5*28.5,IF(C5="Ernesto",H5*16,"")))

I would use a lookup table though as Andrew suggests.

Dom
 
Upvote 0
Thanks to both of you!! I think Dom’s will work easier for the sheets I need to use it for and because I really don't know much about using a lookup table.
 
Upvote 0
Ohh one more quick question. I lost the formatting using Dom's formula. How do II get it back to currency?
 
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,702
Members
448,980
Latest member
CarlosWin

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