Advanced lookup & comparing (of transportation costs)

Pastafarian

New Member
Joined
Feb 21, 2012
Messages
30
Hello,

I haven't found a similar question nor answer to this problem yet, so I'm posting it here hoping someone can help out.
I want to compare the costs of different transportation methods. These costs differ by the country, zipcode and the amount you need to send (packages or pallets).
Users would need to select the country from a dropdown list, then fill in the zipcode and the amount of pallets or packages. It should then pull the costs from the different transporting-companies from different sheets and paste them in cells for the user to compare.

Example data is as shown below:

Transporting-company 1:
Transporter 1GermanyGermanyGermanyGermanyUKUKUKUK
# of pallets43,48-5041,4232-3637,39,51,54532CR,ME,UB,COSO,SP,M,HGAB,PH,CADA,NW,UB
1100110120130120130140150
2180200220240230238246254
3240255270285330336342348
4290305320335420425430435
5340352364376505510515520

<tbody>
</tbody>

Transporting-company 2:
Transporter 2GermanyGermanyGermanyGermanyGermanyUKUKUKUK
# of pallets43,4941,42,4832-3637,39,5450,51CR,ME,UBSO,SP,M,COAB,PH,CADA,NW,UB,HG
1110120130140150115120125130
2185195205215225214218222226
3260263266269272352354356358
4302307312317322365368371374
5308315322329336425433441449

<tbody>
</tbody>

Please note there's a difference between transporter in zones for zipcodes and the amount of 'zones'. For UK customers the prices are dispersed by the first two letters of the zipcode. For all other countries the prices are based on zipcodes in numbers, usually the first two, but sometimes it needs an exact match, like Transporter1-Germany Zone 5.

Example1: I want to transport 4 pallets to Germany to zipzode 50769 (Köln), it should get 290 Euro from Transporter 1 and 332 Euro from Transporter 2.
Example2: I want to transport 2 pallets to Germany to zipcode 54532, it should get 240 Euro from Transporter 1 and 215 Euro from Transporter 2.
Example3: I want to transport 3 pallets to the UK to zipcode CO1 2XL, it should get 330 Euro from Transporter 1 and 354 Euro from transporter 2.

So far I've got the part where I can check for the first two digits of the zipcode and get the costs based on the amount of pallets, but I can't get the zipcodes that are in a 'range' (like 32-36) to work and I also can't get it to work for UK customers.

Anybody got any idea how to tackle this problem?

Any help much appreciated!
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
I will actually make it a bit harder:):

I want to compare these prices to the prices of sending the same shipment by packages instead of pallets.
So basicly the situation becomes as follows: I have a shipment and want to know what it'll cost to ship it with Transporter 1, Transporter 2 or Transporter 3 where Transporter 1 and 2 ship it by pallets and Transporter 3 ships the packages separately. In some cases, when the shipment isn't too big, shipping it as separate packages is cheaper.

The prices for Transporter 3 are noted as:

UKGermany France
Per Package € 8,00 € 6,00 € 11,00
10 kg € 5,00 € 8,00 € 7,00
20 kg € 10,00 € 15,00 € 14,00
30 kg € 15,00 € 20,00 € 19,50
40 kg € 18,00 € 24,00 € 23,40
50 kg € 20,50 € 27,50 € 27,30
80 kg € 22,00 € 30,50 € 31,20
100 kg € 23,50 € 33,50 € 35,10
150 kg € 25,00 € 36,50 € 39,00
200 kg € 26,50 € 39,50 € 42,90
Above 200 per kg € 0,08 € 0,09 € 0,12

<tbody>
</tbody>

There is a minimal rate per package and a price based on the weight (actualy or volume weight, heighest counts). The highest amount will be invoiced. Above the 200kg there will be a certain amount per kg which is added to the 200 kg price.
Example1: 3 packages UK which weigh 35kg with volumeweight of 55kg. Package rate: 3x8 = 24 Euro. Volume-weight > actual weight, so 55 kg = 22 Euro. Price will be: 24 Euro.
Example2: 6 packages Germany which weigh 78kg with volumeweight of 212kg. Package rate: 6x6 = 36 Euro. Volume-weight > actual weight, so 212 kg = 39,50+(12*0,09) = 40,58 Euro. Price will be 40,58 Euro.

Users will input:
-The country
-The zipcode (For pallettransport by T1 and T2)
-The amount of pallets ánd the amount of packages it holds.

It should give back the costs for transporting it with Transporter 1, 2 and 3 so the user can decide with what Transporter it should transport the shipment with.


I know it's a lot to ask, so if anyone could just design a part of it, I'll adjust it to my own needs, I've been stuck on this for too long.
If requested, I can add a example workbook.


Any help appreciated!
 
Upvote 0

Forum statistics

Threads
1,215,147
Messages
6,123,296
Members
449,095
Latest member
Chestertim

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