# VALUE formula generator

> Describe what you need and get a VALUE formula for Excel and Google Sheets, run on real data before you copy it. Plus 8 tested VALUE examples.

Source: https://spreadsheetpractice.com/tools/formula-generator/value · Updated October 29, 2026 · Formulas and results on this page were run by the Spreadsheet Practice formula engine on November 20, 2026

VALUE converts text that looks like a number into a real number Excel can add, average and compare.

Describe the task at [VALUE formula generator](https://spreadsheetpractice.com/tools/formula-generator/value) and get a VALUE formula for Excel and Google Sheets, tested on real data.

## Tested VALUE examples

### Convert numbers stored as text to numbers

`=VALUE(A2)`

Excel. Result on the sample sheet: 5 rows (B2:B6). [See it and try it](https://spreadsheetpractice.com/formulas/convert-text-to-numbers)

### Convert percentage text to a number

`=VALUE(A2)`

Excel. Result on the sample sheet: 6 rows (B2:B7). [See it and try it](https://spreadsheetpractice.com/formulas/convert-percentage-text-to-number)

### Convert text to a date

`=DATEVALUE(A2)`

Excel. Result on the sample sheet: 6 rows (B2:B7). [See it and try it](https://spreadsheetpractice.com/formulas/convert-text-to-a-date)

### Convert text to time

`=TIMEVALUE(A2)`

Excel. Result on the sample sheet: 5 rows (B2:B6). [See it and try it](https://spreadsheetpractice.com/formulas/convert-text-to-time)

### Why does VALUE return #VALUE! for numbers with units

`=VALUE(SUBSTITUTE(A2," kg",""))`

Excel. Result on the sample sheet: 5 rows (B2:B6). [See it and try it](https://spreadsheetpractice.com/formulas/value-function-error-with-units)

### Why does IF say a number stored as text is greater than 100

`=IF(--B2>=$F$1,"Bulk","Standard")`

Excel. Result on the sample sheet: 6 rows (C2:C7). [See it and try it](https://spreadsheetpractice.com/formulas/if-greater-than-with-numbers-stored-as-text)

### Convert numbers with comma decimals to real numbers

`=VALUE(SUBSTITUTE(SUBSTITUTE(A2,".",""),",","."))`

Excel. Result on the sample sheet: 5 rows (B2:B6). [See it and try it](https://spreadsheetpractice.com/formulas/convert-comma-decimal-numbers)

### Why is my SUM formula returning 0 or too small a total

`=SUMPRODUCT(--B2:B7)`

Excel. Result on the sample sheet: $6,199.40. [See it and try it](https://spreadsheetpractice.com/formulas/sum-formula-returns-zero)

## Questions

### What does the VALUE formula generator do?

You describe the task in plain English, and it writes the formula, using VALUE where that's the right tool, for your table or a sample one. The formula is run in our engine in Excel and Google Sheets mode before you see it, so you get its result, not just a guess.

### What does VALUE do?

VALUE converts text that looks like a number into a real number Excel can add, average and compare.

### Can I learn to write VALUE formulas myself?

Yes. Each example below opens a page where you try the formula in a live grid and it's checked as you go, and the VALUE function page has a practice exercise.

---

Spreadsheet Practice (https://spreadsheetpractice.com) teaches spreadsheet formulas by practice: every exercise is graded in a live grid and re-checked on changed data.
