The request

From Nicole Cox, Support Specialist
Your goal
In F2:F45, convert each refund_amount in column E to a real number with VALUE. Then in I1 put the SUM of the raw column E2:E45, in I2 the SUM of your converted column F2:F45, and in I3 how many amounts in E2:E45 are stored as text (COUNTA minus COUNT).
- Fill
F2:F45, I1:I3with the right valuesnot done yet - With formulas, not typed numbersnot done yet
- Use
VALUESUMCOUNTACOUNTnot done yet
Your sheet
| A | B | C | D | E | F | G | H | I | J | |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | return_id | order_item_id | returned_on | reason | refund_amount | refund_value | SUM of refund_amount | |||
| 2 | 1434 | 25418 | 2025-10-01 | changed_mind | 28.99 | SUM of refund_value | ||||
| 3 | 1435 | 25450 | 2025-10-02 | wrong_item | 28.99 | Amounts stored as text | ||||
| 4 | 1436 | 24641 | 2025-10-04 | changed_mind | 23.98 | |||||
| 5 | 1437 | 25419 | 2025-10-04 | damaged | 159.00 | |||||
| 6 | 1438 | 24827 | 2025-10-05 | changed_mind | 141.98 | |||||
| 7 | 1439 | 25116 | 2025-10-05 | late | 219.00 | |||||
| 8 | 1440 | 25420 | 2025-10-05 | damaged | 159.00 | |||||
| 9 | 1441 | 25229 | 2025-10-06 | late | 149.00 | |||||
| 10 | 1442 | 25633 | 2025-10-06 | damaged | 67.96 | |||||
| 11 | 1443 | 25736 | 2025-10-06 | damaged | 398.00 | |||||
| 12 | 1444 | 25318 | 2025-10-08 | changed_mind | 143.88 | |||||
| 13 | 1445 | 25635 | 2025-10-09 | wrong_item | 35.98 | |||||
| 14 | 1446 | 25230 | 2025-10-10 | changed_mind | 169.00 | |||||
| 15 | 1447 | 25732 | 2025-10-11 | damaged | 185.98 | |||||
| 16 | 1448 | 25801 | 2025-10-11 | wrong_item | 20.99 | |||||
| 17 | 1449 | 25818 | 2025-10-12 | changed_mind | 18.99 | |||||
| 18 | 1450 | 25746 | 2025-10-13 | wrong_item | 23.99 | |||||
| 19 | 1451 | 25134 | 2025-10-14 | changed_mind | 52.99 | |||||
| 20 | 1452 | 25634 | 2025-10-15 | late | 179.00 | |||||
| 21 | 1453 | 25976 | 2025-10-15 | damaged | 35.97 | |||||
| 22 | 1454 | 25820 | 2025-10-17 | changed_mind | 27.99 | |||||
| 23 | 1455 | 25963 | 2025-10-18 | damaged | 28.99 | |||||
| 24 | 1456 | 25995 | 2025-10-18 | damaged | 134.97 | |||||
| 25 | 1457 | 25421 | 2025-10-19 | late | 107.98 | |||||
| 26 | 1458 | 25978 | 2025-10-19 | wrong_item | 54.99 | |||||
| 27 | 1459 | 25128 | 2025-10-20 | late | 179.00 | |||||
| 28 | 1460 | 25293 | 2025-10-20 | changed_mind | 39.98 | |||||
| 29 | 1461 | 26041 | 2025-10-20 | damaged | 15.99 | |||||
| 30 | 1462 | 26114 | 2025-10-20 | damaged | 29.99 | |||||
| 31 | 1463 | 26009 | 2025-10-21 | wrong_item | 56.97 | |||||
| 32 | 1464 | 25975 | 2025-10-22 | wrong_item | 779.00 | |||||
| 33 | 1465 | 26010 | 2025-10-22 | wrong_item | 104.99 | |||||
| 34 | 1466 | 26040 | 2025-10-22 | damaged | 17.99 | |||||
| 35 | 1467 | 26044 | 2025-10-22 | wrong_item | 92.99 | |||||
| 36 | 1468 | 26193 | 2025-10-22 | wrong_item | 27.99 | |||||
| 37 | 1469 | 26171 | 2025-10-24 | wrong_item | 25.99 | |||||
| 38 | 1470 | 25904 | 2025-10-25 | changed_mind | 982.60 | |||||
| 39 | 1471 | 26162 | 2025-10-25 | damaged | 323.94 | |||||
| 40 | 1472 | 26152 | 2025-10-26 | damaged | 18.99 | |||||
| 41 | 1473 | 26298 | 2025-10-26 | wrong_item | 20.99 | |||||
| 42 | 1474 | 25784 | 2025-10-27 | late | 179.00 | |||||
| 43 | 1475 | 25987 | 2025-10-30 | late | 11.99 | |||||
| 44 | 1476 | 26286 | 2025-10-30 | damaged | 53.99 | |||||
| 45 | 1477 | 26419 | 2025-10-30 | wrong_item | 72.99 | |||||
| 46 | ||||||||||
| 47 |
Loading the editor…
Reference solution
Mote checks your result
Press Check. Each right cell becomes a firefly in your lantern.
What Nicole gets, and why
The lesson
Nicole’s total is wrong, and nothing on the sheet says so. No error, no warning, just a smaller number. The cause is the most common data problem in spreadsheets: numbers stored as text.
Why an export does this
A CSV file has no types. Every value is just characters, and the program that reads it has to
guess what each one is. Columns that were set to Text, values with a stray space, an apostrophe or
a currency sign, systems that quote the amounts someone edited by hand: all of these can leave
"141.98" in a cell as text. This sheet is built the same way: the returns portal writes the
refunds approved by hand (reason changed_mind) as text, and the rest as numbers.
The tell: alignment
Excel and Google Sheets put numbers on the right edge of a cell and text on the left, unless
someone overrode the alignment. Scan column E: E3 (28.99) sits on the right, E2 (28.99) on the
left. Same amount, different type. The 0.00 format doesn’t help either: it only applies to numbers,
so E14 shows 169.00 because those are the characters in the text, not because it was
formatted. Desktop Excel also marks such cells with a small green triangle (“Number stored as
text”).
You can ask directly, too: =ISTEXT(E2) is TRUE, =ISNUMBER(E2) is FALSE.
What SUM does with text
| Formula | What happens to "28.99" in E2 |
|---|---|
=SUM(E2:E45) |
skipped: ranges in SUM, AVERAGE, MIN, MAX keep only numbers |
=E2+E3 |
converted: arithmetic operators turn numeric text into a number |
=COUNT(E2:E45) |
not counted: COUNT counts numbers only |
=COUNTA(E2:E45) |
counted: COUNTA counts every cell that isn’t empty |
So =SUM(E2:E45) returns 4,002.58, while the 44 refunds really add up to 5,632.96. The ten text
amounts, 1,630.38 in all, simply vanish. That is Nicole’s “about $1,600”.
The fastest check on any column you are about to total:
I3 =COUNTA(E2:E45)-COUNT(E2:E45)
It returns 10 here. On a clean column it returns 0.
Converting with VALUE
VALUE(text) reads numeric text and returns the number:
F2 =VALUE(E2)
F2 shows 28.99, right-aligned, and a real number. On a cell that already holds a number, VALUE
returns it unchanged, so one formula works for the whole column. Fill it down, then
=SUM(F2:F45) gives 5,632.96.
Two shortcuts do the same job: =E2*1 and =--E2 (two minus signs). Both force arithmetic, and
arithmetic converts. VALUE says what you mean, which helps the next person reading the sheet.
VALUE returns #VALUE! when the text isn’t a number at all, like "n/a" or "$1,200 approx".
That is useful: it shows you the cells that need a person, not a formula.
Common mistakes
- Changing the format to Number. The cell still holds text;
SUMstill skips it. Convert the value (VALUE, or in Excel, Data > Text to Columns > Finish on the column). - Trusting a total without a count. Compare
COUNTwith the number of rows. 34 numbers in a 44-row column means ten are missing from every sum. - Fixing it only in the total. A clever one-cell formula can convert and add at once, but the next pivot or chart on column E is still wrong. Convert into a clean column and build on that.
- Regional settings.
VALUE("1.234,50")works in Europe and fails in the US. Exports from another country’s system need aSUBSTITUTEfirst.
Lantern lit!
Practised: numbers as textvaluesumcountcountadata types
- Solved
- No hints
- First run
