Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Named Columns in Excel: A Practical Guide

· 7 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, you can name columns in Excel to make formulas easier to write and references more readable. This is achieved by selecting the column header cell or a specific cell range and assigning a custom name via the Name Box or the Define Name dialog. This allows you to refer to a column as "Sales" or "EmployeeID" instead of "A1:A1000" in your formulas.

What You'll Need

  • A computer with Microsoft Excel installed (Excel 2010 or later is recommended for the most stable experience with named ranges).
  • A spreadsheet file containing the data you wish to work with.
  • Sometimes, a second monitor or a larger screen can be helpful to see the Name Box (the box to the left of the formula bar) alongside your data.

Step-by-Step

  1. Open your Excel workbook. Navigate to the sheet containing the data you want to reference. For this guide, imagine you have a list of employees in column A and their monthly sales figures in column B.
  2. Select the cells you want to name. Click on the cell containing the first piece of data in the column or range you wish to name. For example, click on cell A1. To name an entire column, you can click the column header letter (e.g., A) at the very top of the Excel window.
  3. Verify the selection. Ensure the cells you want to include in the name are highlighted. If you only selected cell A1, the name will apply to a single cell. If you selected the entire column header A, the name will apply to the whole column. You can also select a non-contiguous range (like A1:A10 and A15:A20) by holding the Ctrl key while clicking.
  4. Locate the Name Box. Look at the top-left corner of the Excel window, just above the grid of cells. There is a small box to the left of the formula bar. It usually displays the cell address (e.g., A1) when a cell is selected.
  5. Enter the name. Click inside the Name Box. The cell address will disappear. Type the name you want to assign to this column or range. It is best practice to use no spaces in your names. Instead of "First Name," use FirstName. You can use underscores as separators (e.g., First_Name), but underscores are not strictly necessary if you follow camelCase naming (e.g., FirstName).
  6. Confirm the name. Press the Enter key on your keyboard. The Name Box should now display the name you entered (e.g., FirstName). The cell or range you selected is now named.
  7. Verify the name in the Name Manager. A good way to check if your name was created correctly is to use the Name Manager. Go to the Formulas tab on the ribbon and click on Name Manager. In the dialog that appears, you should see your new name listed under the Name column, the range it applies to in the Refers To column, and the sheet it is on in the Scope column.
  8. Use the named column in a formula. Now you can use your new name in a formula. For example, if you wanted to calculate the total sales for the first ten employees, you would type =SUM(FirstName) instead of =SUM(A1:A10). This makes the formula much easier to understand at a glance.

Common Mistakes

Using Spaces in Names. Excel does not allow spaces in named ranges. If you type "First Name" in the Name Box and press Enter, you will get an error. Always use underscores or camelCase to separate words.

Confusing Column Names with Headers. A named column is not the same as a header text. The header text is what is displayed in the cell (e.g., "Sales"). A named column is a hidden reference that exists behind the scenes. You can change the header text to anything without affecting the named range, and vice versa.

Forgetting to Press Enter. Simply typing the name in the Name Box is not enough. You must press the Enter key to confirm and save the name. If you just click away, the name will not be created.

Typing the Name with Quotes. When you use a named range in a formula, do not put the name in quotes. =SUM(Sales) is correct. =SUM("Sales") will result in a #NAME? error. The name is already an identifier, not a string of text.

Tips

Use Descriptive Names. The whole point of naming columns is to make your spreadsheets readable. Use names that clearly describe the data, such as InvoiceDate, UnitPrice, or CustomerID.

Keep Names Short. While descriptive, try to keep your names as short as possible without losing clarity. A very long, descriptive name can be cumbersome to type and read.

Use the Name Box for Quick Naming. The Name Box method is the fastest way to name a single cell or a small range. For more complex scenarios, the Define Name dialog (accessed via the Formulas tab) offers more options.

Consider Scope. When you use the Name Box, the name is usually scoped to the sheet (worksheet-level). This means the name FirstName will only be available on the current sheet. If you want to use the name on multiple sheets, you might need to use the Define Name dialog to set it as a Workbook-level name.

Check for Conflicts. If you try to name a column "Total," you might get an error if there is already a built-in Excel name like TOTAL or Database. Excel will warn you. You can try a slightly more specific name, like SalesTotal.

Troubleshooting

Why is my named range returning a #REF! error? This error usually means that the cells the named range referred to have been deleted. If you delete the column or rows that were part of the named range, the name will become "orphaned" and will point to an invalid location. You can fix this by going to the Name Manager, selecting the problematic name, and clicking Edit. In the Refers To box, you can select the new, correct range of cells.

Why is my named range not updating when I insert or delete rows? By default, Excel uses relative references for named ranges. If you name a range by selecting a specific set of cells (e.g., A1:A10), and then insert a new row at the top, the named range will update to A2:A11. However, if you name a range by selecting a column header (e.g., column A), and then insert a new row, the named range might not automatically expand to include the new row in some older versions of Excel. A more robust way to handle this is to use a Table (Insert > Table), as tables automatically handle dynamic resizing.

The Name Box is not accepting my name. This is usually because of the rules for Excel names. Common reasons include: the name starting with a number (e.g., 1stPlace is invalid, but FirstPlace is valid), the name containing special characters like @, #, $, %, ^, &, *, or (, or the name being a reserved word like DATE or SUM. Excel names must start with a letter or an underscore.

I can't see the Name Box. The Name Box is always available, but it can be hidden if the Excel window is very small or if you are in Full Screen mode. Try maximizing your Excel window. You can also right-click on the ribbon and select Minimize the Ribbon to see more of the window.

Frequently Asked Questions

Can I use named columns in Excel on a Mac?

Yes, the process is identical. The Name Box is located in the same place on the Mac interface, and the Formulas tab with the Name Manager is also present.

How do I delete a named column?

Go to the Formulas tab and click on Name Manager. Select the name you want to delete and click the Delete button at the bottom of the dialog.

Are named columns case-sensitive?

No, Excel names are not case-sensitive. sales, Sales, and SALES are all treated as the same name.

Can I use a named range in a Pivot Table?

Yes, you can use named ranges as the source for a Pivot Table. When you create a new Pivot Table, you can select the named range as the table/range source. This makes it easier to select the correct data for your Pivot Table.

What is the difference between a named column and a table?

A named column is simply a reference to a specific range of cells that you give a memorable name to. A table is a structured object in Excel that includes headers, formatting, and formulas. Tables are more powerful and can automatically expand to include new rows, but named columns are a simpler, more lightweight way to improve formula readability.

Can I use named columns across different workbooks?

No, named ranges are not shared across workbooks. A named range Sales in one workbook is not visible in another workbook, even if they are open at the same time.