SUM of a number stored as text is 0. Why your Excel formula returns 0 already shows that for the text $1,234.50. This page is how to turn the text into a number.
US text and European text are both 1234.5
VALUE reads the workbook’s own separators. In a US workbook, $1,234.50 is 1234.5. The same function does not understand a comma used as the decimal mark.
=VALUE(A2)| A | B | |
|---|---|---|
| 1 | Text | Number |
| 2 | $1,234.50 | 1234.5 |
| 3 | 1.234,50 | 1234.5 |
| 4 | SUM of the text | 0 |
| 5 | SUM of the numbers | 2469 |
=VALUE("$1,234.50")
=NUMBERVALUE("1.234,50",",",".")
=SUM(A2:A3)
=1234.5+1234.5
NUMBERVALUE of 1.234,50, with a comma as the decimal mark and a period as the group mark, is also 1234.5. The NUMBERVALUE page says VALUE of that European text in a US workbook is #VALUE!. Use NUMBERVALUE when the file was written with the other separators. Use VALUE when the text already matches the workbook.
SUM of the two text cells is 0. 1,234.5 + 1,234.5 = 2,469. Add the converted column, not the text column.
A trailing percent sign is part of NUMBERVALUE’s job: it divides by 100. That is a different input from these two amounts.
Digits only is the wrong tool for money
xl.digits.only keeps every digit and drops everything else. The result is text, which is why a leading zero can survive. The phone on that page is 512-555-0148, and the result is the text 5125550148.
=xl.digits.only(A2)| A | B | |
|---|---|---|
| 1 | Raw | Digits |
| 2 | 512-555-0148 | 5125550148 |
=xl.digits.only("512-555-0148")
=VALUE("5125550148")
=xl.digits.only("$1,234.50")
VALUE of 5125550148 is the number 5125550148. The name needs Microsoft 365, Excel 2024, or Excel for the web. Excel 2021 returns #NAME?.
Do not run it on the currency text. $1,234.50 has digits 1, 2, 3, 4, 5, and 0. The dollar sign, the comma, and the decimal point are dropped, so the text result is 123450. That is not 1234.5. VALUE and NUMBERVALUE are the money tools. Digits only is the phone, the id, and any other string where the decimal point is not part of the number.