Implementing Custom Number Formats in Google Sheets (Versus Excel’s Number Format System)

Implementing Custom Number Formats in Google Sheets (Versus Excel's Number Format System)
Image by Editor | Midjourney

Custom number formats help to enhance data presentation by displaying numbers in different formats. It allows you to control the numbers based on conditions. Both Google Sheets and Excel offer custom number formatting. In this article, we will show how to implement custom number formats in Google Sheets while comparing it with Excel’s number format system.

What Are Custom Number Formats?

Custom number formats are rules that help to display numbers in specific formats. It uses specific symbols and codes that tell the spreadsheet how to display different parts of a number.

Custom number formats follow this general structure:

 
Positive Format;Negative Format;Zero Format;Text Format

Each part determines the presentation of the number:

  • Positive Format: Handles positive numbers.
  • Negative Format: Formats negative numbers.
  • Zero Format: Customizes how 0 is displayed.
  • Text Format: Defines how non-numeric text is shown.

Common Format Codes:

Both platforms use these basic symbols:

  • 0 – Displays a digit, even if it’s zero.
  • # – Displays a digit, but only if it’s non-zero.
  • . – Decimal point.
  • , – Thousands separator.
  • d – Day in a date format.
  • m – Month in a date format.
  • y – Year in a date format.
  • % – Multiplies by 100 and shows the percent symbol.
  • @ – Represents text in the cell.

Implementing Custom Number Formants in Google Sheets

Google Sheets offers an easy and streamlined approach to custom number formats. Though it has free options compared to Excel, its results are clearer and more maintainable formats. Let’s create a practical format that displays numbers as currencies with different colors:

  • Select the cells or range.
  • Go to the Format tab >> from Number >> select Custom number format.

Implementing Custom Number Formats in Google Sheets (Versus Excel's Number Format System)

  • In the Customer format numbers dialog box;
  • Enter the custom format code and click Apply.

Format:

 
[Green]$#,##0;[Red]($#,##0);[Blue]$0;"Text: "@

This custom format has four sections, separated by semicolons.

  • It will show positive numbers in green with a dollar sign.
  • Negative numbers in red with a dollar sign.
  • It will show zero values in blue.
  • Text entries will be prefixed with “Text: “.

Implementing Custom Number Formats in Google Sheets (Versus Excel's Number Format System)

Output:

Implementing Custom Number Formats in Google Sheets (Versus Excel's Number Format System)

Common Custom Formats in Google Sheets

The custom number formatting menu offers pre-built formatting in Excel. You can select any custom formatting of your choice.

Currency Format:

 
"$"#,##0.00

This format will display numbers in USD, with two decimal places.

Percentage Format:

 
0.00%

Displays numbers as percentages with one decimal place.

Date Format:

 
dd/mm/yyyy

This will display dates in day/month/year format.

Text Formatting:

 
"Order "0

This will add the text “Order ” before the number.

Implementing Custom Number Formats in Google Sheets (Versus Excel's Number Format System)

Implementing Custom Number Formats in Excel

Excel’s custom formatting is more advanced it can handle complex formatting with additional capabilities of conditional formatting. Excel offers locale-specific displays for numbers.

  • Select the cells or range.
  • Right-click on the cells to open the Format Cells dialog box.
  • Go to the Number tab >> select Custom category.
  •  Insert the format code and click OK.

Format:

 
[Green]$#,##0;[Red]($#,##0);[Blue]$0;"Text: "@

This will display similar formatting as Google Sheets.

Implementing Custom Number Formats in Google Sheets (Versus Excel's Number Format System)

Output:

Implementing Custom Number Formats in Google Sheets (Versus Excel's Number Format System)

Practical Examples of Custom Format

By using custom format code you can create formatting of your choice that will display the numbers in different ways. Let’s explore some practical custom formatting that may be needed in your regular work.

Currency with Thousands Separator

Google Sheets:

 
$#,##0.00;($#,##0.00);$0.00

Excel:

 
[>0]$#,##0.00;[<0]($#,##0.00);$0.00

Percentages with No Decimals for Small Numbers

Google Sheets:

 
[>1]#,##0%;[<1]0.00%

Excel:

 
[>=1]#,##0%;[<1]0.00%

Phone Number Format

Google Sheets:

 
(###) ###-####

Excel:

 
[<=9999999999](###) ###-####;[>9999999999]"Invalid"

Advanced Formatting for Both Platforms

Most of the custom formatting works on both platforms. Let’s explore some advanced formatting.

Scaling Large Numbers

 
#,##0.0,,"M";(#,##0.0,,"M")

This format will display numbers in millions.

Implementing Custom Number Formats in Google Sheets (Versus Excel's Number Format System)

Combined Date and Time

 
yyyy-mm-dd hh:mm:ss

This format works in both platforms for consistent datetime display.

Implementing Custom Number Formats in Google Sheets (Versus Excel's Number Format System)

Conclusion

Google Sheets offers robust options for custom number formats that can help improve the readability and presentation of your data. It has a preview that displays the formatting before applying. Google Sheets’ overall custom formatting is similar to Excel, but Excel offers more advanced formatting. While Excel offers more formatting power, Google Sheets’ simpler system is more maintainable. Based on your numbers complexity level choose the formatting and platform that matches your needs and your team’s capabilities.

Leave a Reply

Your email address will not be published. Required fields are marked *