V-LOOKUP Lacking, need guidance

Novellas

New Member
Joined
Aug 15, 2012
Messages
41
Badge #</SPAN>Division</SPAN>Location Name</SPAN>Employee</SPAN>Product</SPAN>Count</SPAN>Date</SPAN>
14844</SPAN>403</SPAN>Denver 5</SPAN>Paul</SPAN>Apples</SPAN>33</SPAN>1/2/2012</SPAN>
14844</SPAN>403</SPAN>Denver 5</SPAN>Paul </SPAN>Bananas</SPAN>55</SPAN>1/1/2012</SPAN>
14844</SPAN>403</SPAN>Denver 7</SPAN>Paul</SPAN>Oranges</SPAN>46</SPAN>1/2/2012</SPAN>
14846</SPAN>106</SPAN>Seattle 4 </SPAN>Phil</SPAN>Apples</SPAN>34</SPAN>1/3/2012</SPAN>
14846</SPAN>106</SPAN>Seattle 4 </SPAN>Phil</SPAN>Bananas</SPAN>34</SPAN>1/3/2012</SPAN>
14846</SPAN>106</SPAN>Seattle 5</SPAN>Phil</SPAN>Bananas</SPAN>45</SPAN>1/5/2012</SPAN>
14850</SPAN>115</SPAN>Oakland 12</SPAN>Stan</SPAN>Oranges</SPAN>42</SPAN>1/5/2012</SPAN>

<TBODY>
</TBODY><COLGROUP><COL><COL><COL><COL><COL><COL><COL><COL></COLGROUP>

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

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
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,215,054
Messages
6,122,897
Members
449,097
Latest member
dbomb1414

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