VBA VLOOKUP from multiple columns

Neveidas

New Member
Joined
Oct 6, 2021
Messages
44
Office Version
  1. 365
Platform
  1. Windows
Hi guys, I'm trying to VLOOKUP from multiple columns, so I would need to VLOOKUP Column A referencing Column H and I, and have the location placed in Column C. But it would also need to look up at Column B and if the name of the company is "OPPO Company", then Column C's value would be OPPO-FLEET, it also needs to look up Column D and if it's "Forward to shipping partner", then Column C's value will be "Cross-Border Export"

Sorry if it sounds messy, I hope I explained it right

Main Template.xlsm
ABCDEFGHI
1postal codeLocationStatusPostcodePickup Hub
253ABC CompanyCSLDelivered01PJ
354ABC CompanyCSLDelivered02PJ
456ABC CompanyCSLDelivered03PJ
582ABC CompanyCSLDelivered04PJ
652ABC CompanyCSLDelivered05PJ
765ABC CompanyDelivered06PJ
882ABC CompanyDelivered07PJ
932ABC CompanyDelivered08PJ
1064ABC CompanyDelivered09PJ
1182ABC CompanyDelivered10PJ
1246ABC CompanyDelivered11PJ
1379ABC CompanyDelivered12PJ
14L8ABC CompanyCross-Border ExportForward to Shipping Partner13PJ
1588ABC CompanyCross-Border ExportForward to Shipping Partner14PJ
1685ABC CompanyCross-Border ExportForward to Shipping Partner15PJ
1798ABC CompanyCross-Border ExportForward to Shipping Partner16PJ
1888ABC CompanyCross-Border ExportForward to Shipping Partner17PJ
1983ABC CompanyCross-Border ExportForward to Shipping Partner18PJ
20HKXYZ CompanyCross-Border ExportForward to Shipping Partner19PJ
2185XYZ CompanyCross-Border ExportForward to Shipping Partner20PJ
22TaXYZ CompanyForward to Shipping Partner21PJ
2396XYZ CompanyForward to Shipping Partner22PJ
2486XYZ CompanyForward to Shipping Partner23PJ
2586XYZ CompanyForward to Shipping Partner24PJ
2687XYZ CompanyForward to Shipping Partner25PJ
2788XYZ CompanyForward to Shipping Partner26PJ
2853OPPO CompanyOPPO-FLEETDelivered27PJ
2954OPPO CompanyOPPO-FLEETDelivered28PJ
3056OPPO CompanyOPPO-FLEETDelivered29PJ
3182OPPO CompanyOPPO-FLEETDelivered30PJ
3252OPPO CompanyOPPO-FLEETDelivered31PJ
3365OPPO CompanyOPPO-FLEETDelivered32PJ
3482OPPO CompanyOPPO-FLEETDelivered33CSL
3532OPPO CompanyDelivered34CSL
3664OPPO CompanyDelivered35PJ
3736CSL
3837CSL
3938CSL
4039CSL
4140CSL
4241CSL
4342CSL
4443CSL
4544CSL
4645CSL
4746CSL
4847CSL
4948CSL
5049CSL
5150CSL
5251CSL
5352CSL
5453CSL
5554CSL
5655CSL
5756CSL
5857PJ
5958PJ
6059PJ
6160PJ
6261PJ
6362PJ
6463PJ
6564PJ
6665PJ
6766PJ
6867PJ
6968PJ
7069PJ
7170PJ
7271PJ
7372PJ
7473PJ
7575PJ
7676PJ
7777PJ
7878PJ
7979CSL
8080CSL
8181CSL
8282CSL
Sheet3
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

Forum statistics

Threads
1,215,455
Messages
6,124,938
Members
449,197
Latest member
k_bs

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