Function Problems

How to Automatically Carry Names Down in Excel Categories

Ayan MasoodAyan Masood Nov 11, 2026 870 views

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.

How to Automatically Carry Names Down in Excel Categories
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 you start

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.

Solution 1Recommended

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.

1
Select an empty column

Select an empty column next to your data (e.g., column F) where you want the names to populate.

2
Enter the SCAN formula

Enter the formula =SCAN("",A7:A57,LAMBDA(a,v,IFNA(TEXTBEFORE(v," - "),a))), adjusting the range A7:A57 to match your specific dataset.

3
Apply the dynamic array

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 the SCAN Function (Microsoft 365)
Delimiter Requirement: This formula assumes that only the heading cells containing names include the hyphen (' - ') delimiter. Adjust the delimiter in the TEXTBEFORE function if your report uses a different character.
Organize Data Effectively in WPS Spreadsheet

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. 1. Open your spreadsheet: Launch WPS Spreadsheet and open the report that contains your sparse heading rows.
  2. 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. 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.
Fully compatible with Microsoft Excel formulas and file formats (.xlsx).Lightweight software that processes large data reports quickly without lagging.Built-in robust data filtering, filling, and analysis tools.Completely free to download with a highly familiar user interface.
QA img-9

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.