1

I can extract matched columns using the FILTER function in Google Sheets, but I need help making it work when there are multiple matches. For example, if the header row contains the same value in several columns (like "Sales" in 3 places), I want to return all those columns dynamically — not just the first one.

I have attached a Google Sheets for you reference.

Google Sheet

1
  • 1
    Questions should be self-contained on this site. Please edit your question and insert a table of sample data together with another table that shows your manually entered desired results. Commented Oct 24 at 19:11

1 Answer 1

2

Use filter() with a match() that lists the required column names, utilizing hstack(), like this:

=filter('Raw Data'!A2:P, 
  match('Raw Data'!A1:P1, 
    hstack("Applicant ID", "Applicant Name", G1), 
    0
  )
)

See filter(), match(), hstack() and your sample spreadsheet.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.