Sub topic 3
How Sheets Decides What a Value Is
Prerequisites and the working model
Assume you can open a Google Sheet and use basic mouse and keyboard shortcuts. This chapter focuses on how Google Sheets interprets what you type. Interpretation matters because sorting, filtering, formulas, and formatting behave differently for text, numbers, dates, and logical values.
A cell stores a value and may display that value in a formatted way. For example, Sheets can store the number 1234.5 and display it as $1,234.50. The display does not change the stored number.
When you enter a value, Sheets examines its characters and the spreadsheet's locale settings. It then assigns a data type.
| What you enter | Likely type | Example use |
|---|---|---|
| `North region` | Text | A label or category |
| `42` | Number | A quantity or score |
| `2026-11-27` | Date | A calendar date |
| `TRUE` | Logical value | A yes/no condition |
| `=SUM(B2:B10)` | Formula | A calculated result |
Automatic detection
Text usually remains text. Numbers that use recognizable digits become numbers. A value beginning with = becomes a formula, and Sheets calculates its result.
Dates and times require more care. Sheets stores a date as a number representing a point on a calendar. A time is stored as a fraction of a day. This lets formulas compare dates and calculate durations, but it also means that a date can be mistaken for an ordinary number if it is entered in an unexpected format.
For example, 3/4/2026 may mean March 4 or April 3, depending on the spreadsheet locale. A value such as 00127 may lose its leading zeros because Sheets treats it as the number 127. Product codes, postal codes, and account IDs are usually text even when they contain only digits.
To force an entry to remain text, begin it with an apostrophe:
'00127Sheets displays 00127 but does not display the apostrophe. This is useful for identifiers, not for quantities you need to calculate.
Locale and time zone effects
A spreadsheet's locale controls conventions such as decimal separators, thousands separators, and date order. In some locales, 1,5 means one and a half, while in others it may be read as text. Review the spreadsheet's locale before importing data or sharing a template internationally.
The time zone affects date-time functions and timestamps. A value created with NOW() can display a different time from the one expected if the spreadsheet and the user operate in different time zones.
Checking and correcting a type
Select a cell and inspect the formula bar. A formula begins with =. You can also test types with functions such as ISNUMBER, ISTEXT, and ISDATE-style checks through formatting or date behavior. ISNUMBER returns TRUE only when Sheets stores the value as a number.
Correct the source value instead of relying only on visual formatting. Remove an apostrophe when an identifier should become numeric, or add one when leading zeros must be preserved. For imported data, clean spaces and separators before applying calculations.
Exercise
You enter 00127 as a product code, but Sheets displays 127. How should you preserve the code?
Show answer
Enter it as text, for example '00127, or format the column as plain text before entering the codes.