Share via

Excel Filter function question

Anonymous
2024-11-08T22:04:39+00:00

I am using the below filter function the display a list of names (D4-D31) that have cells with things in them (Z4-KD31)

Is there a way to get the list result to show the name in (D4-D31) with the latter in the cells (Z4-KD31)

Example Bob is in D4 in AA4 is a T and Jim in D5 with AA5 is A. I would like the list to say Bob-T then Jim-A. Currently it just says Bob, Jim.

=FILTER($D$4:$D$31, INDEX($Z$4:$KD$31, 0, MATCH(CU$107, $Z$3:$KD$3, 0))<>"", "")

Microsoft 365 and Office | Excel | Other | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

HansV 462.6K Reputation points
2024-11-11T20:23:37+00:00

Try this in CU105:

=LET(w, INDEX($Z$34:$KD$60, 0, MATCH(CY$104, $Z$33:$KD$33, 0)), FILTER($D$4:$D$27&"-"&w, w<>"", "")

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Anonymous
    2024-11-11T22:23:12+00:00

    =LET(w, INDEX($Z$4:$KD$27, 0, MATCH(CY$104, $Z$3:$KD$3, 0)), FILTER($D$4:$D$27&"-"&w, w<>"", "")

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2024-11-11T17:53:53+00:00

    Was this answer helpful?

    0 comments No comments
  3. HansV 462.6K Reputation points
    2024-11-08T22:42:59+00:00

    Could you create a stripped-down copy of the workbook demonstrating the problem (without sensitive information) and make it available through one of the websites that let you upload and share a file, such as OneDrive, Google Drive, FileDropper or DropBox. Then post a link to the uploaded and shared file here.

    Was this answer helpful?

    0 comments No comments
  4. Rich~M 20,370 Reputation points Volunteer Moderator
    2024-11-08T22:25:41+00:00

    In order to be sure that the data in the rows is kept together appropriately, the entire range will need to be included in the FILTER function. You can then use CHOOSECOLS to return only specific columns from the array.

    =CHOOSECOLS(FILTER(D4:AA8,Z4:Z8<>""),1,24)

    Note that I replaced the INDEX/MATCH portion of the formulas with a simpler criterion since the whole spreadsheet isn't in front of me.

    Was this answer helpful?

    0 comments No comments