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

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
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,225,754
Messages
6,186,826
Members
453,377
Latest member
JoyousOne

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