Tricky VLOOKUP

Lukums

Board Regular
Joined
Nov 23, 2015
Messages
195
G'day guys - we have 2 sheets sheet1 and sheet2 both sheets can go down to row 10,000

JOB ID is found in Column C and Delivery Price is found in Column I.

We have the below:

What we found was because Vlookup is finding the first entry with BLANK it returns BLANK as you'd expect - however we need it to skip if it returns BLANK and find the next pairing JOB ID.
There's plenty of forumulas around showing how it can be done with (DUPLICATE) and (SMALL) but I can't understand it at all.

Any help would be appreciated

Sheet 1 where the delivery price must be listed
[TABLE="width: 500"]
<tbody>[TR]
[TD]JOB ID[/TD]
[TD]Delivery Location[/TD]
[TD]Delivery Price[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]NSW[/TD]
[TD]$500[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]QLD[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]VIC[/TD]
[TD]$2500[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]SA[/TD]
[TD]$750[/TD]
[/TR]
</tbody>[/TABLE]

Sheet 2 where the delivery price comes from via our basic VLOOKUP

[TABLE="width: 500"]
<tbody>[TR]
[TD]JOB ID[/TD]
[TD]Delivery Location[/TD]
[TD]Delivery Price[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]NSW[/TD]
[TD]$500[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]QLD[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]VIC[/TD]
[TD]$2500[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]QLD[/TD]
[TD]$1500[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
You didn't mention column for Delivery Location so I have used column G. Adjust if required. This is an array formula so should be entered without the {} but confirmed with Ctrl+Shift+Enter, not just Enter. If confirmed correctly, Excel will insert the {}. The formula can then be copied down.

Excel Workbook
CDEFGHI
1JOB IDDelivery LocationDelivery Price
21NSW$500
32QLD$1,500
43VIC$2,500
Sheet1
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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