Help with IF Formula - New(ish) to Excel

AllisonCorey

New Member
Joined
Apr 4, 2017
Messages
4
See formula below, and what I am trying to accomplish:
=IF((D53>=1<=5),D53*0.5,IF((D53>=6<=44),D53*0.42,IF((D53>=45<=66),D53*0.4,IF((D53>=67<=132),D53*0.36,IF((D53>=133<=400),D53*0.3, IF((D53>400), Quote))))))

I am trying to create a formula to help calculate charges... essentially, what I need the formula to do is the following:

If the weight is between:
1-5 lbs, charge $0.50 per lb
6-44 lbs, charge $0.42 per lb
45-66 lbs, charge $0.40 per lb
67-132 lbs, charge $0.36 per lb
133-400 lbs, charge $0.30 per lb
Anything over 400 lbs, Quote.

D53 is the total weight of the order. I don't know what I am doing wrong, as it just keeps calculating as "False"

Any help would be greatly appreciated. Very new to Excel formulas!
-Allison
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
I think it's: =IF(D53>400,"Quote",D53*LOOKUP(D53,{1;6;45;67;133},{0.5;0.42;0.4;0.36;0.3}))

If D53 is more than 400, return "Quote", otherwise look up the threshold value in {1;6;45;67;133} and multiply D53 by the equivalent multiplier from {0.5;0.42;0.4;0.36;0.3}.
 
Last edited:
Upvote 0
I'm pleased! :) And the formula should be easy enough to modify if you change your charging rates at any time in the future.

There are so many functions in Excel, sometimes it's difficult to find the exact right one.
 
Upvote 0

Forum statistics

Threads
1,215,276
Messages
6,124,007
Members
449,139
Latest member
sramesh1024

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