Function Problems

List a Person’s Jobs From Excel Columns With XLOOKUP and FILTER

Kushani NimanthikaKushani Nimanthika Dec 2, 2026 868 views

Question details

Create a dynamic list of job headers for which a selected person has a recorded value.

List a Person’s Jobs From Excel Columns With XLOOKUP and FILTER
Product
Microsoft Excel
Device & OS
not provided
Scenario
A worksheet stores names in one column and jobs as separate column headers, with numeric amounts indicating the jobs each person performs.
Observed behavior
The desired result is a vertical list of the selected person’s job headers that updates when the selection or source data changes.
Before you start

Use Excel 365 or Excel 2021 and check that your job amounts are numeric. The example assumes a table named jobs, a Name column, job columns from bending through assembling, and the selected name in J4.

Solution 1Recommended

Filter the selected person’s job headers with XLOOKUP

Use this formula to return a vertical, dynamic list of jobs with nonzero amounts.

XLOOKUP returns the selected person’s job amounts, FILTER selects the corresponding headers, and TRANSPOSE displays them vertically. The formula excludes both zero amounts and blank numeric cells.

1
Check the table and selection

In the worksheet, confirm that the table is named jobs, its name column is Name, and its job columns run from bending through assembling. Enter a person’s name in J4.

2
Enter the formula

Select an empty cell with room below it and enter: =IFNA(LET(person,J4,amounts,XLOOKUP(person,jobs[Name],jobs[[bending]:[assembling]]),TRANSPOSE(FILTER(jobs[[#Headers],[bending]:[assembling]],amounts<>0,"No jobs"))),"Person not found")

3
Adjust the references

In the formula bar, replace J4, jobs, Name, bending, and assembling with the selection cell and table names used in your workbook.

4
Change the selected person

Enter another name in J4 to update the list. If the name is missing, the formula displays Person not found; if all job amounts are zero or blank, it displays No jobs.

Filter the selected person’s job headers with XLOOKUP
Duplicate names: XLOOKUP returns the first matching row. Use a unique identifier instead of a name if a person can appear more than once.
Work with spreadsheets in WPS Office

List job headers in WPS Spreadsheet

In a WPS Spreadsheet version that supports LET, XLOOKUP, FILTER, and dynamic arrays, use a formula to list the nonzero jobs for a selected person.

  1. 1. Open the workbook: In WPS Spreadsheet, choose Open and select your Excel workbook.
  2. 2. Check the layout: For this example, place names in A2:A100, job headers in B1:F1, numeric job amounts in B2:F100, and the selected name in J4.
  3. 3. Enter the formula: Select an empty cell with space below it and enter: =IFNA(LET(amounts,XLOOKUP(J4,A2:A100,B2:F100),TRANSPOSE(FILTER(B1:F1,amounts<>0,"No jobs"))),"Person not found")
  4. 4. Test and save: Change the name in J4 to check the results, then choose Save As and select XLSX if you want to keep an Excel-format copy.
Create a dynamic list of job headers from a selected person’s rowOpen and edit Microsoft Excel XLSX filesUse a familiar spreadsheet interfaceWork with formulas and worksheet data in one place
microsoft office alternative - wps office

Frequently Asked Questions

Why does the formula exclude zeros?

The FILTER condition amounts<>0 selects nonzero amounts. It also excludes blank numeric cells returned as zeros by XLOOKUP.

What if the selected name is not in the table?

The example uses IFNA to display Person not found. Check the spelling in J4 and confirm that jobs[Name] refers to the correct column.

Why do I see a #SPILL! error?

Clear any cells below the formula that block its results. The TRANSPOSE function needs enough empty cells to display the job headers vertically.

Can I use this formula in an older version of Excel?

The formula requires LET, XLOOKUP, FILTER, and dynamic array support. Use Excel 365 or Excel 2021, or check whether your version supports these functions.

What happens if a name appears more than once?

XLOOKUP uses the first matching row. To select a specific record, use a unique ID column as the lookup column and enter that ID in J4.