IF function with multiple criteria

Horus73

Board Regular
Joined
May 7, 2003
Messages
72
Hi,
How will the formula be in the following situation?

Cel A1- 3 options for input
Jean, Pete, Jim


C A2 - If function in which I want to combine three ifs
=IF(A1="jean";"+4 points";"")
=IF(A1="Pete";"+2 points";"")
=IF(A1="Jim";"+5 points";"")

Thus, CA2 should contain one IF formula. If Jim is entered in A1 then it will give +5 points, but if Pete is entered then it will show +2 points ...and so on.

Thanks again!
Marc
 
Going down nimrod's school of thought, also
=IF(I2<=19,"0-19",IF(I2>64,">64",FLOOR(I2,5)&"-"&(FLOOR(I2,5)+4)))
 
Upvote 0

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Originally posted by Nimrod
Hi IML: Yours is my favourite solution... so far :wink:
Yes, mine too, as it's an improvement on what I originally proposed (5 replies back):

=IF(I2>64,"65+",IF(I2<=19,"0-19",INT(I2/5)*5&"-"&INT(I2/5)*5+4))
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,690
Members
449,117
Latest member
Aaagu

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