ExcelReady
CourseMock testsFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before day one. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Mock tests
  • Function guides
  • Blog

Test prep

  • Excel level test
  • Excel test practice
  • Free screening quiz
  • Certificate

Company

  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Comparisons
  3. TEXT vs VALUE in Excel: Numbers to Text and Back

TEXT vs VALUE in Excel: Numbers to Text and Back

By ExcelReady Team·Updated November 1, 2026·7 min read

The short answer

TEXT and VALUE do opposite jobs. TEXT turns a number or date into text with a format you choose, such as =TEXT(B2,"#,##0.00"), so you can join it to words. VALUE turns text that looks like a number, such as "1250", back into a real number you can add up. Use TEXT for display and VALUE for maths.

Key takeaways

  • TEXT: number to text, =TEXT(value, format_text). VALUE: text to number, =VALUE(text).
  • Use TEXT when joining numbers or dates to words, so they keep their format.
  • Use VALUE when imported or extracted numbers are stored as text and won't add up.
  • A TEXT result is text: SUM ignores it and it sorts like words, so keep the original number for calculations.
On this page+
  1. TEXT vs VALUE at a glance
  2. How the syntax differs
  3. The same data, both ways
  4. When to use TEXT
  5. When to use VALUE
  6. Common mistakes with TEXT and VALUE
  7. Our recommendation
  8. Practise it

The short answer to TEXT vs VALUE in Excel: they are opposites. TEXT turns a number into text with the format you want, and VALUE turns text back into a number you can calculate with. You use TEXT to make numbers and dates look right inside sentences and labels, and VALUE to fix numbers that arrived as text from an import or a text formula. This guide compares both on the same data and shows the mistakes that cause wrong totals.

TEXT vs VALUE at a glance#

Think of TEXT as "make it look right" and VALUE as "make it count".

FeatureTEXTVALUE
DirectionNumber or date → textText → number
Syntax=TEXT(value, format_text)=VALUE(text)
Typical useJoin numbers and dates to wordsFix numbers stored as text
Result alignment (default)Left, like textRight, like a number
Does SUM include the result?NoYes
Needs a format code?Yes, in quotes, like "0.00"No
Common errorWrong format code shows odd text#VALUE! when the text isn't a number
Shortcut alternativeFormat Cells (display only)=A2*1 or =--A2
Excel versionsAll versionsAll versions

How the syntax differs#

TEXT takes two arguments, VALUE only one.

Excel formula
=TEXT(value, format_text)
=VALUE(text)
  • value (TEXT) is the number or date to convert, usually a cell like C2.
  • format_text (TEXT) is a format code in double quotes, such as "#,##0.00" for thousands separators and two decimals, or "dd mmm yyyy" for a date.
  • text (VALUE) is the text to convert, such as "1250" or a cell holding number-like text.

The TEXT function guide and the VALUE function guide list the arguments. For a full list of format codes, see the guide to TEXT function formats.

Before you pick one, check what a cell actually holds. =ISNUMBER(A2) returns TRUE for a real number and =ISTEXT(A2) returns TRUE for text. Alignment is a quick visual clue too: by default, numbers sit on the right of the cell and text on the left, unless someone changed the alignment by hand.

The same data, both ways#

Here is a small product list. The weights came from a supplier file as text:

ABCD
1ItemWeightPriceShip date
2Flour125 kg125015/03/2026
3Sugar80 kg940.518/03/2026
4Rice200 kg210020/03/2026
5Oats45 kg515.2524/03/2026

TEXT: put a price inside a sentence#

Joining a number to text with & loses its format:

Excel formula
="Price: "&C3

This shows Price: 940.5, with no currency sign and one decimal. Wrap the number in TEXT:

Excel formula
="Price: "&TEXT(C3,"$#,##0.00")

Now it shows Price: $940.50. The format code adds the dollar sign, the thousands separator and two decimal places.

TEXT: put a date inside a sentence#

Dates are stored as numbers, so joining one directly shows a number like 46096. TEXT fixes it:

Excel formula
="Ships on "&TEXT(D2,"dddd d mmm")

The result is Ships on Sunday 15 Mar. The guide to combining a date and text has more date patterns.

VALUE: turn text weights into numbers#

The weights can't be added, because "125 kg" is text. Take the digits with LEFT, then convert them with VALUE:

Excel formula
=VALUE(LEFT(B2,LEN(B2)-3))

LEN(B2) is 6 characters, so LEFT keeps the first 3: "125". VALUE turns that text into the number 125. Fill it down and =SUM(E2:E5) gives 450 kg. Without VALUE, LEFT returns text and SUM would give 0. That's the exercise on this page.

VALUE: fix imported numbers#

If a column of prices arrived as text, like "1250" with a small green triangle in the corner, =VALUE(C2) returns the number 1250. VALUE also reads formats such as "12%" (0.12) and "1,250" (1250). Some formats depend on your regional settings. The guide to numbers stored as text covers faster fixes for whole columns.

Both together: a sortable month key#

Sometimes you need both functions in one formula. To group dates by month with a number you can sort and compare, turn the date into text in year-month order, then back into a number:

Excel formula
=VALUE(TEXT(D2,"yyyymm"))

TEXT returns the text "202603", and VALUE turns it into the number 202603. Every date in March 2026 gets the same key, and keys sort in time order: 202512 comes before 202601. This is handy as a helper column for SUMIF totals by month.

When to use TEXT#

Use TEXT when the result is for people to read, not for further maths:

  • Sentences and labels: "Total sales: $12,400.00" or "Report date: 01 Nov 2026".
  • Leading zeros: =TEXT(A2,"00000") turns 42 into "00042" for product codes or ZIP codes.
  • Pulling part of a date: =TEXT(D2,"mmmm") returns the month name, "March", for a chart label.
  • Building IDs: ="INV-"&TEXT(A2,"0000") turns 7 into "INV-0007".

If you only want a cell to look different, don't use TEXT. Use Format Cells (Ctrl+1; Mac: ⌘1) instead. The cell stays a number, so it still adds up and sorts correctly.

When to use VALUE#

Use VALUE when number-like text needs to behave like a number:

  • Imported data: numbers from a CSV, web page or another system that are stored as text.
  • Extracted digits: numbers you pulled out of text with LEFT, RIGHT, MID or TEXTBEFORE, which always return text.
  • Lookups that fail: if one table has 1001 as a number and the other as text "1001", XLOOKUP and VLOOKUP don't see them as equal. Converting with VALUE makes them match.
  • Decimal commas: VALUE follows your computer's regional settings. If a file uses a different style, such as "1.250,50" for one thousand two hundred and fifty and a half, use NUMBERVALUE, which lets you name the separators: =NUMBERVALUE(A2,",",".") returns 1250.5. NUMBERVALUE is in Excel 2013 and later.
  • Turning date text into dates: VALUE can read text like "2026-03-15" and return the date's serial number. For other date layouts, see how to convert text to a date.

Common mistakes with TEXT and VALUE#

These are the slips that most often cause wrong results:

  1. Calculating with TEXT results. =SUM(F2:F5) over a column of TEXT results returns 0, because SUM ignores text. Keep the numbers in their own column and use TEXT only for display.
  2. Sorting TEXT results. Text sorts character by character, so "1,250.00" comes before "940.50". Sort by the original numbers.
  3. Using VALUE on text with extra characters. =VALUE("125 kg") returns #VALUE!. Strip the letters first with LEFT or SUBSTITUTE. The guide to the #VALUE! error covers other causes.
  4. Hidden spaces. " 125" with a leading non-breaking space from a web page can make VALUE fail. Clean it with =VALUE(TRIM(SUBSTITUTE(A2,CHAR(160)," "))).
  5. Format codes in another language. Date codes like "yyyy" are English codes. In some language versions of Excel, the letters differ, so a shared file may show odd results.
  6. Forgetting the quotes. =TEXT(C2,0.00) doesn't work as expected. The format code must be text: "0.00".

Our recommendation#

Keep numbers as numbers for as long as possible. Use VALUE as soon as number-like text enters your sheet, so totals, lookups and sorting work. Use TEXT only at the last step, where a number or date goes into a sentence, label or code that people read. If you only want a different look, use Format Cells, not TEXT.

In short: VALUE to make it count, TEXT to make it readable.

Practise it#

Try the exercise on this page: pull the digits out of a text weight and turn them into a real number with VALUE. Then practise TEXT and VALUE in a live spreadsheet, where you format numbers for display and convert text back into numbers that add up.

Try it yourself

This is a live spreadsheet. Type the formula in the green cell and press Enter.

The weights in column B are text, like 125 kg. In E2, turn the weight in B2 into a real number: take the characters before " kg" with LEFT and LEN(B2)-3, then wrap the result in VALUE.

fx
ABCDEF
1
Item
Weight
Price
2
Flour
125 kg
1250
Weight (number)
3
Sugar
80 kg
940.5
4
Rice
200 kg
2100
5
Oats
45 kg
515.25
6
7
8

Tip: LEN(B2)-3 drops the space and "kg". LEFT(B2,LEN(B2)-3) gives "125" as text, and VALUE turns it into the number 125.

Practise this in a lesson

LessonTEXT and VALUE: numbers to text and backFormat dates and dollar amounts inside sentences with TEXT, and turn digits stored as text into real numbers with VALUE.Function guideTEXTFormat dates, prices and percentages inside labels with Excel's TEXT function. Format codes, common mistakes and a live practice exercise.Function guideVALUEFix numbers stored as text with Excel's VALUE function, so SUM and lookups work again. Examples, common mistakes and a live practice exercise.

Frequently asked questions

What is the difference between TEXT and VALUE in Excel?

+

TEXT converts a number or date into text with a format code, like =TEXT(B2,"0.00"). VALUE does the reverse: it converts text that looks like a number, like "125", into a real number.

Why does SUM ignore my TEXT results?

+

TEXT returns text, and SUM skips text in a range. Keep the original numbers for calculations and use TEXT only in cells that are meant for display or labels.

Why does VALUE return #VALUE!?

+

The text isn't something Excel can read as a number, such as "125 kg" or "N/A". Remove the extra characters first, for example with LEFT or SUBSTITUTE, then apply VALUE.

Is there a shortcut instead of VALUE?

+

Yes. Any maths operation converts number-like text, so =A2*1 or =--A2 gives the same result as =VALUE(A2). VALUE is easier to read, which helps when others use your file.

Should I use TEXT or Format Cells?

+

Use Format Cells (Ctrl+1) when you only want a number to look different, because the cell stays a number. Use TEXT when you need the formatted result inside a formula, such as a sentence.

Sources

  • TEXT function - Microsoft Support
  • VALUE function - Microsoft Support
  • Convert numbers stored as text to numbers - Microsoft Support

Written and checked by the ExcelReady Team. First published November 1, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. TEXT vs VALUE at a glance
  2. How the syntax differs
  3. The same data, both ways
  4. When to use TEXT
  5. When to use VALUE
  6. Common mistakes with TEXT and VALUE
  7. Our recommendation
  8. Practise it

Keep reading

Text· 6 min read

Combine a Date With Text in Excel (Without Numbers)

To combine a date and text in Excel, wrap the date in TEXT before you join it: ="Due "&TEXT(B2,"d mmm yyyy") returns Due 15 Mar 2024. Joining the date directly, as in ="Due "&B2, shows the serial number instead, like Due 45366, because Excel stores dates as numbers. The format code inside TEXT controls how the date looks.

Dates· 5 min read

How to Convert Text to Dates in Excel

To convert text to a date in Excel, use =DATEVALUE(A2) or =VALUE(A2) when the text matches your computer's date format, then format the result as a date. For a whole column, use Data > Text to Columns and choose Date. For formats Excel can't read, like 20240315, rebuild the date with DATE, LEFT, MID and RIGHT.

Errors & fixes· 6 min read

Numbers Stored as Text in Excel: Find and Fix

Numbers stored as text look like numbers but Excel treats them as words, so SUM skips them and lookups miss them. You can spot them by left alignment and a small green triangle. To fix them, select the cells, click the warning icon and choose Convert to Number, or use =VALUE(A2) in a helper column.

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback, right in your browser. Nothing to download.

Start learning for free