Lookup question

russelldt

Board Regular
Joined
Feb 27, 2021
Messages
125
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

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
57,388
Office Version
  1. 365
Platform
  1. Windows
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.
 

russelldt

Board Regular
Joined
Feb 27, 2021
Messages
125
Office Version
  1. 365
Platform
  1. MacOS
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:

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
57,388
Office Version
  1. 365
Platform
  1. Windows
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. :))
 

Forum statistics

Threads
1,181,633
Messages
5,931,098
Members
436,775
Latest member
Taproot007

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
Top