Nested If statement

ukbiz

New Member
Joined
Feb 4, 2013
Messages
2
Hi Guys, Any chance someone could look at this nested IF statement and see what the problem is. I have spent hours on it but it just doesn't seem to work.

Thanks in advance,

=IF(I18<49,7, IF(I18=50-100,11, IF(I18=101-150,12.5, IF(I18=151-501,I18/100*14, IF(I18=502-1001,I18/100*12, IF(I18=1002-5000,I18/100*10))))))

It is for delivery charges, so i'm looking at having

if cell I18 is less than 49 it should return 7
if cell I18 is less than 50-100 it should return 11
if cell I18 is less than 101-150 it should return 12.50
if cell I18 is less than 151-501 it should return 14% of Cell I18
if cell I18 is less than 502-1001 it should return 12% of cell I18
if cell I18 is less than 1002-5000 it should return 10% of cell I18.

The above formula just keeps returning 'FALSE'
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Try this

=IF(I18<=49,7,IF(I18<=100,11,IF(I18<=150,12.5,IF(I18<=501,I18/100*14,IF(I18<=1001,I18/100*12,IF(I18<=5000,I18/100*10))))))
 
Upvote 0
=lookup(i18,{0,49,100,150,501,1001,5001},{7,11,12.5,0.14,0.12,0.1})*if(i18>150,i18,1)
 
Upvote 0

Forum statistics

Threads
1,215,529
Messages
6,125,344
Members
449,219
Latest member
Smiqer

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