Shipping calculations for weight based sheet

ianharper68

New Member
Joined
May 16, 2024
Messages
8
Office Version
  1. 2021
Platform
  1. MacOS
Hello all,

I am building a spreadsheet for quoting my customer.

They order multiple items and we consolidate and then ship on once we have a full trailer.

My question I have been asked to give a collection rate based on weight of products rather than size of pallets.

My rates for instance would be as follows:

Screenshot 2024-09-04 at 15.32.09.png



I have tried the following formula but it doesn't quite work and I can't work out what need to change to make it work correctly:

=IFS(G5<50,H5,G5<100,I5,G5<250,J5,G5<500,K5,G5<1000,L5,G5<2000,M5,G5<3000,N5,G5>3000,O5)

For instance if I put 49 in the KG column I get 35 as the price, then if I put 50 I get 35 however the formula says Less than <50 should only give that result.

My next issue is a want the total to be either 35 for less than 50 KG or the KG rate * total kgs to give a total cost?

I tried this and it works fine for anything over 51kg but I don't want it to calculate the Min charge of £35

=IFS(G5<50,H5,G5<100,I5,G5<250,J5,G5<500,K5,G5<1000,L5,G5<2000,M5,G5<3000,N5,G5>3000,O5)*G5

As you can see I have the issue of the first two lines not being correct values :(

Screenshot 2024-09-04 at 15.34.28.png


Can somebody please help :)
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
If you are happy to change the headers, how about
Fluff.xlsm
GHIJKLMNOP
4050100250500100020003000
549350.70.60.50.40.30.20.135
650350.70.60.50.40.30.20.135
751350.70.60.50.40.30.20.135.7
899350.70.60.50.40.30.20.169.3
91500350.70.60.50.40.30.20.1450
Sheet6
Cell Formulas
RangeFormula
P5:P9P5=INDEX(H5:O5,XMATCH(G5,$H$4:$O$4,-1))*(IF(G5<50,1,G5))
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
If you are happy to change the headers, how about
Fluff.xlsm
GHIJKLMNOP
4050100250500100020003000
549350.70.60.50.40.30.20.135
650350.70.60.50.40.30.20.135
751350.70.60.50.40.30.20.135.7
899350.70.60.50.40.30.20.169.3
91500350.70.60.50.40.30.20.1450
Sheet6
Cell Formulas
RangeFormula
P5:P9P5=INDEX(H5:O5,XMATCH(G5,$H$4:$O$4,-1))*(IF(G5<50,1,G5))
Sorry Fluff, just one more question if I have a 0 or blank in the KG column how do I return a - in the total column as will be adding a sum total eventually when I sort the rest of the sheet out :)
 
Upvote 0
Why do you need an - instead of 0? As a 0 will not affect the result of a sum.
 
Upvote 0
You can always use a custom cell format to display a - rather than 0
 
Upvote 0
Ok, how about
Excel Formula:
=IF(G5=0,"-",INDEX(H5:O5,XMATCH(G5,$H$4:$O$4,-1))*(IF(G5<50,1,G5)))
 
Upvote 0
Solution

Forum statistics

Threads
1,221,310
Messages
6,159,173
Members
451,543
Latest member
cesymcox

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