Formula help

MissK2018

New Member
Joined
Jan 23, 2018
Messages
8
Hi There,

I'm trying to do the following:
if K7 is greater than or equal to 10 but less than 11 enter "10%"
if K7 if greater than or equal to 6 but less than 10 enter "7%"
If K7 is greater than or equal to 3 but less than 6, enter "5%"
If K7 is less than or equal to 2 enter "2.5%"

=IF(AND(K7>=10,K7<11),"10%"),IF(AND(K7>=6,K7<10),"7%",IF(AND(K7>=3,K7<6),B31,"5%", IF(K7<=2,"2.5%"))))

I've got something wrong here but I can't figure it out ..

Any help would be greatly appreciated!
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Hello,

Try this formula:
=IF(AND(K7>=10,K7<11),"10%",IF(AND(K7>=6,K7<10),"7%",IF(AND(K7>=3,K7<6),"5%", IF(K7<=2,"2.5%"))))

Hurkk
 
Upvote 0
Note that if you plan to use the values it returns in calculations, you will want to make a minor change.
Remove the double-quotes from around the percentages, i.e.
change
"10%"
to
10%

Using double-quotes will return the value as text, and not numeric, so it probably won't work right if being used in calculations.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,169
Members
453,021
Latest member
Justyna P

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