Learning path · Level 2 · Tutorial 2

Write Budget Formulas with Cell References

Calculate costs in a small office-supplies budget using Excel or Calc. Write arithmetic and percentage formulas, keep a shared rate fixed with an absolute reference, and use a compact rate grid to practice mixed references without rewriting each calculation.

  • Level: Beginner
  • Duration: 25 min
  • 8 steps
Start tutorial Back to the path
Write Budget Formulas with Cell References

What you will go through

  1. Calculate the First Line Cost 3 min
  2. Control Arithmetic with Parentheses Choose arithmetic operators and parentheses for simple budget calculations, including one-time and per-unit fees. 3 min
  3. Fill Line Costs with Relative References Copy the first line-cost formula down the budget and inspect how relative references follow each row. 3 min
  4. Apply a Percentage Allowance Enter a percentage allowance rate and calculate both its added amount and the total cost for the notebook line. 3 min
  5. Keep the Shared Rate Fixed Use an absolute reference to keep one allowance rate fixed while copied formulas use each row's own line cost. 4 min
  6. Build a Rate Grid with Mixed References Build a compact allowance-rate grid and use mixed references so formulas copy correctly across columns and down rows. 5 min
  7. Inspect and Repair Copied Formulas Inspect formulas at the beginning and far end of filled ranges, repair reference or grouping mistakes, and verify a selected result with arithmetic. 3 min
  8. Test and Finish Your Budget Test the completed budget and rate grid with controlled input changes, validate selected results, and save the finished workbook. 4 min

What you will learn

  • Write arithmetic formulas that calculate line costs from quantities and unit prices.
  • Use parentheses to control calculation order and apply a percentage rate correctly.
  • Copy formulas with relative references so each row uses its own inputs.
  • Use an absolute reference to keep a shared rate fixed while copying a formula.
  • Use mixed references to preserve only a row or column in a two-direction calculation grid.
  • Inspect copied formulas and check selected results with simple arithmetic.

Before you start

  • Build a Structured Sales Register

Step 1 of 8

Calculate the First Line Cost

Build the budget layout

Set up the practice worksheet

Create a new workbook and rename its worksheet Budget. Save it now as Office Supplies Budget.xlsx in Excel or Office Supplies Budget.ods in LibreOffice Calc.

Enter the budget layout below in A1:E4. Apply US dollar currency formatting to C2:E4, including the empty formula cells in columns D and E. Leave D2:E4 empty until you enter formulas. Formatting these future result cells now ensures calculated costs display as dollar amounts.

Budget cell map

Enter these values in the Budget worksheet. Cells in columns D and E remain empty for now.

Budget range A1:E4. Apply US dollar currency formatting to C2:E4; D and E are reserved for formulas.
RowABCDE
1ItemQuantityUnit priceLine costCost with allowance
2Notebooks4$3.50Leave blankLeave blank
3Pens6$1.50Leave blankLeave blank
4Paper packs3$6.00Leave blankLeave blank

See the formula location

Worksheet diagram showing the A1:E4 budget, currency-formatted monetary columns C through E, and empty formula cell D2.

The first formula goes in D2, under Line cost. The future monetary result cells are already formatted as US dollar currency.

Calculate from the input cells

Use references in a formula

A formula begins with =. Instead of typing a calculated amount, use references to the cells that contain the inputs.

For the notebook line, B2 contains the quantity and C2 contains the unit price. The asterisk * means multiplication. Enter the formula in D2, then press Enter.

The formula bar shows the formula itself; D2 shows its calculated result. These are two views of the same cell.

First line-cost formula

Enter this formula in cell D2.

Excel or Calc formula
=B2*C2
Expected output
$14.00

After you press Enter, D2 displays the calculated amount using the current values in B2 and C2. Its US dollar currency format displays the result as shown.

Formula bar versus cell result

A spreadsheet diagram where D2 displays $14.00 while the formula bar shows =B2*C2, using B2 and C2 as inputs.

In D2, the formula bar shows =B2*C2; the currency-formatted cell displays $14.00.

Practice: calculate the notebook cost

Complete the D2 formula

Complete the formula for cell D2. It must calculate the notebook line cost from the quantity and unit-price input cells. Then enter it in your worksheet and confirm that D2 displays a calculated currency result rather than a manually typed answer.

Excel or Calc formula
=

Step 2 of 8

Control Arithmetic with Parentheses

Choose arithmetic operators and parentheses for simple budget calculations, including one-time and per-unit fees.

Read arithmetic formulas

Arithmetic rules

Arithmetic operators tell the spreadsheet what calculation to perform. Multiplication and division happen before addition and subtraction. When operators have the same precedence, calculation moves from left to right.

Use parentheses when you want part of a formula calculated first. These examples are standalone practice; do not change the values in the main budget range.

Operators for budget calculations

Use these operators to express common budget calculations.

Arithmetic operators used in formulas
OperatorBudget purpose
+Add an amount, such as a fee
-Subtract an amount, such as a discount
*Multiply quantity by unit price
/Divide a total by a quantity

See the calculation order

A spreadsheet formula diagram showing B2 times C2 calculated before adding 2.

In =B2*C2+2, multiplication is completed before the fee is added.

Compare fee placement

Example

One fee or a fee per unit

The placement of a fee changes its meaning. With B2 equal to 4 and C2 equal to $3.50, compare these two standalone formulas:

  • =B2*C2+2 calculates the line cost first, then adds one $2.00 fee. Result: $16.00.
  • =B2*(C2+2) adds $2.00 to the unit price first, then multiplies by the quantity. Result: $22.00.

The parentheses make C2+2 happen first. Because that increased price is multiplied by 4, the $2.00 fee applies to every unit.

Tip

Use placement, not appearance

For a discount, use - in the same positions. =B2*C2-2 subtracts one $2.00 discount from the whole line. =B2*(C2-2) subtracts $2.00 from each unit price before multiplying.

A formula can look similar and still describe a different budget decision. Read where the fee or discount is placed before trusting the result.

Practice calculation order

Complete the operator

Practice a one-time discount. Quantity is in B2 and unit price is in C2. Complete the formula so it calculates the line cost and then applies a single $2.00 discount. This is a standalone practice formula; leave the main budget inputs unchanged.

A one-time discount

Fill the blank with the required arithmetic operator.

Excel or Calc formula
=B2*C22

Apply the arithmetic choices

Operator and fee check

Match each formula or operator to its budget purpose. Use B2 = 4 and C2 = $3.50 for the two formula comparisons.

Tap an item and then its matching pair.

Step 3 of 8

Fill Line Costs with Relative References

Copy the first line-cost formula down the budget and inspect how relative references follow each row.

See the copied pattern

Relative references follow the row

When you copy a formula, an unmarked reference is a relative reference: it changes according to the formula’s new position.

In D2, =B2*C2 uses the quantity and unit price on row 2. Copying that formula one row down to D3 shifts both references down one row, so the new formula uses row 3 inputs. The formula text changes, but its pattern—quantity times unit price—stays the same.

Do not type the same calculated number into every row. Copy the formula pattern so each line cost remains connected to its own inputs.

A copied formula shifts its references

A worksheet comparison shows D2 using B2 and C2, then D3 using B3 and C3 after the formula is copied down.

The destination formula has different row numbers because its relative references moved with it.

Fill the line-cost column

Use the fill handle

Now fill the existing formula from D2 through D4 in your own Budget worksheet.

  1. Select D2.
  2. Point to the small square at the lower-right corner of the selection. This is the fill handle.
  3. Drag the fill handle down through D4, then release.
  4. Select D3 and then D4. Check the formula bar: each formula should refer to the quantity and unit price on its own row.

The displayed results in D2:D4 should be $14.00, $9.00, and $18.00. The values differ because the referenced inputs differ.

Drag one formula down

Dragging the fill handle copies the formula pattern down the selected rows.

Tip

Check the formula, not just the number

If you see the same formula text in every row, stop and inspect the formula bar. A correct copied formula changes its row references; it does not keep referring to row 2.

Practice the reference shift

Predict the next copied formula

Complete the formula that belongs in D3 after the formula in D2 is filled down one row.

excel
=*

Apply and verify

Fill and verify all three line costs

In your Budget worksheet, predict the formula that belongs in D4 after filling down from D2. Then perform the fill operation locally if you have not already done so.

Inspect the formula bar in D2, D3, and D4. In your response, state the formula in D4, confirm that you used the fill handle, and list the displayed line costs from D2:D4 in order.

Write at least 55 characters (0/55).

Step 4 of 8

Apply a Percentage Allowance

Enter a percentage allowance rate and calculate both its added amount and the total cost for the notebook line.

Set the shared allowance rate

Enter the rate as a percentage

The line costs in D2:D4 are already complete. Now add one shared practice input for the notebook calculation.

In the Budget worksheet:

  1. Select G1 and enter Allowance rate.
  2. Select H1, type 10%, and press Enter.

Entering 10% directly stores the numeric value 0.10: ten hundredths of one. The percentage format displays that stored value as 10%.

Do not type 10 for this rate. A stored value of 10 represents ten whole units, not ten hundredths.

10% is stored as 0.10

Budget worksheet with G1 labeled Allowance rate and H1 displaying 10%, with a callout that its numeric value is 0.10.

The percentage display is 10%, while the rate used in arithmetic is 0.10.

Enter the cost including allowance

Calculate the added amount and the full cost

The notebook base cost in D2 is $14.00. First, the allowance amount is the base cost multiplied by the rate:

=D2*H1

That amount is $1.40. To calculate the full cost including the allowance, use 1+H1 as the multiplier. Here, 1 represents 100% of the base cost and H1 adds another 10%.

Select E2, enter =D2*(1+H1), and press Enter. The parentheses make the multiplier 1+H1 happen before multiplication.

Compare the two results

These calculations answer two different questions.

The formula in E2 returns the full cost, not just the added allowance.
CalculationFormulaDisplayed result
Allowance amount only=D2*H1$1.40
Cost with allowance in E2=D2*(1+H1)$15.40

Tip

Pause before copying

Leave the formula only in E2 for now. In the next step, you will make the shared rate reference safe to copy to other rows.

Practice: distinguish the two amounts

Complete the notebook allowance check

In the existing Budget worksheet, H1 is formatted as 10% and D2 contains the notebook line cost. Complete this allowance check. Enter only the number and decimal point for the two currency amount blanks.

spreadsheet
H1 stored numeric value: 
E2 formula: =D2*(+H1)
Allowance amount, displayed as currency: $
E2 displayed result: $

Step 5 of 8

Keep the Shared Rate Fixed

Use an absolute reference to keep one allowance rate fixed while copied formulas use each row's own line cost.

Keep the shared allowance rate at H1

One input must not move

The allowance rate in H1 is one shared input. Your earlier formula in E2 used H1 without dollar signs. When you copy that formula down, the line-cost reference should move from D2 to D3 and D4, but the shared rate must continue to point to H1.

An absolute reference fixes both parts of an address: $H$1 fixes column H and row 1. The dollar signs are reference markers, not currency symbols. By contrast, D2 is a relative reference, so it can follow each budget row.

Relative line cost, absolute rate

Compare the source formula with its copied version.

A spreadsheet diagram shows E2 and E3 formulas. Their D references change by row, while both formulas point to the fixed allowance rate in H1.

In E2, D2 is relative and $H$1 is absolute. In E3, the relative reference becomes D3, while $H$1 remains unchanged.

Fill the adjusted-cost column

Replace, fill, and inspect

On the Budget worksheet, select E2 and replace the earlier percentage formula with the copy-safe version below. Then drag the fill handle from E2 down through E4.

Before filling, confirm that H1 still displays 10%. After filling, select each cell in column E and inspect the formula bar: the D row should match the budget row, while $H$1 should remain exactly the same.

Copy-safe formula for E2

Enter this formula in E2.

excel
=D2*(1+$H$1)
Expected output
$15.40

With the existing values and US currency formatting, E2 displays:

What the completed column shows

After you fill E2 down to E4, compare the formulas and displayed results. The formula text should not be identical in every row: only the relative line-cost reference changes.

Each row uses its own line cost and the same allowance rate in H1.
CellFormulaDisplayed result
E2=D2*(1+$H$1)$15.40
E3=D3*(1+$H$1)$9.90
E4=D4*(1+$H$1)$19.80

Check the copied references

Complete the copy-safe formulas

Complete the copied formulas for the baseline budget. Use the formula pattern to predict the formula in E4.

excel
E2: =D2*(1+)
E3: =D3*(1+)
E4: =*(1+)

Step 6 of 8

Build a Rate Grid with Mixed References

Build a compact allowance-rate grid and use mixed references so formulas copy correctly across columns and down rows.

Create and format the grid inputs

Set up and format the rate grid

You already have line costs in D2:D4. Now create a compact rate grid in G4:J7 to compare each base cost at three independent allowance rates.

Enter Base cost in G4. Enter 5%, 10%, and 15% in H4:J4. Keep H4:J4 formatted as percentages.

Before entering or checking grid results, select G5:J7 and apply US dollar currency formatting. This includes the linked base-cost cells and the currently blank calculation cells, so all results will display as amounts such as $14.00 and $14.70 after formulas are entered. The grid headings are independent of the shared allowance in H1.

Grid structure

The grid combines one base cost from each row with one allowance rate from each column.
AreaContentsFormat
G4Base costText
H4:J45%, 10%, 15%Percentage
G5:G7Links to line costsUS dollar currency
H5:J7Allowance calculationsUS dollar currency

Grid structure

A spreadsheet diagram identifies G4:J7 as a grid with base costs down column G, percentage rates across row 4, and a currency-formatted calculation area from H5 to J7.

Format G5:J7 as US dollar currency; keep the rate headings in H4:J4 as percentages.

Link each base cost

Enter these links in the base-cost column. Each formula connects the grid to an existing line cost; do not retype the amounts.

excel
G5: =D2
G6: =D3
G7: =D4
Expected output
$14.00
$9.00
$18.00

With US dollar currency formatting applied to G5:G7, these linked values display as shown.

Read the mixed-reference pattern

Use one fixed part in each reference

A mixed reference fixes only one part of an address. In the grid seed cell H5, enter =$G5*(1+H$4).

$G5 fixes column G, so every formula keeps taking its base cost from column G. Its row has no dollar sign, so it can change from 5 to 6 to 7 when copied down.

H$4 fixes row 4, so every formula keeps taking its rate from the header row. Its column has no dollar sign, so it can change from H to I to J when copied across. The dollar signs are reference markers, not currency symbols.

How the two references move

The seed in H5 changes differently in each copy direction.

Each reference preserves exactly the part marked with a dollar sign.
Copy operationBase-cost referenceRate reference
Across from H5 to J5$G5 stays $G5H$4 becomes J$4
Down from H5 to H7$G5 becomes $G7H$4 stays H$4
Across and downColumn stays G; row follows the result rowRow stays 4; column follows the result column

Fill the calculation area

Enter the grid seed

Enter this seed formula in H5. It calculates the first base cost using the first grid rate.

excel
=$G5*(1+H$4)
Expected output
$14.70

This result assumes G5 is $14.00 and H4 is 5%. It displays as currency because G5:J7 was formatted as US dollar currency.

Fill across, then down

Use the fill handle in two stages:

  1. Drag the fill handle from H5 across to J5.
  2. Select H5:J5, then drag its fill handle down through row 7.

This fills the calculation area H5:J7. Do not rewrite formulas or alter the budget inputs. Before inspecting the far corner in the formula bar, use the reference pattern to predict what it should contain. Because G5:J7 is formatted as US dollar currency, every calculated grid result should display with $ and two decimal places.

Tip

Check the reference choices

If you copied a fully absolute reference such as $G$5, every cell would use the first base cost. If you used H4 with no dollar signs, the rate heading would move down with the formula. The seed needs one fixed column and one fixed row.

Check the completed grid

Predict and verify the far corner

Without looking at the formula bar in J7, complete the seed-reference markers, predict the copied formula in J7, and verify its displayed value.

excel
H5 seed: =G5*(1+H4)

J7 after filling: =

Displayed value in J7: $

Step 7 of 8

Inspect and Repair Copied Formulas

Inspect formulas at the beginning and far end of filled ranges, repair reference or grouping mistakes, and verify a selected result with arithmetic.

Check the pattern at both ends

Inspect both ends of a filled range

Copied formulas should not all look identical. Instead, their references should follow the destination cell.

Use the formula bar to inspect the first formula in a filled range and then a far-end formula. In the allowance column, compare E2 with E4. In the rate grid, compare the seed at H5 with the far corner at J7.

Ask two questions:

  1. Does each formula point to the input row or rate heading for its own position?
  2. Did the reference markers preserve only the row or column that should stay fixed?

A displayed dollar amount can look reasonable even when it comes from the wrong cell. Check the references, not only the result.

Compare the source and far-end formulas

The formulas at the far end use different row and column references, but they keep the intended fixed parts.

A Budget worksheet diagram compares E2 and E4 in the allowance column, plus H5 and J7 in the rate grid. Highlights show that the line-cost row changes down the sheet, while the shared rate and the appropriate grid heading remain fixed.

Formula pattern check: E2 shows =D2*(1+$H$1) and $15.40; E4 shows =D4*(1+$H$1) and $19.80. H5 shows =$G5*(1+H$4) and $14.70; J7 shows =$G7*(1+J$4) and $20.70.

Identify the kind of mistake

Classify the problem before repairing it

A copied-formula problem usually has one of two causes:

  • A reference error points to the wrong input, shared rate, or grid heading because a row or column was fixed incorrectly.
  • A grouping error uses the correct inputs but applies arithmetic in the wrong order.

To repair a repeated mistake, return to the seed formula, correct it in the formula bar, and refill the intended range. Do not manually replace every displayed result: that would break the formula pattern.

Common audit checks

Use the formula bar and a quick calculation together. The formula tells you which inputs were used; arithmetic tells you whether the displayed amount is plausible for those intended inputs.

Reference behavior to verify in the completed Budget worksheet.
Cell to inspectIntended behaviorWarning sign
E4Line cost follows row 4; allowance stays at H1A fixed D2 is still used
J5Base cost stays in column G; rate follows column JThe formula still uses H4
E2The entire multiplier is calculated firstThe rate is added after multiplication

Tip

Do not trust appearance alone

For example, =D2*1+$H$1 can display $14.10 when D2 is $14.00 and H1 is 10%. That is a plausible-looking number, but the intended cost with allowance is based on multiplying by the complete rate multiplier.

Practice a mixed-reference repair

Repair one far-end grid formula

Repair the rate-grid formula for cell J7. Complete the mixed references so the formula uses the base cost from row 7 and the rate heading above column J.

Excel or Calc formula
=*(1+)

Apply the complete audit

Audit, repair, and validate

Perform a short formula audit. Assume these faulty formulas appear in the completed Budget worksheet:

  • E4 contains =$D$2*(1+$H$1).
  • J5 contains =$G5*(1+$H$4).
  • E2 contains =D2*1+$H$1.

For each one, state whether it is a reference error or a grouping error, then write its corrected formula. Next, write the correct formula for J7 and manually calculate its result when its base cost is $18.00 and its column rate is 15%.

Use formulas beginning with = and include the final amount in US currency format.

Write at least 180 characters (0/180).

Step 8 of 8

Test and Finish Your Budget

Test the completed budget and rate grid with controlled input changes, validate selected results, and save the finished workbook.

Test the pen quantity

Change one input and trace its dependents

Open your completed Budget worksheet. Do not rewrite any formulas.

First, change B3 from 6 to 8. This tests whether the relative formulas already in the budget respond to a changed input. Check the formula bar for D3, then inspect the linked pen row in the rate grid.

The quantity change should affect the pen line cost and its grid row because those cells depend on D3.

How the pen input flows through the worksheet

A Budget worksheet diagram showing B3 changed to 8, D3 calculated from B3 times C3, and the resulting pen base cost flowing into its rate-grid row.

Changing B3 updates D3, which also updates the linked pen base cost and that row of the rate grid.

Selected checks after the quantity edit

Compare these cells after changing B3 to 8. The displayed currency values assume US dollar formatting.

Expected dependent values after the first edit
CellFormula to inspectExpected displayed result
D3`=B3*C3`$12.00
G6`=D3`$12.00
H6`=$G6*(1+H$4)`$12.60
I6`=$G6*(1+I$4)`$13.20
J6`=$G6*(1+J$4)`$13.80

Test the shared allowance

Change the shared allowance, not the grid headings

Now test the shared allowance separately. Change H1 from 10% to 20%, leaving the rate-grid headings in H4:J4 at 5%, 10%, and 15%.

Column E uses the shared allowance in H1, so its displayed costs should update. The rate grid uses its own heading cells instead, so the grid values should remain unchanged by this edit. Inspect formulas in the formula bar as well as displayed results.

What should change—and what should not

These checks are made after both edits: B3 is 8 and H1 is 20%. Compare a column-E formula with a rate-grid formula.

The shared allowance affects column E only
CellFormula to inspectExpected displayed resultReason
E3`=D3*(1+$H$1)`$14.40Uses H1
E2`=D2*(1+$H$1)`$16.80Uses H1
E4`=D4*(1+$H$1)`$21.60Uses H1
I6`=$G6*(1+I$4)`$13.20Uses I4, not H1

Check the shared reference

Reference-selection check

Complete the missing reference for the formula in E3. It must use the shared allowance cell and remain correct if copied down column E.

excel
=D3*(1+)

Verify, explain, and finish

Summary

Final verification and save

Before saving, confirm that B3 is 8, H1 is 20%, and the rate-grid headings are still 5%, 10%, and 15%.

Use the formula bar to inspect cells rather than judging only by the displayed numbers. Save the worksheet named Budget as Office Supplies Budget.xlsx in Excel or Office Supplies Budget.ods in LibreOffice Calc.

  • Relative references let a copied formula use the inputs from its own row.
  • An absolute reference keeps one shared input fixed.
  • Mixed references let a grid hold the base-cost column and rate-header row in the needed directions.
  • A manual calculation and a formula-bar check provide two ways to verify a result.

Apply the complete checking workflow

On your own completed worksheet, report your final checks in 3–5 sentences:

  1. State the displayed value in D3 after changing B3 to 8, and state one displayed result from the pen grid row (H6, I6, or J6). Show the manual multiplication for both values.
  2. State the displayed value in E3 after changing H1 to 20%, and show its manual calculation.
  3. Explain why your chosen grid result did not change when H1 changed. Name the reference type used for the shared allowance in column E and the reference types used by the grid formula.

Write at least 180 characters (0/180).

Budget formulas complete

Congratulations! You completed: Write Budget Formulas with Cell References

You tested a live budget after input changes, verified formulas and results, and saved the completed workbook. You can now choose relative, absolute, and mixed references for practical spreadsheet calculations.

Download the App now to have access to + 5000 free courses, exercises, certificates and lots of content without paying anything!

  • 100% free online courses from start to finish

    Thousands of online courses in video, ebooks and audiobooks.

  • More than 60 thousand free exercises

    To test your knowledge during online courses

  • Valid free Digital Certificate with QR Code

    Generated directly from your cell phone's photo gallery and sent to your email

Cursa app on the ebook screen, the video course screen and the course exercises screen, plus the course completion certificate