Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 4
Default How do I create a formula that calculates shipping costs?

I would kike to calculate shipping costs before I receive the invoice from
the supplier. The costs are based on destination and weight of the shipment.
For example, I may have one shipment to Austria weighing 2.5 kilos, and
another weighing 25 kilos. The rates are calculated in increments of half
kilos up to 5 kilos, then after that I have a basic charge of 5 kilos plus a
reduced 0.5 kilo rate.

Can anyone help?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,886
Default How do I create a formula that calculates shipping costs?

Hi Mark

With Weight of Item in A1
Price per standard 0.5 kilo in B1
5 Kilo price in B2
Reduced 0.5 kilo price in B3

=IF(A15,B2+INT(ROUNDUP((A1/0.5),0))*B3,
INT(ROUNDUP((A1/0.5),0))*B1)

--
Regards

Roger Govier


"Mark Toulson" wrote in message
...
I would kike to calculate shipping costs before I receive the invoice
from
the supplier. The costs are based on destination and weight of the
shipment.
For example, I may have one shipment to Austria weighing 2.5 kilos,
and
another weighing 25 kilos. The rates are calculated in increments of
half
kilos up to 5 kilos, then after that I have a basic charge of 5 kilos
plus a
reduced 0.5 kilo rate.

Can anyone help?

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 4,393
Default How do I create a formula that calculates shipping costs?

Expanding on Roger's answer:
If the special rate (b3) applies only to the weight in excess of 5 kg then
=IF(A15,B2+INT(ROUNDUP(((A1-5)/0.5),0))*B3,INT(ROUNDUP((A1/0.5),0))*B1)

And if you want to avoid IF
=(A1<=5)*(ROUNDUP((A1/0.5),0)*B1)+(A15)*(B2+ROUNDUP(((A1-5)/0.5),0)*B3)

best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Roger Govier" wrote in message
...
Hi Mark

With Weight of Item in A1
Price per standard 0.5 kilo in B1
5 Kilo price in B2
Reduced 0.5 kilo price in B3

=IF(A15,B2+INT(ROUNDUP((A1/0.5),0))*B3,
INT(ROUNDUP((A1/0.5),0))*B1)

--
Regards

Roger Govier


"Mark Toulson" wrote in message
...
I would kike to calculate shipping costs before I receive the invoice from
the supplier. The costs are based on destination and weight of the
shipment.
For example, I may have one shipment to Austria weighing 2.5 kilos, and
another weighing 25 kilos. The rates are calculated in increments of half
kilos up to 5 kilos, then after that I have a basic charge of 5 kilos
plus a
reduced 0.5 kilo rate.

Can anyone help?

Thanks





  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,886
Default How do I create a formula that calculates shipping costs?

Good point Bernard.
I hadn't thought about the case where the reduced rate only applied to
weight above 5.0 kilos.
Also, i quite agree about leaving out the If's - much nicer.

--
Regards

Roger Govier


"Bernard Liengme" wrote in message
...
Expanding on Roger's answer:
If the special rate (b3) applies only to the weight in excess of 5 kg
then
=IF(A15,B2+INT(ROUNDUP(((A1-5)/0.5),0))*B3,INT(ROUNDUP((A1/0.5),0))*B1)

And if you want to avoid IF
=(A1<=5)*(ROUNDUP((A1/0.5),0)*B1)+(A15)*(B2+ROUNDUP(((A1-5)/0.5),0)*B3)

best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Roger Govier" wrote in message
...
Hi Mark

With Weight of Item in A1
Price per standard 0.5 kilo in B1
5 Kilo price in B2
Reduced 0.5 kilo price in B3

=IF(A15,B2+INT(ROUNDUP((A1/0.5),0))*B3,
INT(ROUNDUP((A1/0.5),0))*B1)

--
Regards

Roger Govier


"Mark Toulson" wrote in
message ...
I would kike to calculate shipping costs before I receive the invoice
from
the supplier. The costs are based on destination and weight of the
shipment.
For example, I may have one shipment to Austria weighing 2.5 kilos,
and
another weighing 25 kilos. The rates are calculated in increments of
half
kilos up to 5 kilos, then after that I have a basic charge of 5
kilos plus a
reduced 0.5 kilo rate.

Can anyone help?

Thanks







Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Find value in array Brook6 Excel Worksheet Functions 26 January 30th 07 09:40 PM
How do I create a certain type of Excel formula? Danny Excel Worksheet Functions 5 October 12th 06 07:45 AM
How do I create an If/or formula with more then two answers? LisaLisaKK Excel Discussion (Misc queries) 4 October 5th 06 06:39 PM
How do I create a 26 'tier' IF formula? callum Excel Discussion (Misc queries) 5 October 23rd 05 04:48 PM
How to create specific formula STS Excel Worksheet Functions 4 May 2nd 05 01:44 AM


All times are GMT +1. The time now is 11:24 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"