Returning multiple values from VLOOKUP

towners

Board Regular
Joined
Mar 12, 2009
Messages
225
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I have a VLOOKUP function that searches a concatenanted field for a unique occurance of date, line and shift and populates a report with data such as productivity and quality for that match.

I've now been asked to add batch information to the report, my problem is that whereas I know the date, line and shift I do not know the batch numbers or how many batches will be produced until after the event.

I want my report to detail each batch and productivity and quality figures, with my current code I only display the first unique match.

I know that there is a limit to the amount of batches that can be produced per shift so I can make space for them in my report (or perhaps some clever person can help me to modify my report to cater for 1 or many batches?) my challenge is writing the code...

Here is my VLOOKUP code that poulates my productivity cell in the report

=IF(ISBLANK(VLOOKUP($B$1&"Line "&$A$5&$B5,'Daily Data'!$A:$AA,24,FALSE)),"",VLOOKUP($B$1&"Line "&$A$5&$B5,'Daily Data'!$A:$AA,24,FALSE))

Batch information is in ROW "X"

My report columns are Line, Shift, Batch, Qty produced, Productivty

It goes without saying I'd be very grateful of some advice/ solution.

Many thanks

Paul
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Thanks for the reply, I like the function and this will help however I get a NAME error, so presumably excel isn't recognising the new function..?

What I need to do now is sum all the results from my lookup (i.e. sum the productivity for each batch for each date, line and shift. My currect code only finds the first match.

Can anyone help me with this?

many thanks

Paul
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,788
Messages
6,121,597
Members
449,038
Latest member
Arbind kumar

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