VLOOKUP Multiple data lines

michaelpashley

New Member
Joined
Mar 23, 2017
Messages
1
Hi, and apologies but I could not find the answer on historic threads.

I am trying to pull data through using vlookup where there are multiple entries within the table. I have been using OFFSET and MATCH to move on cells, using the below formula:

=IFERROR(VLOOKUP($K$14,OFFSET(REPORT!$B3,MATCH($K$14,REPORT!$B3:B20269,0),0,20000,5),5,0),"")

Basically, I want to pull all individual data entries from column F when the data in column B matches K14 on another sheet.

this works well when the range is limited to the data I need being at the top, but on a much larger range where the data is further into it (I am using a 20,000 line range) the formula brings the same data up over and over.

Question is; can anyone advise how to amend the "B3" entry on the formula to pick up on the next cell down from the last result instead of just the next cell on the list?
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Try this

=IFERROR(INDEX($F$1:$F$20000,SMALL(IF(($B$1:$B$20000=$K$14),ROW($B$1:$B$20000)),ROW(B1)),1),"")
Array formula, use Ctrl-Shift-Enter
and copy down the column as far as row 20,000
 
Upvote 0
K13:

=COUNTIFS(REPORT!B3:B20269,K14)

K15, control+shift+enter, not just enter, and copy down:

=IF(ROWS($K$15:K15)>$K$13,"",INDEX(REPORT!$F$3:$F$20269,SMALL(IF(REPORT!$B$3:$B$20269=$K$14,row(REPORT!$F$3:$F$20269)-ROW(REPORT!$F$3)+1),ROWS($K$15:K15))))
 
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,707
Members
448,981
Latest member
recon11bucks

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