Ravindra BagaleCourses & study guides मराठी Track your progress

5. Data Cleaning A–Z

5.6 Numbers Stored as Text

Numbers stored as text with example — in 30 seconds

What: A number stored as text looks like a number but Excel treats it as words. SUM skips it.

Why: Your total shows ₹0 or a too-small number, and nobody notices until the meeting.

Tiny example: Three amounts 64, 270 and 110 are text. =SUM(C2:C4) gives 0. After conversion it gives 444.

First look at the data (before → after):

Numbers stored as text with example: before and after tables, fictional FreshGo Maharashtra data

Expected result — After conversion

D: Amount (number) =ISNUMBER(D2)
64 TRUE
270 TRUE
110 TRUE
=SUM(D2:D4) 444

About this data: Teaching sample for a fictional shop “BrightLedger Finance”. Figures and names (e.g. Sana Sheikh) are made up for this lesson on numbers stored as text.

Before table and formula as text

Before — Amounts imported as text (left-aligned)

C: Amount =ISNUMBER(C2)
"64" FALSE
"270" FALSE
"110" FALSE
=SUM(C2:C4) 0

About this data: Demo table only — not real customer or company data. Built to practise numbers stored as text.

Formula / click path

D2: =VALUE(TRIM(C2))   → copy down
or: select C2:C4 › warning icon › Convert to Number

Do it step by step:

  1. Type =ISNUMBER(C2) next to the data. FALSE means text.
  2. Quick fix: select the cells, click the yellow warning icon, choose Convert to Number.
  3. Formula fix: type =VALUE(TRIM(C2)) in D2 and copy down.
  4. Copy column D and Paste Special › Values over column C.
  5. Check: the SUM now shows 444.

Signs: numbers are left-aligned, a green triangle appears, SUM returns 0 or a smaller total, =ISNUMBER(C2) is FALSE.

Before

Order ID Amount (text)
BLK-3201 ₹1,299
BLK-3202 Rs. 450
BLK-3203 1,25,000
BLK-3204 '64
BLK-3205 90 INR

About this data: Made-up rows so you can copy the pattern for numbers stored as text. Currencies may use ₹, £, € or $.

=SUM() → 0

After

Order ID Amount
BLK-3201 1299
BLK-3202 450
BLK-3203 125000
BLK-3204 64
BLK-3205 90

About this data: Fictional worksheet used in class. Safe to edit; nothing here is live production data.

=SUM() → 1,26,903

Steps in Excel – four ways

  1. Error button: select the cells with green triangles › click ⚠ › Convert to Number (works for plain numbers like '64).
  2. Formula: remove symbols, then VALUE:

    =VALUE(TRIM(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(B2,"₹",""),"Rs.",""),"INR",""),",","")))

  3. Text to Columns: select the column › Data › Data Tools › Text to Columns › Delimited › Next › untick all delimiters › Next › General › Finish. Excel re-reads each cell as a number.

  4. Paste Special Multiply: type 1 in an empty cell › copy it › select the text numbers › Home › Paste › Paste Special… › Multiply › OK.
  5. Apply the rupee number format (1.5). Verify with =SUMPRODUCT(--ISNUMBER(C2:C6)) = 5.

Ravindra Bagale's Tip

Many students look at the total of the amount column and say "it's correct", but if half the cells are text, SUM skips them – the total comes out lower and nobody notices. Compare =COUNT() and =COUNTA(): if they differ, you have text-numbers. Clean numbers typed with ₹ and commas first, then apply the format.

Practice task

Clean ten amounts written as "₹1,299", "Rs 450/-", "1,25,000.00", "450 INR". Get a correct SUM and show it in Indian rupee format.

Loading practice tasks...

  1. Is it a number? (Easy): Is C3 a real number? (TRUE or FALSE)
  2. Is it text? (Easy): Is D2 text? (TRUE or FALSE)
  3. Turn text into a number (Easy): Change C3 into a number.
  4. Quantity as a number (Easy): Change D6 into a number.
  5. Remove the comma (Medium): Change C2 into a number by removing the comma first.
  6. Remove the € sign (Medium): Change C4 into a number.
  7. Spaces and comma (Medium): Change C5 into a number.
  8. Count text numbers (Medium): How many cells in C2:C7 are text?
  9. Total quantity (Hard): Total of D2:D7 as numbers.
  10. Amount still due (Hard): How much is still due on INV-04 (C5 minus E5)?
  11. Total of all amounts (Hard): Total of C2:C7 after removing commas, € and spaces.

Quick revision cards

Three standalone cards. Each one explains the idea with its own example. Scan the QR to open this lesson.

Revision card 1: What is Numbers Stored As Text?
Card 1: What is Numbers Stored As Text? · Download PNG
Revision card 2: Tiny example — Numbers Stored As Text
Card 2: Tiny example — Numbers Stored As Text · Download PNG
Revision card 3: Checklist — Numbers Stored As Text
Card 3: Checklist — Numbers Stored As Text · Download PNG