VLOOKUP with multiple rows

Pumperkin

Board Regular
Joined
Jan 24, 2019
Messages
59
Office Version
  1. 365
Platform
  1. Windows
Hi all,

Trying to write a formula but getting stuck.

I have a list of around 30 items that are "Not Despatched". This list changes and I want to pull the updated list (which may be in different row numbers as time goes by, and there may be greater or fewer lines).

I tried VLOOKUP however given that I am only V lookingup "Not Despatched", it only brings up the data that appears first. I can't make the formula unique, as I don't know what I'm looking up (other than it being Not Despatched) before it's looked up.

Is there a way to do this other than just copying and pasting the list across?

TIA!
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
A formula would be better as I don't want to have to constantly refresh the filter (I am pulling the data to another workbook).
 
Upvote 0
If you want a separate list, you could use something like


Book1
ABCDEF
1Not Despatched
2CarNot DespatchedCar
3BikeTV
4SofaMobile Phone
5TVNot Despatched
6Computer
7Mobile PhoneNot Despatched
Sheet3
Cell Formulas
RangeFormula
F2=IFERROR(INDEX($A$2:$A$7,AGGREGATE(15,6,(ROW($A$2:$A$7)-ROW($A$2)+1)/($C$2:$C$7=$F$1), ROWS($F$2:$F2))),"")
 
Upvote 0
If you want a separate list, you could use something like

ABCDEF
1Not Despatched
2CarNot DespatchedCar
3BikeTV
4SofaMobile Phone
5TVNot Despatched
6Computer
7Mobile PhoneNot Despatched

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet3

Worksheet Formulas
CellFormula
F2=IFERROR(INDEX($A$2:$A$7,AGGREGATE(15,6,(ROW($A$2:$A$7)-ROW($A$2)+1)/($C$2:$C$7=$F$1), ROWS($F$2:$F2))),"")

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

Thanks for the help - I have managed to sort it out slightly differently via ARRAY

Code:
=IFERROR(INDEX('[Days to clear stock.xlsm]Shipped'!$Q$2:$Q$1172, SMALL(IF(F$1='[Days to clear stock.xlsm]Shipped'!$M$2:$M$1172, ROW('[Days to clear stock.xlsm]Shipped'!$Q$2:$Q$1172)-1,""), ROW()-2)),"")
 
Upvote 0
Glad you sorted it & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,214,826
Messages
6,121,794
Members
449,048
Latest member
greyangel23

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