keepcalculator

06 Numbers and Powers

Paste Name into Formula? Excel Trick Explained

Card No. 06·4626 · Updated · Standard formula, shown below

The calculator on this card is switched off while it is checked. The formula is below, and the worked example shows how to do the sum by hand.

This article answers the question: “Paste name into formula?” — yes, you can paste a defined name into a formula in Excel, and the process is straightforward. You use the Paste Name dialog box (or the Use in Formula button) to insert a named range or constant directly into your formula, saving time and avoiding typos.

What Is a Defined Name in Excel?

A defined name is a meaningful, human-readable label that you assign to a cell, a range of cells, a constant value, or a formula. For example, instead of referring to cell B2:B100 in a formula, you can name that range SalesData and then write =SUM(SalesData). Names make formulas easier to read, audit, and maintain, especially in large spreadsheets.

Names are managed in the Name Manager (on the Formulas tab, in the Defined Names group). You can create a name by selecting the range and typing a name in the Name Box (to the left of the formula bar), or by using Define Name. Names can refer to:

  • A single cell: TaxRate = 0.08
  • A range of cells: Quarter1Sales = Sheet1!$B$2:$B$10
  • A constant: Discount = 0.15
  • A formula: NetProfit = =GrossProfit - Expenses

How to Paste a Name into a Formula

There are two primary ways to insert a name into a formula while you are editing it:

  1. Use in Formula button: While editing a formula, click the Use in Formula button on the Formulas tab (in the Defined Names group). A dropdown list appears with all available names. Click the name you want, and Excel inserts it at the cursor position.
  2. Paste Names dialog (F3): While editing a formula, press F3 (or click Use in Formula > Paste Names). This opens the Paste Name dialog box, listing all defined names. Select one and click OK (or double-click it) to insert it.

Both methods work in all modern versions of Excel (2010, 2013, 2016, 2019, 2021, and Microsoft 365). The Paste Name dialog also has a Paste List button that inserts a list of all names and their references into your worksheet—useful for documentation.

Why Paste Names Instead of Typing Them?

Typing a name manually is error-prone. If you misspell a name, Excel shows a #NAME? error. Pasting names eliminates that risk. It also helps you discover names you may have forgotten, especially in a workbook with many defined names. The Paste Name dialog is particularly handy when you are working on a complex model and cannot remember the exact name you assigned to a range.

Another benefit: pasting names makes your formulas self-documenting. For example, =SUM(MonthlySales) is far more meaningful than =SUM(Sheet2!C2:C50). When you or a colleague revisit the workbook later, the logic is clear.

Common Mistakes and How to Avoid Them

Even with pasting, a few pitfalls can arise:

  • Name scope: A name can be scoped to a specific worksheet or to the entire workbook. If you paste a name that is scoped to another sheet, Excel will still insert it, but it may not work if you are on a different sheet. Always check the scope in the Name Manager.
  • Name conflicts: If you have two names with the same text but different scopes, Excel will insert the one that is valid for the current sheet. If none is valid, you get an error.
  • Using names in array formulas: If you paste a name that refers to a range into a formula that is not an array formula, you may get a #VALUE! error. Use Ctrl+Shift+Enter for legacy array formulas, or use dynamic array functions (Excel 365) if available.
  • Name refers to a constant: If the name refers to a constant (e.g., Discount = 0.15), pasting it into a formula works fine. But if you later change the constant in the Name Manager, all formulas using that name update automatically—a powerful feature.

When to Use Paste Name vs. Direct Reference

Use paste name when you have a well-defined, reusable range or constant that appears in multiple formulas. It is especially useful in financial models, dashboards, and reports where clarity is critical. Direct references (like =A1*B1) are fine for one-off calculations that are unlikely to change or be reused.

If you are building a formula that uses a cell reference that you have already named, pasting the name makes the formula easier to read. For example, instead of =C2*$B$1, you could name $B$1 as TaxRate and write =C2*TaxRate. This makes the formula self-explanatory.

Alternatives to Paste Name

If you find yourself typing names often, you can enable Formula AutoComplete. As you type the first few letters of a name, Excel suggests matching names in a dropdown. Press Tab to accept the suggestion. This is faster than opening the Paste Name dialog, but it requires you to remember the name’s spelling.

Another alternative is to use Structured References in Excel Tables. When you convert a range to a table (Ctrl+T), you can refer to columns by their header names, e.g., =SUM(Table1[Sales]). This is similar to named ranges but is built into the table feature.

Frequently Asked Questions

Can I paste a name into a formula using only the keyboard?

Yes. While editing a formula, press F3 to open the Paste Name dialog, then use the arrow keys to select the name and press Enter. This works in all versions of Excel.

Why is my pasted name showing a #NAME? error?

This usually means the name is not defined in the workbook, or it is misspelled. Check the Name Manager (Formulas tab > Name Manager) to confirm the name exists and is spelled exactly as you pasted it. Also ensure the name is scoped to the current worksheet or workbook.

Can I paste a name into a formula in Google Sheets?

Google Sheets does not have a Paste Name dialog like Excel. Instead, you can type the name manually, or use the Data > Named ranges menu to see all names. There is no F3 shortcut, but you can use the autocomplete suggestions that appear as you type.

How do I paste all names at once to see what they refer to?

Open the Paste Name dialog (F3) and click Paste List. This inserts a two-column list starting at the active cell: the first column shows the names, and the second shows the references they point to. This is a quick way to document your workbook.

Does pasting a name work in array formulas?

Yes, but you may need to confirm the formula as an array formula (Ctrl+Shift+Enter in older versions) if the name refers to a range and you are performing an operation that returns multiple values. In Excel 365, dynamic arrays handle this automatically.

Can I paste a name into a formula that is in a different sheet?

Yes, as long as the name is scoped to the workbook (or to the sheet you are working on). If the name is scoped only to another sheet, Excel will not allow it to be used on a different sheet unless you change the scope in the Name Manager.

Related

Formula used

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →