Basic Functions
Beginner

ABS Function

How far off you are, not which direction.

Task:

Stocktake is in and the counted figures disagree with the system. You need the size of each discrepancy to decide what is worth investigating, and being 12 short matters as much as being 12 over. Put the variance for each item in column D.

Learning Objectives:

  • Use ABS to get magnitude
  • Do arithmetic inside a function call
  • See why sign matters when comparing differences
Hints

Solve without hints for +5 XP

Interactive Spreadsheet

The data in this exercise

This is the grid you start with. Cell references in the task — B6, C2 — point at the row numbers and column letters below.

ABCD
1ItemSystemCountedVariance
2Blue ink cartridge120114
3A4 paper (reams)340351
4Stapler4545
5Desk lamp7866
What this exercise teaches (contains the answer)

Without ABS, a shortfall and an overage cancel each other out the moment you total the column, and a shelf that is 12 under looks identical to one that is 12 over. Taking the magnitude first is what makes the variance column worth sorting.

Functions used here