Ravindra BagaleCourses & study guides मराठी Track your progress

1. Excel Basics

Excel

1.8 Named Ranges

Start with the rate that everybody needs

Imagine you are reviewing a practice delivery workbook inspired by Blinkit. Eleven people could open the same file, and each should be able to find the rate used in the order calculations. The order amounts and tax rates in this lesson are fictional. They describe a practice workbook, with no claim about Blinkit's systems or the applicable GST rate for any real sale.

The first row you review has an order amount of ₹270 and a calculated tax of ₹13.50. The result looks reasonable. Your next job is harder. Ask where the rate came from, check that the next order uses the same rate, and show a teammate where to update it for a different practice scenario. Those questions matter even when the current answer is already right.

A defined name is an identifier you assign in Excel. Its definition can refer to a cell or a range of cells. Excel also supports named constants and formulas. Here you will name cells, because the learner should be able to click through to the source and see the number. A named range can cover a single cell, which is useful for an assumption such as a rate. It can also cover a list, which raises a different question about what happens when that list grows.

You will finish this lesson with two independent checks. First, you will change one input and see three calculations respond. Then you will add an order and compare two totals to see which values they include. Accuracy comes from checking both the computation and the set of cells being computed.

Read a named range in four parts

Open a blank workbook with one sheet named Settings and another named Orders. A workbook is the whole Excel file. A worksheet is one tab in that file. Start with Settings cell B1 containing 5%. For every name you create, be able to read these four parts aloud.

  1. The label. GST_Rate is what you type in a formula. The label should tell a reader what the number represents. Someone should be able to distinguish a decimal rate from a tax amount even when both appear on the same sheet.
  2. The destination. The definition for this label points to =Settings!$B$1. Before the exclamation mark is the worksheet name. After it is the cell address. The dollar signs fix the column and the row in this definition.
  3. The scope. Choose Workbook so that formulas on both sheets can use the plain name. Scope tells Excel where it can resolve the label without an extra qualifier. The destination can be on one sheet even though the label is available on several sheets in the workbook.
  4. The stored value. Excel follows the definition to B1. At the moment, B1 contains the number represented by 5%, which is five hundredths. If the user changes that input to 8%, the definition still points to B1, and the stored value Excel reads has changed.
Settings B1 stores 5%. The workbook name GST_Rate refers to Settings absolute B1. In Orders C2, 270 multiplied by the named rate gives 13.50 rupees.
Trace the label to its destination, then bring the current input into the calculation. The amount still comes from the order row.

Notice that the label does not contain a number. You could say the label gives Excel an address to follow. Changing the wording in Settings A1 from GST rate to Practice tax rate does not change the formula. A1 is a human-readable title. Conversely, editing B1 changes the calculation even if A1 stays exactly the same. A title cell, a defined name and the value referred to are separate parts of the workbook.

You may already know that =B2*Settings!$B$1 solves the same calculation without a name. That absolute reference is a sound choice for a small one-off workbook. The name becomes more valuable when the input appears in several different formulas or across several sheets. The link to the earlier lesson on relative and absolute references helps explain why the row amount moves while the common rate stays fixed.

Create a name and test the destination

Before opening the name controls, select the intended source cell. Beginners often open a dialog while their result cell is selected. Excel can use the current selection as a starting reference, and an accidental result-cell reference can produce an unwanted link or a circular calculation. Starting at the source makes the expected destination clear.

Quick naming with the Name Box

  • On the Settings sheet, click B1. The Name Box is the address control beside the formula bar where the selected cell is normally identified.
  • Click in the Name Box, type GST_Rate, and confirm with Enter. On an Excel client that supports name creation with this box, this creates a workbook-level name for the selection. This is handy when the selection is easy to verify and you want workbook-wide access.
  • Click an empty cell elsewhere, then use the Name Box dropdown or enter GST_Rate and confirm. Excel should take you to Settings B1 when the name points to this full, single-cell reference. Check the sheet tab as well as the cell position before proceeding.
  • In desktop Excel, inspect the entry from the Formulas tab through the defined-name tools. The Name Manager helps you check the current value, scope and reference. A successful jump only checks the target; the manager gives you a separate view of its stored definition.

Create with the full controls

Use the Formulas tab and its Define Name or New Name control when you need to set the scope or document the input. Set the name to GST_Rate, scope to Workbook, and Refers to to =Settings!$B$1. If you already created it with the Name Box, inspect that entry instead of trying to add a second workbook-level name with the same spelling. A short comment such as “Fictional order scenario input expressed as a percentage” makes the definition more useful to a teammate.

The exact ribbon layout and management controls vary with Excel platform and version. These labs use the desktop workflow and include expected results for any supported client where you can create and inspect the required names. If you cannot see the expected scope or table commands, use a desktop client with the relevant controls so you can observe those parts of the lesson directly.

Choose a label a teammate can trust

  • Write the business meaning. GST_Rate describes the input. Rate1 forces the next reader to search for a definition and provides no clue that a separate delivery fee rate might exist.
  • Use an underscore between words. Dispatch_Target reads cleanly. Spaces are unavailable in defined names even though worksheet titles can include spaces. Choose a letter or an underscore at the start for these exercises.
  • Avoid names Excel can read as cell addresses. GST1 is address-shaped and column GST is within Excel's supported grid. Use GST_Rate. Single-letter R and C in either case are reserved shorthand and should also be avoided.
  • Assume capitalization is for people. Excel does not distinguish names by case. Prefer one spelling when you write the formulas so a reader can search the workbook confidently.

A simple naming test is to ask a classmate what unit the name suggests. If a name like Fee might mean either a fraction or rupees, agree on two names such as Delivery_Fee_Rate and Delivery_Fee_Amount. If you also define a table, use a recognizable prefix such as tblOrders so you can tell it apart from the reusable single-cell assumptions in a screenshot of Name Manager.

Follow the formula as you fill it down

Look at one formula before trying three rows. =B2*GST_Rate combines two inputs. The reference B2 is relative, so copying the formula down moves the row number to match the new location. The named part still says GST_Rate. Because its definition in this exercise is an absolute reference, it resolves to the same source cell. This combination gives each order its own amount and all orders one scenario rate.

Walk from the first order to the rate change

  1. Read both inputs

    Orders B2 contains ₹270, and Settings B1 contains 5%. Mark which information should follow the order and which should be read from a common assumption. That decision determines which reference you use.

  2. Calculate the first row

    In C2, =B2*GST_Rate reads the amount and multiplies it by 0.05. The result is ₹13.50. The formula name describes the purpose of the second input.

  3. Fill to the next row

    C3 becomes =B3*GST_Rate. B3 contains ₹64, so the next result is ₹3.20. The amount moved to the new row while the common input still comes from Settings B1.

  4. Change the scenario

    Put 8% in Settings B1. The first two results become ₹21.60 and ₹5.12. Their difference follows the two amounts, and both respond to the same rate change.

Excel also permits relative references inside a defined name. That means the name's target can depend on the cell from which you use it. Relative names can be useful when a workbook designer deliberately wants this effect. This lesson uses absolute references in the name definition so that one input always has one location. Seeing familiar letters in the formula is only part of the check. Inspect the dollar signs and the full Refers to expression to establish which kind of name you were given.

Lab 1 · Build an editable order-rate workbook

Use a fresh practice copy. Saving a file once at the start gives you somewhere safe to try a mistake later. The example uses a single illustrative percentage and ignores questions of tax categories, tax-inclusive pricing and rounding policy. Those would require their own specifications. Here the objective is to show where the input lives and prove that every intended row responds to it.

Enter the small practice dataset

  1. Create the Settings and Orders tabs. Type Practice GST rate in Settings A1 and type 5% in B1. Include the percent sign in the entry so you deliberately create the five-hundredths value.
  2. On Orders, type the three headers into A1 through C1. Then add the three given IDs and amounts. Enter the amounts as numbers. You can apply a rupee display to B and C afterward, once you know their contents are numeric.
  3. In Settings, define the workbook name GST_Rate for B1. Inspect the scope and destination. If you already set the name in this practice file, reuse it after confirming the target. This exercise deliberately needs only one rate name.
Start with B1 at 5%. The last two columns are expected results for each test.
Orders rowOrder ID (A)Amount (B)GST (C) at 5%GST (C) at 8%
2BLK-100227013.5021.60
3BLK-1001643.205.12
4BLK-10071,29964.95103.92

Test the formulas before and after a change

  1. Enter =B2*GST_Rate in C2. The amount 270 multiplied by five hundredths gives 13.50. If General format displays 13.5, you have the same numeric value. Two visible decimal places are useful for comparing rupee outputs.
  2. Fill C2 down through C4. Select C4 and inspect the formula bar. It should multiply B4 by the same name. Verify all three outputs before trusting a summary. One accidentally repeated reference could still give a plausible first row.
  3. In Orders E2, enter =SUM(C2:C4). The result is ₹81.65. In F2, enter =SUM(B2:B4)*GST_Rate. It also gives ₹81.65 for this dataset. The cross-check uses one rate and amounts that yield exact two-decimal tax examples. Workbooks that round each line explicitly can have a difference from multiplying the grand total, so an equality test needs the calculation policy behind it.
  4. Change the input in Settings B1 to 8%. Under automatic recalculation, all three outputs update. Check C2 for 21.60, C3 for 5.12, C4 for 103.92 and the two totals for 130.64. If values look unchanged, first confirm the source cell you edited and the workbook's calculation setting. A formula that really uses the name will read the new value when Excel recalculates.
  5. Put 5% back, confirm ₹81.65 and save the practice file. The second lab begins from this state.

Use a second route to debug a result

In a blank General-formatted cell, enter =GST_Rate. The numeric value for 5% is 0.05, though percentage formatting can make Excel display it as 5%. If a test copy ever gives ₹1,350 for the first row, divide the unexpected result by the amount. That calculation implies a factor of five. Compare that factor with the defined source and check for an accidental plain 5 stored in it. Formatting a stored 5 as a percentage can show 500%, which tells you the underlying number is still five. Re-enter the intended value explicitly as 5%.

You can also compare C2 with =B2*Settings!$B$1 in a separate cell. Agreement here shows both routes reached the same value at this moment. Name Manager can then confirm the address itself. This matters because two different cells can temporarily contain 5%; matching numbers by chance gives less confidence than confirming the destination and deliberately changing the input.

Decide who can see a name in a formula

Scope determines where Excel recognizes a name without additional information. It would be easy to read Workbook scope as “stored everywhere.” The workbook contains a single named definition for this exercise. The practical benefit is that formulas on different tabs can find that definition. Scope says nothing about who has access to the file or whether a person can edit the source cell.

On Orders, =Dispatch_Target should return 18. On a new Summary tab, =Orders!Dispatch_Target identifies the local name using its owning tab and should also return 18. A plain =Dispatch_Target on Summary has no matching local or workbook definition in this setup, so Excel cannot resolve it. If it returns a value there, inspect the workbook's names. You may have created a workbook-scope version by mistake, or an existing entry may be supplying the result.

The worksheet name as a qualifier is distinct from the destination inside the definition. You could create a local name available unqualified on Orders that points at a cell on Settings. The scope would still be Orders. For the lab we keep both on Orders so the two roles are easy to explain. When a sheet name includes spaces, Excel uses apostrophes around the sheet name in a qualified reference. Start with the simple Orders and Settings titles so you can spot the exclamation mark quickly.

Excel can have identical spelling in different scopes, and a matching local name can take precedence over a workbook-level one. Imagine a team has a workbook-level GST_Rate that reads 5% but a local version on an imported tab reads 8%. Two formulas that look the same could produce different results for the same amount. Search Name Manager by spelling and check the Scope column before deciding the calculation itself is faulty. For a beginner workbook, give genuinely different assumptions distinct names.

Choose a range that follows the data you mean

Now imagine the order team runs its summary every afternoon. A new order arrives and a row appears below the existing ones. The summary still displays the same total with no error. That can be legitimate if the summary is meant to cover a closed batch. For today's live order list, it is a defect. A neat formula name helps you understand the calculation, but the name needs a definition that matches the intended row membership.

A bounded snapshot

Define a workbook name OrderAmount with Refers to set to =Orders!$B$2:$B$4. The colon means the continuous range beginning at the first address and ending at the second. A sum over the name covers the three chosen amount cells. Typing a fourth amount directly below B4 does not add B5 to that definition. Excel may adjust references during structural edits such as an insertion within a range. That is a different operation from typing in a cell outside its present boundary. This lab isolates the second operation so the comparison stays clear.

A collection intended to grow

Convert the small order list into an Excel Table with its header row. A named table has an identity as a collection, and each column has a header label. A structured reference describes the part of that collection you need. In tblOrders[Amount], tblOrders names the table, and [Amount] selects the data from its Amount column. The plain column reference selects data cells, excluding the header and any dedicated Total Row. When new data becomes a row in the table, the column reference follows the updated data area.

After adding an order of 367 rupees, the fixed name B2 through B4 still sums to 1,633 rupees. The expanded table Amount column includes B5 and sums to 2,000 rupees.
Two formulas can return different correct totals when they include different rows. Compare the range boundaries first.

Typing in the first blank row immediately beneath a table is a common way to add a row. Confirm that Excel actually made the new row part of the table. If it did not, select a cell within the table and use Table Design → Resize Table or the equivalent available control. Increasing the table's address turns an adjacent worksheet row into table data. Visual styling can give you a clue here. The table range and the expected total are stronger evidence.

Many sheets will use both tools. Put the shared input in a named settings cell. Put the order rows in a table. Then =SUM(tblOrders[Amount])*GST_Rate expresses two independent decisions in one formula. Its list of amounts follows the table, and its practice percentage follows the current settings value. If the number changes, test those two inputs separately to identify the reason.

Lab 2 · Catch an order the fixed range missed

Continue with the workbook from Lab 1. Keep the three existing amounts and restore 5% in Settings B1. Make sure Orders row 5 is empty in columns A and B before defining the ranges. This time the learning evidence is the difference between totals after you add one order. Start by proving that both formulas agree when they cover the same three rows.

Build both totals before the fourth order

  1. Define the workbook name OrderAmount for Orders B2:B4. Inspect Refers to and expect =Orders!$B$2:$B$4. Make a careful selection before naming a multi-cell range. Including the wrong first or last row can be easy to miss on a large sheet.
  2. Select Orders A1:B4 and insert a Table. Confirm that the first row contains headers and that B1 is exactly Amount. Column C remains outside this table for the exercise. It still contains the standalone per-row practice calculations you prepared earlier. These two experiments use different pieces of the sheet on purpose.
  3. Select a cell in the new table. In its design controls, rename it tblOrders. A default name such as Table1 has the same general capabilities, but using the agreed label lets your formula refer to the right collection.
  4. Outside the order data, enter =SUM(OrderAmount) in E5 and =SUM(tblOrders[Amount]) in F5. Both totals should equal ₹1,633. If either one differs, stop and inspect which values it includes. A matching starting point makes the later comparison meaningful.
  5. Check the number of numeric amounts with =COUNT(OrderAmount) and =COUNT(tblOrders[Amount]) in two available cells. Each returns three. Counting numeric entries can help detect a number stored as text. A sum may still look reasonable after skipping a value that came in as text.

Add one order and compare the evidence

  1. Type BLK-1011 in A5 and 367 in B5. Check that the table now covers A1:B5. If necessary, explicitly resize it to that range. An order sitting directly below a table can look included while the table still ends one row above.
  2. Verify that E5 remains ₹1,633 and F5 rises to ₹2,000. Confirm the two counts are now three and four. The difference of ₹367 should match B5 exactly. That comparison identifies which row membership explains the new result.
  3. Enter =SUM(tblOrders[Amount])*GST_Rate outside the order rows. Expected tax is ₹100.00. Under the same assumption the fixed total still gives ₹81.65. The ₹18.35 difference equals 367 multiplied by five hundredths.
  4. If you also want the row-level tax formula in C5, fill C4 down one row. Confirm =B5*GST_Rate and ₹18.35. Excel did not need the table to fill that separate worksheet formula for this experiment. By checking C5 yourself, you distinguish a row-specific result from the independent table-wide total.
  5. Save the file and put descriptive labels near the totals. The person reviewing a screenshot should be able to tell which total covers the original three rows and which includes all current rows in the table.
Proof that the new row changed only the calculation intended to include it.
CheckOriginal threeAfter order 4
Fixed name sum₹1,633₹1,633
Table column sum₹1,633₹2,000
Fixed name numeric count33
Table column numeric count34
Table total × rate₹81.65₹100.00

Try a final independent test in your practice copy. Temporarily change 367 to 368. If the table sum rises to 2,001 and table tax rises to 100.05, they responded to B5. The fixed name sum should stay at 1,633. Restore 367. A one-unit test often helps when two totals happen to match or when a team has changed a formula you cannot confidently read yet.

Trace the wrong number before repairing the workbook

When a formula reports an error about a name, start with spelling and scope. When it gives a plausible number, keep investigating the target and membership. The most serious lesson in the table experiment is that Excel can compute the wrong set of rows perfectly. A result with zero errors can still fail the question you were asked.

  • Excel shows #NAME?. Compare the formula with the actual label in the name tools. GST_Rates includes an extra “s” and does not match GST_Rate. A worksheet-scoped name can produce a similar failure on another sheet when written without its qualifier. Check both before replacing the formula.
  • The name exists, but its reference is broken. If the referenced sheet or cells were deleted, the definition may contain #REF!. Find a valid intended source from the workbook context, and correct the reference after verifying it. Simply replacing the name with a hard-coded rate would make the original update path harder to recover.
  • One tab disagrees. Compare its name scope and source with the working tab. A matching local name can lead the same-looking formula to another input. Use a temporary test cell to read the name on each tab and confirm the definitions behind the two results.
  • Tax jumps by a factor of one hundred. Compare the implied multiplier with the rate you expect. Five hundredths gives 13.50 for this order; five gives 1,350. Check the actual input and unit on Settings before adjusting the multiplication.
  • A new order fails to move the total. Check whether the formula uses the bounded range name or the table column. If it uses the table, verify the current table address and whether the new amount is numeric. Two checks, the row count and the amount sum, are usually more informative than the table's shading.
  • A consistent value persists after a real edit. Confirm the formula is actually in the cell, the edited input is its intended destination, and calculation has run. If someone pasted a value over the formula, the old output can remain visible and look convincing. The formula bar is the direct evidence.

When fixing an existing shared definition, use a test copy and record which important formulas depend on it. Compare both before and after with one known input and one input changed on purpose. An edit that fixes a formula on Orders could also change a report that used the same name for another reason. A small test case and a clear definition comment make the repair easier for the next person to follow.

Hand the workbook to a teammate

Leave the input label and its unit visible on Settings. A user can then read what is editable without inspecting a hidden constant. At the top of a handoff note, describe the intended audience for the two order summaries. For example, “Original batch” means the three rows frozen for this exercise, while “Current orders” means every row entered into the current Table. A good label conveys the membership decision to someone who has never seen the formulas.

  • Keep a comment about the name's purpose and intent. The value may change month to month, but the meaning of the input should stay understandable. A named rate should have one clear unit across every formula that uses it.
  • Use a matching sheet caption for the destination. Someone looking at B1 should understand why that value exists even if they navigated there by clicking the worksheet tab.
  • When you move formulas to another workbook, check the name definitions there. The original workbook's scope describes where its name is recognized. Verify copied formulas and any reference back to the source file before using the new workbook independently.
  • Say what a new row should affect. This decision tells your teammate whether to extend a bounded snapshot intentionally or add an ordinary order through the table. Test by plugging in a small value and predicting the total before comparing it.

Quiz · predict the result first

The shared rate is 8% and the amount is 64. Which value belongs in the tax cell: 5.12, 8, or 512?

It is 5.12. The input is eight hundredths. The amount and rate are multiplied, giving 64 times 0.08. An answer of 512 would correspond to a plain factor of eight. An answer of eight would confuse the label on the percentage with the calculated rupee amount.

You fill C2 down to C4. Should it read B2 or B4?

It should read B4 because the amount reference is relative. The label of the rate stays the same, and the absolute definition behind that label still selects Settings B1. If B2 remains in the copied formula, inspect whether the original row number was fixed or the same text was entered manually.

Does naming the three original amount cells make the fourth part of that range?

Entering the fourth amount in B5 leaves it outside the defined B2:B4 range. In this exercise only the table-based total includes it, once the table is confirmed to cover the fourth row. Compare the expected difference with B5 before changing either formula.

What should Summary type to use the Orders-only dispatch name?

Enter =Orders!Dispatch_Target. The prefix identifies where the local name is defined. On Orders, the unqualified form works. A workbook-wide name would be suitable if the target were truly shared, but this exercise deliberately preserves its local meaning.

Is GST1 a suitable name because it contains letters and a number?

No. Excel recognizes this as a possible cell address. Check both character rules and the shape of an address. GST_Rate gives you a clearer business label and follows the naming rules.

The fixed sum and the table sum differ by ₹367. What should you inspect first?

Check the table address and check B5. If the table includes the new row where 367 was entered, the difference is expected. Confirm that both summaries use their intended membership before treating a disagreement as an arithmetic error.

Interview practice · answer with a small example

What is a named range?

It is a defined Excel identifier whose target is a cell or group of cells. In a practice workbook, GST_Rate can point to Settings B1 so formulas use a name that explains the input. I would show the target in Name Manager and use a test formula to prove it returns the intended value.

When would you choose a named cell over a literal percentage?

I would use a named cell when many formulas share an assumption that a user needs to review or change. I can update the practice order rate once and check that all intended calculations respond. A percentage literal in the formula is understandable for an isolated constant demonstration, but each repeated literal would need separate maintenance.

How can two tabs running the same written formula return different values?

The name can resolve differently by scope. One tab may have a local definition even though a workbook definition has the same spelling. I would inspect both scopes and both destination values. A dull-looking 5% versus 8% input difference on an imported sheet can change the output without any visible difference in the formula text.

How would you keep a report current as rows arrive?

I would store the ongoing records in a named table and use a structured reference to its required column. Then I would add one known value and check that the table address and result both moved. A settings name can remain separate so I can change an assumption without changing which rows belong to the report.

What would you check before deleting an obsolete name?

I would inspect its destination, identify the formulas and related workbook features that use it, and test any replacement in a copy. I would compare expected balances or counts before removing the definition. Deleting a name while someone still uses it can turn a working formula into a name error.

Six cards for a quick recall

  • Identifier The name is the label a formula reads. The name can point to one cell or a group of cells.
  • Refers to The definition gives the target. Read the worksheet, column and row, then check the dollar signs.
  • Scope The workbook or worksheet where the name resolves by itself. A qualified local name contains its worksheet prefix.
  • Input A change to Settings B1 updates calculations that use the value from that destination. A new caption on A1 leaves that input value alone.
  • Membership A fixed reference to B2 through B4 omits a value typed in B5. An Amount reference follows the rows within its Table.
  • Two proofs Read the definition to establish the intended target, and change one known input to prove the actual downstream behavior.

Microsoft references

Continue practising: explore the existing Excel Task Hub for additional exercises.