• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Excel Custom Number Format Conditions

You are here: Home / Excel / Excel Custom Number Format Conditions
September 17, 2020 by Mynda Treacy

Custom number format conditions allow you to specify a different format based on the size of a number. In this tutorial we’ll look at the different ways we can use them, including some fun with emojis!

In the examples below I’ve used emojis with custom number formats to visualise temperatures. And instead of boring old grades like A, B, C etc. for student test scores, I’ve used hand signs. And for a more serious application, I’ve simply used scaling for millions and thousands.

custom number format conditions with emojis

Note: only Excel Online displays colour emojis. The Excel desktop app displays them in greyscale. Emojis are available in Excel 2010 onward.

How to Apply Custom Number Format Conditions and Emojis Video

Subscribe YouTube

Download Workbook

Enter your email address below to download the sample workbook.

By submitting your email address you agree that we can email you our Excel newsletter.
Please enter a valid email address.

Download the Excel Workbook and follow along. Note: This is a .xlsx file please ensure your browser doesn't change the file extension on download.

Custom Number Format Conditions with Emojis

In the image below the emoji column (D) actually contains the test score numbers, as you can see in the formula bar. They’ve had a custom number format applied, which you can see in the Format column (E), that displays an emoji instead of the underlying value.

custom number format conditions for scores

It formats values greater than 80 with the clapping hands and values greater than 50 with the ok sign, with the remaining values given the thumbs down.

We can have lots of fun with emojis, here’s another example using temperatures:

custom number format conditions for temperatures

The temperatures idea came from a Twitter post by @benlcollins where he used them in <cough> Google Sheets </cough>, and it reminded me that we have emojis in Excel too.

The limitation is that only Excel Online shows them in their coloured glory. In the Excel desktop app they are greyscale, as you can see below:

custom number format conditions emojis in grey

Inserting Emojis in Excel

You can use the keyboard shortcut:

insert emoji excel shortcut

To bring up a list of emojis available in Excel:

excel emoji list

Or you can get a full list of emojis here. To use these emojis in Excel you need to take the code after U+ in the Code column on that page, as shown below. For example, the face with sunglasses code is 1F60E:

emoji hex codes

And then use the function HEX2DEC to convert the hexadecimal code into decimal, and the UNICHAR function to convert the decimal code into an emoji like so:

excel function to convert hex code to emoji

Note: just like emojis, UNICHAR is only available in Excel 2010 onward.

Thanks to fellow MVP, Frederic Le Guen for his post on using Emojis in Excel.

Custom Number Format Conditions for Scaling

Ok, enough frivolities, we can also use custom number format conditions for serious work, like formatting values with different scaling. For example, here I have values ranging from millions to hundreds, with each scaled accordingly:

custom number format conditions for scaling

A single custom number format is used on the Sales values above, which is shown in the Format column of the image. Notice the conditions start with the largest number and reduce from there.

Now, I don’t recommend using them in scenarios where the scaling is mixed, like the PivotTable above, because this could slow down interpretation and make the values more difficult to compare.

However, in the chart example below it makes more sense because the different categories warrant different scaling and they only contain one format per category:

custom number format conditions with charts

Custom Number Format Conditions Font Colours

We can also apply different colours based on a scale. This is typically used to colour code negative values in red, but we can also specify a scale. In the example below I’ve colour coded values less than 500 in red, then values less than or equal to 1000 in green, with the remaining values in orange:

custom number format conditions for colours

Tip: take note of my criteria order; the first value is the smallest. If you wrote the custom number format with <=1000 first, see below, then the first two values (200 and 790) would be green.

[Color10][<=1000]Β  #,##0; [Red][<500]Β  #,##0 ; [Color46]Β  #,##0

You can get a complete list of colour codes here.

Custom Number Format Condition Limitations

You can only have 2 conditions in a custom number format with each condition separated by a semicolon. i.e. the first condition; the second condition; and then everything else.

If you require more conditions you can use Conditional Formatting to override the custom number formatting.

Remember, the Excel desktop app only shows emojis in greyscale and they are only available in Excel 2010 onward.

More Custom Number Formatting Ideas

Custom Number Format Guide – comprehensive guide to custom number formats available in Excel.

Charting variances with emojis!

Complete list of emoji codes – as shown in the video.

Complete list of colour numbers.

More Excel Posts

excel check boxes

Interactive Excel Check Boxes

Excel check boxes are interactive elements you can link to formulas, charts, conditional formatting and more.
tips for working in multiple excel files

Hacks for Working in Multiple Excel Files

Awesome tips for navigating, arranging and working in multiple Excel files. Guaranteed to streamline your workflow and increase productivity.
chatgpt for excel

ChatGPT for Excel

Using ChatGPT for Excel can be hit and miss. Learn the best uses for ChatGPT to make your Excel life easier and what to avoid using it for.
excel templates

Where to Find Free Excel Templates

Where to find free Excel templates and how to create your own Excel templates. Using templates saves time and effort.
Easily Remove Password Protection from Excel Files

Easily Remove Excel Password Protection

How to remove Excel password protection when you’ve forgotten the password. Works for sheets, workbooks and read only files.
Import data from a picture to Excel

Import Data from a Picture to Excel

Import data from a picture to Excel. Works with pictures from a file or the clipboard and loads it to the spreadsheet.
excel online

5 Excel Online Features Better than Desktop

5 Excel Online Features Better than Desktop including searchable data validation, track changes, single line ribbon and more.

10 Common Excel Mistakes to Avoid

10 common Excel mistakes to avoid, including merge cells, external links, formatting entire rows/columns and more.
new Excel features

Cool New Features in Excel for Microsoft 365

Cool New Features in Excel for Microsoft 365 including the navigation pane, smooth scroling, unhide multiple sheets and more.
dynamic dependent data validation

Dynamic Dependent Data Validation

Dynamic Dependent Data Validation with dynamic array formulas like FILTER make it quick and easy to set up.


Category: Excel
Previous Post:power query custom functionsPower Query Custom Functions
Next Post:Quickly Create Running Totals in Power Queryquickly create running totals in power query

Reader Interactions

Comments

  1. Lou

    July 5, 2022 at 10:50 pm

    I have hit the limit of custom number formats in my workbook. I am sure some of my earlier creations are no longer used, but I don’t know which ones I can delete. Is there a comprehensive listing somewhere in the workbook that shows which cells have custom formats?

    Reply
    • Mynda Treacy

      July 6, 2022 at 11:43 am

      Hi Lou,

      That’s a great question. There’s no built in way to identify cells with custom number formats. You might be able to write some VBA that finds them, but I’m not sure. You can post your question on our Excel forum where someone might know.

      Mynda

      Reply
  2. Shashank Saxena

    September 24, 2021 at 4:57 pm

    Can we handle more than 3 conditions with Custom Formatting?
    Eg. I want to show pi chart emoji for 0%, 25%, 50%, 75%, 100%?
    I can do this with conditional formatting, but it is ugly. Is there any solution with custom formatting for this?

    Reply
    • Mynda Treacy

      September 27, 2021 at 1:21 pm

      Hi Shashank, you can use the built in pie chart conditional format from the icon sets, rather than a custom number format.

      Reply
  3. Andrea Javarauckas

    September 18, 2020 at 12:24 am

    For the life of me, I couldn’t find the UNICHAR function. I’m on Excel 2010. I finally found out, via MS Office Support, that this function is NOT available in Excel 2010. Just wanted to let you know.

    Reply
    • Mynda Treacy

      September 18, 2020 at 8:13 am

      Hi Andrea, sorry about that. Like emojis, UNICHAR only came into Excel in the 2010 version. I’ll add UNICHAR to the note. Thanks, Mynda

      Reply
  4. Stephen Barker

    September 17, 2020 at 7:38 pm

    Mynda

    I hope you are well.

    I just wanted to congratulate you on the noticeably increased quality of your YouTube videos. They have become clearer and more natural over time, perhaps with your increasing confidence. It adds further interest when you cover incidental points of detail, and in a couple of recent videos I have been impressed with the zooming and highlighting (with green boxes) of the key items – it just seems right, rather than pedestrian or obtrusive.

    I already loved using Excel, but with Power Pivot and Power Query, it went up a whole new level in power, usability and, yes, fun! I have to be careful that I don’t become like the man with a hammer who views everything as a nail. The only downside is the need to work from pure data tables – which is where your video on unpivoting data was really good.

    Kind Regards

    Stephen Barker
    Safety Assessment Engineer
    Airspace, ATM & Aerodromes
    Civil Aviation Authority
    UK

    Reply
    • Mynda Treacy

      September 17, 2020 at 8:30 pm

      Hi Stephen, thanks for noticing and appreciating the improvements in my video editing skills πŸ™‚ It’s great to know I’m on the right track. I appreciate you taking the time to share your feedback and kind words. Mynda

      Reply

Leave a Reply Cancel reply

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

Current ye@r *

Leave this field empty

Sidebar

More results...

Featured Content

  • 10 Common Excel Mistakes to Avoid
  • Top Excel Functions for Data Analysts
  • Secrets to Building Excel Dashboards in Less Than 15 Minutes
  • Pro Excel Formula Writing Tips
  • Hidden Excel Double-Click Shortcuts
  • Top 10 Intermediate Excel Functions
  • 5 Pro Excel Dashboard Design Tips
  • 5 Excel SUM Function Tricks
  • 239 Excel Keyboard Shortcuts

100 Excel Tips and Tricks eBook

Download Free Tips & Tricks

Subscribe to Our Newsletter

Receive weekly tutorials on Excel, Power Query, Power Pivot, Power BI and More.

We respect your email privacy

Guides and Resources

  • Excel Keyboard Shortcuts
  • Excel Functions
  • Excel Formulas
  • Excel Custom Number Formatting
  • ALT Codes
  • Pivot Tables
  • VLOOKUP
  • VBA
  • Excel Userforms
  • Free Downloads

239 Excel Keyboard Shortcuts

Download Free PDF

Free Webinars

Excel Dashboards Webinar

Watch our free webinars and learn to create Interactive Dashboard Reports in Excel or Power BI

Click Here to Watch Now

mynda treacy microsoft mvpHi, I'm Mynda Treacy and I run MOTH with my husband, Phil. Through our blog, webinars, YouTube channel and courses we hope we can help you learn Excel, Power Pivot and DAX, Power Query, Power BI, and Excel Dashboards.

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk – For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.