V-LOOKUP Lacking, need guidance

Novellas

New Member
Joined
Aug 15, 2012
Messages
41
[TABLE="width: 613"]
<TBODY>[TR]
[TD]Badge #</SPAN>[/TD]
[TD]Division</SPAN>[/TD]
[TD]Location Name</SPAN>[/TD]
[TD]Employee</SPAN>[/TD]
[TD]Product</SPAN>[/TD]
[TD]Count</SPAN>[/TD]
[TD]Date</SPAN>[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD="align: right"]14844</SPAN>[/TD]
[TD]403</SPAN>[/TD]
[TD]Denver 5</SPAN>[/TD]
[TD]Paul</SPAN>[/TD]
[TD]Apples</SPAN>[/TD]
[TD="align: right"]33</SPAN>[/TD]
[TD="align: right"]1/2/2012</SPAN>[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]14844</SPAN>[/TD]
[TD]403</SPAN>[/TD]
[TD]Denver 5</SPAN>[/TD]
[TD]Paul </SPAN>[/TD]
[TD]Bananas</SPAN>[/TD]
[TD="align: right"]55</SPAN>[/TD]
[TD="align: right"]1/1/2012</SPAN>[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]14844</SPAN>[/TD]
[TD]403</SPAN>[/TD]
[TD]Denver 7</SPAN>[/TD]
[TD]Paul</SPAN>[/TD]
[TD]Oranges</SPAN>[/TD]
[TD="align: right"]46</SPAN>[/TD]
[TD="align: right"]1/2/2012</SPAN>[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]14846</SPAN>[/TD]
[TD]106</SPAN>[/TD]
[TD]Seattle 4 </SPAN>[/TD]
[TD]Phil</SPAN>[/TD]
[TD]Apples</SPAN>[/TD]
[TD="align: right"]34</SPAN>[/TD]
[TD="align: right"]1/3/2012</SPAN>[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]14846</SPAN>[/TD]
[TD]106</SPAN>[/TD]
[TD]Seattle 4 </SPAN>[/TD]
[TD]Phil</SPAN>[/TD]
[TD]Bananas</SPAN>[/TD]
[TD="align: right"]34</SPAN>[/TD]
[TD="align: right"]1/3/2012</SPAN>[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]14846</SPAN>[/TD]
[TD]106</SPAN>[/TD]
[TD]Seattle 5</SPAN>[/TD]
[TD]Phil</SPAN>[/TD]
[TD]Bananas</SPAN>[/TD]
[TD="align: right"]45</SPAN>[/TD]
[TD="align: right"]1/5/2012</SPAN>[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]14850</SPAN>[/TD]
[TD]115</SPAN>[/TD]
[TD]Oakland 12</SPAN>[/TD]
[TD]Stan</SPAN>[/TD]
[TD]Oranges</SPAN>[/TD]
[TD="align: right"]42</SPAN>[/TD]
[TD="align: right"]1/5/2012</SPAN>[/TD]
[TD][/TD]
[/TR]
</TBODY><COLGROUP><COL><COL><COL><COL><COL><COL><COL><COL></COLGROUP>[/TABLE]

This is the current formula I am using: =VLOOKUP($D25,'AUG INV'!$D$2:$U$2500,COLUMN($A1:B1),FALSE)

This Formula is sorting through the data sheet, selecting by Location Name & then populating the corresponding data via the "Column" formula, however if say there is another data set with the SAME Location Name but a different Product, the Formula doesn't distinguish and just pulls the SAME data set again & again.
I am looking for a Formula that will search the Inventory data, pulling by Location Name and pulling ALL instances with variable product (if applicable); will the INDEX formula work with this?

Appreciate all the expertise and assistance.

Thanks!
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Hi,

I put your data in H1:N8 and put the locations in A11:A17.

Try this formula for the desired result.

=IFERROR(INDEX($N$1:$N$8, SMALL(IF(A11=$J$2:$J$8,ROW($J$2:$J$8)),COUNTIF($J$2:J2,J2)),0),"")

It is an array formula to be confirmed with CTRL+SHIFT+ENTER. Then drag down.

You might have to change ranges in the formula.

Jai
 
Upvote 0
Excel Workbook
ABCDEFGHIJKLMNOPQR
1Badge #DivisionLocation NameEmployeeProductCountDateDenver 52Badge #DivisionLocation NameEmployeeProductCountDate
214844403Denver 5PaulApples3301/02/201214844403Denver 5PaulApples3301/02/2012
314844403Denver 5PaulBananas5501/01/201214844403Denver 5PaulBananas5501/01/2012
414844403Denver 7PaulOranges4601/02/2012
514846106Seattle 4PhilApples3401/03/2012
614846106Seattle 4PhilBananas3401/03/2012
714846106Seattle 5PhilBananas4501/05/2012
814850115Oakland 12StanOranges4201/05/2012
Sheet3



Drag formula down and accross
 
Upvote 0
Robert & Jai9,

Thanks guys for your time & help! Appreciate the insights and tutelage! Problem solved!

-K
 
Upvote 0

Forum statistics

Threads
1,223,230
Messages
6,170,883
Members
452,364
Latest member
springate

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