Create a List of Marked Drawing Numbers in Excel
Question details
Create a list of drawing numbers from column H for rows marked with x in column M, excluding blank drawing numbers.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Drawing numbers are stored in H8:H14, and the corresponding selection marks are in M8:M14.
- Observed behavior
- The desired list contains only nonblank drawing numbers whose corresponding rows are marked with x.
Check that the drawing numbers and marks are on the same rows and that both ranges cover the same number of cells. Choose an empty output cell with space below it for the results.
Use FILTER to list marked, nonblank drawing numbers
Use this dynamic formula in an Excel version that supports FILTER; the list updates when the source cells change.
Click an empty cell where the list should begin, such as O8.
Type =FILTER(H8:H14,(M8:M14="x")*(H8:H14<>""),"") and press Enter.
Review the spilled list below the formula cell. Change the range endpoints in the formula if your data extends beyond row 14.

Use INDEX and AGGREGATE in older Excel versions
Use this formula when FILTER is unavailable, then fill it down to build the list.
List marked drawing numbers in WPS Spreadsheets
Use filters in WPS Spreadsheets to show rows marked with x and exclude blank drawing numbers, then copy the visible numbers into a list.
- 1. Open the spreadsheet: Open your Excel file in WPS Spreadsheets and select the data range, including its header row.
- 2. Turn on filtering: Select Data > Filter to add filter arrows to the header row.
- 3. Filter the two columns: Open the column M filter and select x. Open the column H filter and deselect the blank option.
- 4. Copy the drawing numbers: Select the visible drawing numbers in column H, copy them, and paste them into an empty location.

Frequently Asked Questions
Why does the FILTER formula check both columns?
The condition M8:M14="x" selects marked rows, while H8:H14<>"" excludes rows with blank drawing numbers. Multiplying the conditions requires both to be true.
What happens when no rows are marked with x?
The formula's final argument, "", returns an empty result when no rows match.
Why does my formula show #SPILL!?
The FILTER result needs empty cells below the formula. Clear any entries blocking the intended spill range and check the formula again.
Can I use FILTER in an older version of Excel?
FILTER is available in newer versions, including Excel for Microsoft 365 and Excel 2021. If your version does not support it, use the INDEX and AGGREGATE formula and fill it down.




