Nested If statements

Excel for President

New Member
Joined
Nov 4, 2016
Messages
8
I am currently struggling with a formula I have in my excel. There is a number in cell F11 that is between 1 and 5 (it varies based on the information entered). I am trying to write a formula that will say if the number is less than 2, then say Bronze. If it is 2-3, then say Silver. If it is 3-4 then say Gold. Finally, if it is greater than 4, then say Platinum. I've tried using: =IF(F11>4,"Platinum",=IF(F11>3,"Gold",=IF(F11>2,"Silver",=IF(F11>1,"Bronze",0)))) and =IF(F11<2,"Bronze",=IF(AND(F11>2,F11<3),"Silver",=IF(AND(F11>3,F11<4),"Gold",=IF(F11>4,"Platinum")))) but had no luck with neither formula. I thought both formulas would work but apparently I was sadly mistaken. Is there something I'm missing? Any help is much appreciated!
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
real numbers or text numbers?
 
Upvote 0
The conditions you gave above are not really clear.... what if the number is 3... is it silver or gold?
If you are inputting integers (no decimal places) then this will work for 1 = bronze, 2 = bronze, 3 = silver, 4=gold, 5 = platinum....
=IF(AND(F11>0, F11<6),CHOOSE(F11, "Bronze","Bronze","Silver","Gold", "Platinum"),"not a number between 1 and 5...")

If you are using decimals...

<style type="text/css">p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Lucida Grande'}span.s1 {color: #006107}span.s2 {color: #0057d6}span.s3 {color: #ab30d6}</style>=IF(AND(F11>=1, F11<=5),CHOOSE(ROUNDUP(F11,0),"Bronze", "Bronze", "Silver", "Gold","Platinum"),"not a number between 1 and 5...")
 
Upvote 0
Maybe the numbers are actually text?

What if you replace all of the F11 with --F11?

=IF(AND(--F11>=1, --F11<=5),CHOOSE(ROUNDUP(--F11,0),"Bronze", "Bronze", "Silver", "Gold","Platinum"),"not a number between 1 and 5...")
 
Upvote 0

Forum statistics

Threads
1,223,243
Messages
6,170,964
Members
452,371
Latest member
Frana

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