Skip to main content

How to Change a Cell's Number Format in Excel for the Web

· 4 min read
Jagdish Kumawat
Founder @ Dewiride

A cell's number format decides how its value looks, not what it is. The same value can show as 3.50, 12:00 or a date, depending on the format. In Excel for the web, the Number Format list on the Home tab changes it.

The examples are from the old overtime timesheet from Part 1 of the Overtime Timesheet series, where the wrong format caused two of its problems.

Prerequisites​

  • A workbook open for editing in Excel for the web.

Step 1: Select the Cells​

Select the cells to change. A format applies to every selected cell. Here it's J2:J15, the Hours column, which showed hours as clock times.

Step 2: Open the Number Format List​

On the Home tab, in the Number group, the box shows the current format: Custom here. Open the list next to it:

The Number Format list open on the Home tab with Custom in the box and the options General, Number (outlined in red), Currency, Accounting, Short Date, Long Date, Time, Comma, Percentage, Fraction, Scientific, Text and More Number Formats

OptionShows the value as
GeneralExcel's default: numbers as typed, dates as their serial number
NumberA number with two decimal places, such as 3.50
Short Date / Long DateA date only, in your regional format
TimeA time only
Percentage×100 with a % sign
TextThe value as text; formulas typed afterwards aren't calculated
More Number FormatsThe All formatting options pane, with every category and custom codes

Step 3: Pick the Format​

Select Number. The values don't change, only how they look: 12:00 became 3.50:

The Hours column after choosing Number, showing 3.50, 4.00, 4.00, 5.00 and the rest of the decimal hours

Two More Cases from the Timesheet​

Common Mistakes​

MistakeWhat happensDo this instead
Rewriting a formula because its result looks wrongThe result was right; the format wasn'tCheck the Number Format box first
Formatting one cell of a columnThe rest still show the old formatSelect the whole range
Using Text for numbersThey stop adding upUse Number or General

Troubleshooting​

SymptomLikely causeFix
Hours show as 12:00 or 00:00A time format on a count of hoursNumber
A total of times is 24 or 48 hours shorthh:mm wraps each dayCustom [h]:mm: How to Show Total Hours Over 24 in Excel
A date shows as a five-digit numberGeneral formatShort Date

FAQ​

Does changing the format change the value?​

No. Formulas that use the cell get the same value whatever its format.

Why did Excel pick a format I didn't choose?​

When a formula uses a date or time, Excel often gives the result the same format. Change it if it doesn't suit the result.

Conclusion​

Select the cells, open Home → Number Format, and pick how the values should look. The values themselves never change.

Additional Resources​