Extract list and ignore blanks based on criteria (names from a drop down)

TME1993

New Member
Joined
May 20, 2022
Messages
1
Office Version
  1. 2021
  2. 2019
Platform
  1. MacOS
Please help with the following!!

Sheet1 is the dataset containing names and information related to those names. In Sheet2 I want to reference a particular name (drop down list) and pull a new list with the relevant info (age, fav food, fave sport, etc.) while ignoring the blank columns. In other words, create a new list with just cells that have information in them.

Thank you!!
 

Attachments

  • Screen Shot 2022-05-20 at 12.26.03 PM.png
    Screen Shot 2022-05-20 at 12.26.03 PM.png
    45.9 KB · Views: 8
  • Screen Shot 2022-05-20 at 12.26.21 PM.png
    Screen Shot 2022-05-20 at 12.26.21 PM.png
    22.7 KB · Views: 9

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Welcome to the MrExcel board!

Using your 2021 version, try this

TME1993.xlsm
ABCDE
1Name (select)NameAgeFavourite Sport
2JimJim22Hockey
Sheet2
Cell Formulas
RangeFormula
B1:D2B1=LET(f,FILTER(Table1[#All],(Table1[[#All],[Name]]=A2)+(Table1[[#All],[Name]]=Table1[[#Headers],[Name]])),FILTER(f,INDEX(f,2,0)<>""))
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
A2List=INDIRECT("Table1[Name]")


If you need the results in a version that does not have the FILTER function you could try this instead

TME1993.xlsm
ABCDEF
1Name (select)IdxNameAgeFavourite Sport 
2Jim1Jim22Hockey 
Sheet2 (2)
Cell Formulas
RangeFormula
C1:F1C1=IFERROR(INDEX(Table1[#Headers],AGGREGATE(15,6,SEQUENCE(,COLUMNS(Table1))/(INDEX(Table1,$B2,0)<>""),COLUMNS($C:C))),"")
B2B2=MATCH(A2,Table1[Name],0)
C2:F2C2=IFERROR(INDEX(INDEX(Table1,$B2,0),AGGREGATE(15,6,SEQUENCE(,COLUMNS(Table1))/(INDEX(Table1,$B2,0)<>""),COLUMNS($C:C))),"")
Cells with Data Validation
CellAllowCriteria
A2List=INDIRECT("Table1[Name]")
 
Upvote 0

Forum statistics

Threads
1,216,077
Messages
6,128,676
Members
449,463
Latest member
Jojomen56

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