Convert Number Stored as Text to Number in Excel & Google Sheets

Convert text-formatted numbers from CSV exports into real numbers so SUM, SUMIFS, AVERAGEIFS, and exact lookups work without surprises.

Direct Answer: Convert Text Numbers With VALUE

When imported numbers are stored as text, SUMIFS and AVERAGEIFS can ignore them, and exact lookups like XLOOKUP or VLOOKUP can fail to match numeric IDs against text IDs. Clean spaces and convert with VALUE:

=VALUE(TRIM(A2))

Worked Example: Text Numbers vs. Numeric Output

Cell A2 (Text Input) =VALUE(TRIM(A2)) Why Conversion Matters
" 1250 " 1250 Strips spaces and converts to numeric 1250
"45.50" 45.5 Ready for numeric math and totals

Tips & Error Prevention

Editorial & Accuracy Note: Tested across Microsoft Excel and Google Sheets with worked sample inputs and outputs. Part of the Know Unlimited Excel & Google Sheets Hub.