How to Change the Number Format in Google Sheets

Table of Contents

Table of Contents

Changing the number format in Google Sheets is a very handy skill. For example, you are making a sheet where you need to insert phone numbers, but the sheet is removing the zero. It happens if the number you are entering is in โ€˜number format.โ€™ If you change the format to โ€˜textโ€™ format, then Google Sheets will keep the leading zero, and you will get the full mobile number.

That is one use case. There are thousands of use cases for using the number format options in Google Sheets.

We have talked about the basic 4 methods on how to change the number format in Google Sheets in this article. Letโ€™s explore them.

Key Takeaways

To customize numbers and make them 2-digit by adding leading zeros:

โžค Select all the numbers in the columns
โžค Go to Format > Number > Custom number format
โžค Enter the rule: 00 and click Apply.
โžค This will display values like 5 as 05`.

Number formats changed for IDs, hours and scores in Google Sheets

There are many ways to format numbers in Google Sheets. Here, we will discuss 4 major methods with examples.


Where to Change the Number Format in Google Sheets

Select the cells, then go to Format > Number and pick a format: Automatic, Plain text, Number, Percent, Scientific, Accounting, Financial, Currency, Currency rounded, Date, Time, Date time or Duration. Custom number format sits at the bottom of the same list. The toolbar has shortcuts for currency ($), percent (%) and fewer or more decimal places, and the 123 button opens the full list.

A number format changes how a value looks, not the value itself, so formulas keep using the full number. Plain text is the exception, covered in method 1 below.


1

Conversion Between Number and Text in Google Sheets

In the following dataset, we have a list of students in Column A and their cities in Column B. Their  Exam Scores are in Column C, Time Stamps are in Column D, and the IDs are in Column E.

Weโ€™re going to do these things in the dataset:

  • The ID column will be converted to plain text.
  • Then again, change it back to the number format from plain text.

Student dataset with names, cities, scores, time stamps and IDs

Convert Number to Text (Preserve Leading Zeros)

โžค Select the entire ID column.

ID column selected in Google Sheets

โžค Go to the Format menu at the top.
โžค Hover over Number, then click Plain text.

Format menu with Number and Plain text selected

โžค Now go back to the column and manually retype IDs like 003, 017, or 071 if needed. Sheets wonโ€™t auto-correct them anymore.

And after applying plain text format, we can insert anything inside that column with a leading zero. It wonโ€™t auto-format. Here  is the screenshot:

IDs with leading zeros kept after Plain text format

Convert Text to Number

Now weโ€™ll convert the IDs stored as text back to the number format. Letโ€™s follow the steps below:

โžค Select the ID column.

ID column selected before converting text to number

โžค Go to Format > Number > Automatic.

Format menu with Number and Automatic selected

โžค If the values had been treated as text before, Sheets would now recognize them as proper numbers. So, there would be no leading zero now, and you can do calculations as you wish.

That was the process of converting a number to text and then text back to a number. If a value still sits on the left of the cell or a formula ignores it, it is still text; convert it with a formula instead. See how to convert text to number in Google Sheets.


2

Conversion Between Decimal and Time

In this dataset, we have a list of students with their names in Column A and their cities in Column B. Column C shows how many hours each student spent on an assignment in decimal values. Column D will display those same values in time format.

Dataset with decimal hours in column C and logged time in column E

And the last Column E contains time-formatted values, and we will convert them back to decimals.

Convert Decimal to Time

Letโ€™s turn the values in the Hours (Decimal) column into readable time.

Steps:

โžค Select the Hours (Decimal) column (Column C).

Hours (Decimal) column C selected

โžค Go to Format > Number > Duration.

Format menu with Number and Duration selected

โžค Sheets will convert 1.25 into 30:00:00. But that’s not what we want to do.

Decimal hours shown as 30:00:00 after the Duration format

โžค In Column D (Hours in Time), enter this formula in the first row:

=C2/24

This tells Sheets that your decimal represents part of a day (since time in Sheets is stored as a fraction of 24 hours).

Formula dividing C2 by 24 in cell D2

โžค Drag the formula down to fill the rest of Column D.

Formula filled down column D

โžค Now format Column D by selecting- Format > Number > Time

Format menu with Number and Time selected for column D

And here is your real time:

Decimal hours shown as clock time in column D

Convert Time to Decimal

Now letโ€™s take the time-formatted values in Logged Time (Column E) and convert them into decimals.

Steps:

โžค In a new column (or reuse Column C if you want), type the formula:

=E2*24

This multiplies the time by 24 to get the total in hours.

Formula multiplying E2 by 24 to get hours

โžค But the output is not what we intended. Itโ€™s because itโ€™s still in the duration form.

Result of multiplying time by 24 still shown in duration form

โžค Format the result using: Format > Number > Number or 0.00

Format menu with Number and Number selected for the result

Now we have a decimal number. Drag it down the column, and you are done.

Logged time converted to decimal hours


3

Conversion Between Number and Duration

First, letโ€™s describe the new dataset. This sheet tracks student work hours. Youโ€™ll see names in Column A, cities in Column B, and decimal hour values in Column C. These decimals show how long each student worked.

For example, 0.25 means 15 minutes, while 1.5 means an hour and a half.

Work hours dataset with decimal hours in column C

Weโ€™ll use Column D to display those hours as proper durationsโ€”like 1:30:00. Column E will then convert them back to decimals.

Convert Decimal to Duration

In the Work Hours (Decimal) column (Column C), we have regular numbers like 0.25, 1.5, or 5.75. These represent hours. But itโ€™s tough to interpret them. For example, 0.25 means 15 minutes.

Letโ€™s convert those into a clean duration format, so they look like 0:15:00, 1:30:00, etc.

Steps:

โžค In Column D (Duration Format), enter this formula in cell D2:

=C2/24

Formula dividing C2 by 24 in cell D2 for duration

โžค Press Enter. Then drag the formula down the column.
โžค Now format Column D by going to Format > Number > Duration

Format menu with Number and Duration selected for column D

Now you will get numbers in duration format in Column D

Decimal hours shown as durations like 1:30:00 in column D

Convert Duration Back to Decimal

Now letโ€™s flip it. Youโ€™ve got time values in Column D like 1:30:00 and 0:15:00. We want to turn them back into regular decimal numbers like 1.5 and 0.25.

But remember, donโ€™t just change the format to “Number.” That wonโ€™t work. You need a formula.

Steps:

โžค In Column E (Back to Decimal), enter this formula in cell E2:

=D2*24

Formula multiplying D2 by 24 in cell E2

โžค Press Enter. Then drag the formula down the column.
โžค Format Column E by going to Format > Number > Number.
โžค Or use custom number format: 0.00

Format menu with Number and Number selected for column E

Here is the final output where you will get the original decimal in Column E:

Durations converted back to decimal hours in column E


4

Changing to Custom Number Format

The following dataset lists students, their cities, IDs, scores, and time spent. The data is correct, but not easy to grasp the concept of the values shown.

Dataset with IDs, scores and time spent before custom formats

To make it clearer:

  • ID numbers like 3 or 9 should look like 003 or 009.
  • Scores might show one decimal place, like 85.0
  • The time spent columnโ€™s data is well organized.

So, we have to change the data in two columns (C&D). We will use custom number formats to do this.

Example 1: Add Leading Zeros to ID Column

The ID column contains values like 3, 9, or 45. Theyโ€™re all valid, but visually inconsistent. We want all IDs to appear as three-digit numbersโ€”for example, 003, 009, 045.

This doesn’t change the value. It only changes how it looks.

Steps:

โžค Select the ID column (Column C).
โžค Go to Format > Number > Custom number format.

Format menu with Number and Custom number format selected

โžค In the field, type: 000
โžค Click Apply.

Custom number format box with 000 entered

Here is the final output:

IDs shown with three digits like 003 and 009

Example 2: Force One Decimal Place in Score Column

The Score column contains whole numbersโ€”6, 14, 9. But in some contexts, especially with exams, you want to display all scores with one decimal place, even if the decimal is .0.

Steps:

โžค Select the Score column (Column D).

Score column D selected

โžค Go to Format > Number > Custom number format

Format menu path to Custom number format for scores

โžค Type this format: 0.0
โžค Click Apply.

Custom number format box with 0.0 entered

Here is the final output:

Scores shown with one decimal place like 6.0

Example 3: Show Large Values in Millions

For this example, we will use a different datasheet. Here we will show you how you can convert a large number into a smaller one.

Instagram followers dataset with large numbers in column C

In this dataset, we have studentsโ€™ names in Column A, their cities in Column B, and the number of followers they have on Instagram in Column C.

Our target is to make those numbers more readable by using the short format for numbers. To show thousands as K and millions as M in one format, see how to format numbers as millions in Google Sheets.

Steps:

โžค Copy and paste all numbers from Column C to Column D.

Follower numbers copied into column D

โžค Go to Format > Number > Custom number format
โžค Type this format: #,##0.00,,”M”
โžค Click Apply.

Custom number format box with the millions format entered

Now, let us explain how this format works.

โžค #,##0.00 makes sure your number will contain commas as thousand separators, where 0.00 confirms the number will have two decimal places.
โžค And the two commas after 0.00 make sure Google Sheets will divide the selected numbers by 1,000,000 (each comma is a division by 1,000).
โžคAt last, “M”, which refers to millions, ensures the letter M will appear just after the number.

Now, see the final output below in Column D:

Instagram follower counts shown in millions like 2.35M in column D


Practice Resources

Get our practice workbook or necessary files that we have worked with to prepare this article.

Change the Number Format in Google Sheets [Make a Copy]


Frequently Asked Questions

How do I fix a number format in Google Sheets?

Itโ€™s a formatting issue. You can select the cells and correct the formatting from the Format>Number menu. Or, you can use Format>Clear Formatting to clear the existing formatting.

How do I reset numbers in Google Sheets?

You should use clear formatting options to clear all types of formatting or reset numbers in Google Sheets. Use Format > Clear Formatting to clear the existing formatting.

How do I format automatic numbering in Google Sheets?

You can use the autofill feature. Here are the steps:

โžค First, write 1 in the first cell.
โžค In the cell below, type 2.
โžค Select both cells.
โžค Now drag the small blue square from the bottom-right corner downward.

Google Sheets will automatically fill the column with sequential numbers.


Concluding Words

In this article, you learned how to change the number format in Google Sheets. We have shown you 4 different methods and examples to elaborate on those methods. You get maximum liberty using the custom formatting method. But only use that if the default functions are not enough. For how each part of a format code works, see how to use custom number formats in Google Sheets. The main goal is to streamline the working process.

And remember, a number format changes how a value looks, not the value itself, so your calculations still use the full number. Plain text is the exception: numbers typed into Plain text cells are stored as text, and SUM skips them.

Facebook
X
LinkedIn
WhatsApp
Picture of Ashfaqur Rumon

Ashfaqur Rumon

Ashfaqur Rumon is an SEO expert and digital marketing strategist with over 5 years of experience in content planning, social media, and online campaigns. As Head of Digital Marketing at WebTech, he drives growth through data-driven SEO and content strategies. A graduate of BUET in Civil Engineering, Rumon blends technical expertise with creative problem-solving to deliver impactful digital solutions.
We will be happy to hear your thoughts

      Leave a reply


      Excel Insider
      Logo