How to Automatically Carry Names Down in Excel Categories
Question details
The user needs to associate a person's name, which only appears in heading rows, with all subsequent data rows beneath it until a new name appears.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Organizing generated reports where category names or person names are only listed once as a heading, leaving blanks next to the detailed records.
- Observed behavior
- To transform the data for analysis, the name from the heading row needs to be automatically carried down to all associated rows below it.
Before applying these formulas, ensure your data is sorted logically and identify a consistent delimiter (like a hyphen '-') used in the heading rows to distinguish them from regular data rows.
Use the SCAN Function (Microsoft 365)
For Microsoft 365 users, the SCAN function combined with LAMBDA offers a modern, dynamic array solution to carry names down.
The SCAN function applies a LAMBDA function to each value in an array and returns an array of the intermediate results. This is highly effective for looking at a cell, determining if it contains a name header, and carrying that name downward.
Select an empty column next to your data (e.g., column F) where you want the names to populate.
Enter the formula =SCAN("",A7:A57,LAMBDA(a,v,IFNA(TEXTBEFORE(v," - "),a))), adjusting the range A7:A57 to match your specific dataset.
Press Enter. The formula will automatically spill down the column, carrying the latest name down until it encounters a new name-and-date heading containing the " - " delimiter.

Use a Traditional IF and SEARCH Formula (Older Excel Versions)
If you are using an older version of Excel without dynamic arrays, you can use a combination of IFERROR, LEFT, and SEARCH to achieve the same result.
Transform Data using Power Query
Power Query is an excellent choice for repeatable report transformation, especially when dealing with large datasets or complex aggregations.
Easily Transform and Fill Down Data with WPS Office
WPS Spreadsheet provides powerful functions and built-in data transformation tools perfectly compatible with Excel formulas. You can seamlessly use traditional IF, LEFT, and SEARCH functions to carry down category names for complex report analysis.
- 1. Open your spreadsheet: Launch WPS Spreadsheet and open the report that contains your sparse heading rows.
- 2. Apply standard formulas: Create a helper column next to your data and apply the standard Excel formula =IFERROR(LEFT(A7,SEARCH(" - ",A7)-1),F6).
- 3. Use the Fill Handle: Double-click the fill handle in the bottom right corner of your formula cell to instantly apply it to all rows below.

Frequently Asked Questions
Why does my traditional formula return an error?
If the formula relies on a specific delimiter like a hyphen (" - "), it will return an error or unexpected results if that exact character is missing from the heading row. Ensure your delimiter matches the formula exactly.
Can I use the 'Go To Special' method to fill blank cells?
Yes, another common non-formula method is to select the column containing names and blanks, press Ctrl+G, select 'Special' > 'Blanks', type '=' and point to the cell directly above, then press Ctrl+Enter.
Is the SCAN function available in older versions of Excel?
No, the SCAN function and LAMBDA are only available in Microsoft 365 and Excel for the web. For older versions, you must use traditional formula combinations or utilize Power Query to fill data down.




