A
Andrew
I have developed a file to advise me when I should rise the weight of a
airfreight shipment to receive the best rates available. (It's still
quite rudimentary at this stage)
How it works is like this...let's assume anything up to 45 kgs will
cost $4.70 per kg, anything equal or above 45 kgs will cost $4.00 per
kg. If we consider that 45 kgs X $4.00 costs $180.00, then any shipment
above 38 kgs at $4.70 per kg will cost more (39 kgs X $4.70 will cost
$183.33, nothing less than a whole kg is valid). Therefore, it is best
to raise the shipment weight to 45 kgs to avoid paying undue shipping
costs.
What I would like to do is make a custom function add-in such as I saw
on this site at
http://www.exceltip.com/st/Build_an_Excel_Add-In_in_Microsoft_Excel/633.html,
so that when I select Insert Formula, I can enter the relevant
information and the VBA will do the rest.
One catch...I want a pop-up comment or something similar to advise me
when to raise the shipment rate rather than a separate cell as you see
on my attached file. The reason is that I may not want to change the
weight depending on the circumstances, I just want to know when the
opportunity arises.
Another thing to be considered is that there is a minimum charge,
(let's say $80.00) so any shipment less than 18 kgs will incur this
minimum charge (17 kgs X $4.70 = $79.90). This should change the
airfreight amount automatically, but I still wish to notified so I
understand what has happened.
I am still learning basic VBA, but from I understand of how it works, I
think what I want can be programmed. If anyone can show me how to
achieve this, this will assist me greatly as a reference for future
projects. Thanks very much.
Attachment filename: airfreight rates optimum calculator.xls
Download attachment: http://www.excelforum.com/attachment.php?postid=403794
airfreight shipment to receive the best rates available. (It's still
quite rudimentary at this stage)
How it works is like this...let's assume anything up to 45 kgs will
cost $4.70 per kg, anything equal or above 45 kgs will cost $4.00 per
kg. If we consider that 45 kgs X $4.00 costs $180.00, then any shipment
above 38 kgs at $4.70 per kg will cost more (39 kgs X $4.70 will cost
$183.33, nothing less than a whole kg is valid). Therefore, it is best
to raise the shipment weight to 45 kgs to avoid paying undue shipping
costs.
What I would like to do is make a custom function add-in such as I saw
on this site at
http://www.exceltip.com/st/Build_an_Excel_Add-In_in_Microsoft_Excel/633.html,
so that when I select Insert Formula, I can enter the relevant
information and the VBA will do the rest.
One catch...I want a pop-up comment or something similar to advise me
when to raise the shipment rate rather than a separate cell as you see
on my attached file. The reason is that I may not want to change the
weight depending on the circumstances, I just want to know when the
opportunity arises.
Another thing to be considered is that there is a minimum charge,
(let's say $80.00) so any shipment less than 18 kgs will incur this
minimum charge (17 kgs X $4.70 = $79.90). This should change the
airfreight amount automatically, but I still wish to notified so I
understand what has happened.
I am still learning basic VBA, but from I understand of how it works, I
think what I want can be programmed. If anyone can show me how to
achieve this, this will assist me greatly as a reference for future
projects. Thanks very much.
Attachment filename: airfreight rates optimum calculator.xls
Download attachment: http://www.excelforum.com/attachment.php?postid=403794