Lookup question

russelldt

Board Regular
Joined
Feb 27, 2021
Messages
156
Office Version
  1. 365
Platform
  1. MacOS
I need help with this, please.

I have 3 columns comprising a data set:

A is a type identifier (eg. tap). There are multiple type identifiers, not sorted.
B and C contain data (description and price) that i want to extract into another table.

I want to extract all similar types (eg. tap) and their corresponding data in columns 2 and 3. Vlookup only returns the first row of data.

The idea being when i add a new tap to the bottom of the data set, it automatically gets added to the extracted table.
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Here is one way.
Make the original table into a formal Excel table (if not already). See Insert ribbon tab -> Table

Use a structure & formulas like this.

russelldt.xlsm
ABCDEFGHIJKLMN
1IdentifierData1Data2tapIdentifierData1Data2pipeIdentifierData1Data2
2tapagtapagpipebh
3pipebhtapcipipeek
4tapcitapdj
5tapdj
6pipeek
7washerfl
8
9
Sheet1
Cell Formulas
RangeFormula
G2:I4,L2:N3G2=FILTER(Table1,Table1[Identifier]=F1,"")
Dynamic array formulas.
 
Upvote 0
Here is one way.
Make the original table into a formal Excel table (if not already). See Insert ribbon tab -> Table

Use a structure & formulas like this.

russelldt.xlsm
ABCDEFGHIJKLMN
1IdentifierData1Data2tapIdentifierData1Data2pipeIdentifierData1Data2
2tapagtapagpipebh
3pipebhtapcipipeek
4tapcitapdj
5tapdj
6pipeek
7washerfl
8
9
Sheet1
Cell Formulas
RangeFormula
G2:I4,L2:N3G2=FILTER(Table1,Table1[Identifier]=F1,"")
Dynamic array formulas.

Thanks for the reply. I have replicated your formula and created the table, but i get a "data is not Valid" error message.

Not sure where i have gone wrong. I hope you can point out my error,

Thanks
1649987365302.png
 
Last edited by a moderator:
Upvote 0
Not sure where i have gone wrong.
You have created the table incorrectly. Your table headers are "Column1", "Column2" etc not "Identifier" etc

When you create the table you need to tick the 'My table has headers' box

(Also be careful not to double-quote a previous post. I have removed one of them for you. :))
 
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,256
Members
448,557
Latest member
richa mishra

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