Vlookup yet again

orion1951

New Member
Joined
Jul 8, 2019
Messages
3
Hi,

I have a spreadsheet with 5000 rows and 15. The 1st Column either has a Y or N in it and the 12 column either has a 'South' or "West" in it.

What I would like to do o a different sheet is display only the rows that have a Y in column 1 and South in column 12. I would also like to only select a few columns to display on the presentation sheet. I know that a filter would work but I thought a lookup would be better. Any suggestions?.

Thx,

John
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Welcome to the Board!

VLOOKUP can only match on one field, not two, and can only return one match (the first one it finds).
So actually I think a filter would be better here.
With Advanced Filter, you can filter the results to a new location.
 
Upvote 0
Hi,

If you absolutely have to use a formula then below will work for you. You will have to copy this across 15 columns and down to 5000 rows (to be safe). Assumption is that your data is in Sheet7:


Book1
AB
1YSouth
2YSouth
3YSouth
4YSouth
5
6
7
8
9
10
11
12
Sheet8
Cell Formulas
RangeFormula
A1{=IFERROR(INDEX(Sheet7!A$1:A$11,SMALL(IF((Sheet7!$A$1:$A$11="Y")*(Sheet7!$L$1:$L$11="South"),ROW(Sheet7!$A$1:$A$11)),ROWS(A$1:A1))),"")}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Two other options.
1. You can create a Pivot Table with the desired Table Columns in the Pivot Tables "Row" area. Use Tabular display, NO Subtotals and Repeat ALL Row labels.
2. You can create a Get and Transform Query and load the data to a new Table.

Both cases will need the Refresh run when changes are made on the original table, which can be set to occur when the Workbook opens.
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,155
Members
453,021
Latest member
Justyna P

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