excelexcel-formula

Excel - Filter/Map information from one sheet to another based on specific text


I have the following two sheets in an Excel file: Sheet 1 and 2 and I would like to use Sheet 2 to organize the information from sheet 1.

Sheet 1 is the following:

A1 Name B1 Last name C1 DOB D1 Fav Color F1 Team
B1 Sam Smith 1/1 Blue B
C1 John Dee 2/1 Green A
D1 Kelly Huss 5/1 Red B

Sheet 2 (What I am trying to achieve) Data should be filter based by Team A or B

B2: Team A

A3 Name B3 Last name C3 Fav Color
John Dee Green

B31: Team B

A3 Name B3 Last name C3 Fav Color
Sam Smith Blue
Kelly Huss Red

How can I Achieve this? (I have look into most suggested answers and tried most of them but not luck) Thank you all


Solution

  • Simple FILTER by Team column. Wrap it by CHOOSECOLS to extract needed columns:

    =CHOOSECOLS(FILTER($A$2:$E$4,$E$2:$E$4=B7),1,2,4)

    enter image description here

    Adapt to your ranges.