Vlookup on Multiple Criteria

adamski911

New Member
Joined
Sep 19, 2012
Messages
16
Hi,

I am after a lookup formula to bring across the freight cost to give me a total cost of deliverys?

Please see below table.


CountryCityCatergoryCost
USANew YorkInbound Freight£10
USANew YorkOutbound Freight£15
USANew YorkFree of Charge£0
USAOrlandoInbound Freight£15
USAOrlandoOutbound Freight£20
USAOrlandoFree of Charge£0
USALos AngelesInbound Freight£12
USALos AngelesOutbound Freight£18
USALos AngelesFree of Charge£0

<colgroup><col width="64" style="width: 48pt;"><colgroup><col width="80" style="width: 60pt; mso-width-source: userset; mso-width-alt: 2925;"><colgroup><col width="118" style="width: 89pt; mso-width-source: userset; mso-width-alt: 4315;"><colgroup><col width="75" style="width: 56pt; mso-width-source: userset; mso-width-alt: 2742;"><tbody>
</tbody>


CountryCityNo of ShipmentsDateFreight Total Cost
USANew York501/05/2018Inbound Freight
USANew York127/05/2018Outbound Freight
USAOrlando603/06/2018Outbound Freight
USALos Angeles614/06/2018Free of Charge
<colgroup><col width="64" style="width: 48pt;"> <col width="80" style="width: 60pt; mso-width-source: userset; mso-width-alt: 2925;"> <col width="118" style="width: 89pt; mso-width-source: userset; mso-width-alt: 4315;"> <col width="75" style="width: 56pt; mso-width-source: userset; mso-width-alt: 2742;"> <col width="118" style="width: 89pt; mso-width-source: userset; mso-width-alt: 4315;"> <col width="64" style="width: 48pt;"> <tbody> </tbody>

Thanks
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
in Sheet2!F2
=LOOKUP(2,1/(Sheet1!A$2:A$10=A2)/(Sheet1!B$2:B$10=B2)/(Sheet1!C$2:C$10=E2),(Sheet1!D$2:D$10))
and copy down the column
 
Upvote 0
This is great,however I forgot to mention that I have some tabs that are only inbound freight and only outbound freight etc and was wondering if its possible to incorporate some sort of IF statement so it just returns the price for inbound.ie USA and New York?
 
Upvote 0

Forum statistics

Threads
1,215,364
Messages
6,124,509
Members
449,166
Latest member
hokjock

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