Attempting to pull back all matching values in a 2 column table using INDEX. One row off?

Bitcain

New Member
Joined
Jan 23, 2014
Messages
4
Image-
X41bMJu.jpg


This worked perfectly at first, so I thought. But for some reason it is pulling the letter 1 down from it's match (See highlighted matches and it returns that below it). The far right in red is a text only sample of desired outcome from the data on the far left.


I've tried so much. I found that formula [FONT=inherit !important][FONT=inherit !important]online[/FONT][/FONT] and have been messing with it for over 2 hours.

My original need was to auto find the possibilities (1,2,3, and 4) Then have them formulate themselves to the right without so much manual formula input; however, I can't figure out how. VLOOKUP only seems to return one result, this seems to be my best best and having to manually enter the lookup value(A2, A7, Etc) and paste the formula as well as modifying all of the cell references.

I'm open to anything. I'm not good enough for Macros/[FONT=inherit !important][FONT=inherit !important]VBA[/FONT][/FONT] yet obviously.





The best scenario is it would find each unique identifier "pump" and add it to the column then sort out the options "product" at that pump.
Ex: It searches the column and finds 1-4, It then puts 1 and all of it's options, then 2, etc.. Not sure if that's reasonable.

{=IF(ROWS($F$2:F2)>E$2,"",INDEX(Product,SMALL(IF(Pump=D$2,ROW(Pump)),ROWS($F$2:F2))))}
 
Last edited:

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
A non macro approach would be to sort by pump number, then use a conditional format to hide (white out) the repeating numbers.
 
Last edited:
Upvote 0
Problem is that column A and B will be frequently changing so I'm trying to have the data update as well.


I'm really trying to make this so others can use it with ease. Sounds like I need to learn macros?
 
Last edited:
Upvote 0
A dynamic named range will allow for that, but if you're intent on a formula solution I'll try to find the unique list/lookup without helper columns.
 
Upvote 0
Like this:


Excel 2010
ABCDEFGHIJK
1ProductPump
2A1
3B2PumpProducts
4V31A
5B1B
6A1A
7B2B
8D2F
9B12B
10B2B
11S3D
12B4B
13F13V
14R4S
15S3S
16S44B
17B4R
18S
19B
Sheet2 (4)
Cell Formulas
RangeFormula
J4=IF(ROW(A1)=1,SMALL($B$2:$B$17,ROW(A1)),IF(SMALL($B$2:$B$17,ROW(A1))=SMALL($B$2:$B$17,ROW(A1)-1),"",SMALL($B$2:$B$17,ROW(A1))))
K4{=INDEX($A$2:$A$17,SMALL(IF($B$2:$B$17=SMALL($B$2:$B$17,ROW(A1)),ROW(A2:A17)-ROW(A2)+1),ROW(A1)-MATCH(SMALL($B$2:$B$17,ROW(A1)),$J$4:$J$19,0)+1))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,333
Members
452,636
Latest member
laura12345

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