5 Claude Prompts for Named Ranges (Copy & Paste)

Naming a range takes four seconds. Finding the one formula that still points at the old address takes an afternoon, and the person who wrote it left the team a year ago. These five Claude prompts for named ranges handle the naming, the cleanup, and the explanation, so the second half of that sentence stops happening.

Before you start: the variables

[Variable] What to put in
[workbook name] The file you are working in, and what it is used for.
[sheet names] Every tab, in the order they appear.
[range list] The ranges that matter, written as Sheet!A1:B20.
[naming convention] Your prefix and capitalization rules, such as a two-letter type prefix.
[who edits] Who opens the file and what they already know about it.

The prompts

1. Audit the workbook and propose names

Here is a workbook called [workbook name] with these tabs: [sheet names]. These ranges get used in formulas: [range list]. Propose a name for each range, explain what the range holds in one line, and flag any pair that looks like it should be one range instead of two.

What it does: Turns a pile of addresses into a list of names with reasons attached.

How to use: Replace the three variables; delete the proposals you will not maintain.

2. Set a convention before you create anything

Write a naming convention for named ranges in [workbook name], edited by [who edits]. Cover prefixes by data type, capitalization, how to signal scope, and the maximum length. Give five example names that follow it and three that break it, with the reason each one fails.

What it does: Prevents two names for the same thing six months from now.

How to use: Replace the two variables; use [naming convention] here as the text you will paste into prompt three.

3. Rewrite formulas to use the names

Rewrite these formulas so they use named ranges instead of cell addresses: [paste formulas]. Follow this convention: [naming convention]. Show the before and after on separate lines, list any name the formula needs that does not exist yet, and do not change what the formula calculates.

What it does: Converts the formulas while keeping the math identical.

How to use: Replace the formulas and the convention; create missing names before you paste anything back.

4. Build a glossary tab for the names

Draft a glossary tab for [workbook name]. For each range in [range list], give the name, the sheet it lives on, the address, what it holds, and who updates it. Sort it alphabetically and add a short note at the top explaining how to add a new name correctly.

What it does: Leaves behind the documentation that makes names worth having.

How to use: Replace the workbook and range list; keep the sheet hidden only if readers do not need it.

5. Diagnose broken and circular names

These named ranges are causing errors: [list names and error messages]. For each one, list the likely causes in order of probability, the check that confirms each cause, and the fix. Flag any case where two names refer to overlapping cells and could create a circular reference.

What it does: Gives you a test order instead of random clicking.

How to use: Replace the name list and the error text exactly as the workbook shows it.

A quick worked example

Take prompt three. Your formulas read Sheet2!B2:B40 three times, the convention is a lowercase prefix followed by the content, and the range holds monthly budget figures. Filled in, the request rewrites the formulas to point at a single name, keeps the totals identical, and reports that the name does not exist yet. You create it once on the budget tab, paste the rewritten formulas, and the next edit only touches one definition instead of nine formulas.

Keep going

More free prompts for Excel & Spreadsheets are waiting in the GuPrompt library.

Leave a Comment