{"id":1328,"date":"2016-03-05T12:51:15","date_gmt":"2016-03-05T11:51:15","guid":{"rendered":"https:\/\/www.myexcelonline.com\/?p=1328"},"modified":"2023-11-30T01:40:13","modified_gmt":"2023-11-30T00:40:13","slug":"custom-number-formats-in-excel","status":"publish","type":"post","link":"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/custom-number-formats-in-excel\/","title":{"rendered":"Custom Number Formats in Excel"},"content":{"rendered":"<p>A <a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/excel-custom-number-format\/\" target=\"_blank\" rel=\"noopener\">custom number format in Excel<\/a> can have up to four different sections in the following order:<\/p>\n<h3 style=\"text-align: center\"><strong>Positive format; Negative format; Zero format; Text format<\/strong><\/h3>\n<p>&nbsp;<\/p>\n<p>You can specify different format codes for each section as long as they are separated by a semicolon.<\/p>\n<p>So you can display a positive number in black, a negative number in red, a zero in green and any text in blue.\u00a0 See the gif below to see how this can be achieved.<\/p>\n<p>The following table displays the different custom codes that you can enter in the Format Cells dialogue box and how the values will appear.\u00a0 You can download the Excel workbook below and press CTRL+1 in each cell to see the custom format entered.<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #ff0000\"><strong>STEP 1: \u00a0<\/strong><\/span>Copy the<strong> custom number format<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"Custom Number Formats in Excel\" class=\"alignnone size-full wp-image-19471\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/03\/Custom-Format-01.jpg\" alt=\"Custom Number Formats in Excel\" width=\"891\" height=\"338\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/03\/Custom-Format-01.jpg 891w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/03\/Custom-Format-01-300x114.jpg 300w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/03\/Custom-Format-01-768x291.jpg 768w\" sizes=\"(max-width: 891px) 100vw, 891px\" \/><\/p>\n<p><span style=\"color: #ff0000\"><strong>STEP 2:\u00a0 <\/strong><\/span>Press <strong>Ctrl+1<\/strong> to open the Format Cells dialog. Or you can right click on the cell and select <strong>Format Cells.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"Custom Number Formats in Excel\" class=\"alignnone size-full wp-image-19472\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/03\/Custom-Format-02.jpg\" alt=\"Custom Number Formats in Excel\" width=\"808\" height=\"299\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/03\/Custom-Format-02.jpg 808w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/03\/Custom-Format-02-300x111.jpg 300w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/03\/Custom-Format-02-768x284.jpg 768w\" sizes=\"(max-width: 808px) 100vw, 808px\" \/><\/p>\n<p><span style=\"color: #ff0000\"><strong>STEP 3: \u00a0<\/strong><\/span>Choose <strong>Custom<\/strong> and Paste the <strong>Number Format<\/strong>. Then <strong>Press OK<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"Custom Number Formats in Excel\" class=\"alignnone size-full wp-image-19473\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/03\/Custom-Format-03.jpg\" alt=\"Custom Number Formats in Excel\" width=\"532\" height=\"484\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/03\/Custom-Format-03.jpg 532w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/03\/Custom-Format-03-300x273.jpg 300w\" sizes=\"(max-width: 532px) 100vw, 532px\" \/><\/p>\n<p>Try out the 4 scenarios and see them change!<\/p>\n<ul>\n<li>Positive &#8211; 100<\/li>\n<li>Negative &#8211; -200<\/li>\n<li>Zero &#8211; 0<\/li>\n<li>Text &#8211; Excel ROCKS!<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"Custom Number Formats in Excel\" class=\"alignnone size-full wp-image-19474\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/03\/Custom-Format-04.jpg\" alt=\"Custom Number Formats in Excel\" width=\"700\" height=\"197\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/03\/Custom-Format-04.jpg 700w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/03\/Custom-Format-04-300x84.jpg 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/p>\n<p><iframe src=\"https:\/\/www.youtube.com\/embed\/qlukK8uv734?rel=0 \" width=\"800\" height=\"400\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><span data-mce-type=\"bookmark\" style=\"width: 0px;overflow: hidden;line-height: 0\" class=\"mce_SELRES_start\">\ufeff<\/span><\/iframe><\/p>\n<p><a href=\"https:\/\/www.youtube.com\/c\/MyExcelOnlinecomtutorials?sub_confirmation=1\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><img loading=\"lazy\" decoding=\"async\" class=\"alignmiddle wp-image-111468 size-full\" style=\"vertical-align: middle\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/04\/1.yt_.png\" alt=\"\" title=\"\"><\/a><br \/>\n<span style=\"text-decoration: underline;color: #0000ff\"><a class=\"IRPP_minimalist icon-download\" style=\"color: #0000ff\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/06\/Number-Formats-Custom.xlsx\" target=\"_blank\"><span class=\"ctaText px-3 text-capitalize\">Download workbook<\/span><span class=\"postTitle px-3\">Number-Formats-Custom.xlsx<\/span><\/a><\/span><\/p>\n<table style=\"height: 318px\" width=\"662\">\n<tbody>\n<tr>\n<td width=\"134\"><strong>CODE<\/strong><\/td>\n<td width=\"572\"><strong>OUTPUT<\/strong><\/td>\n<td width=\"221\"><strong>HOW IT APPEARS<\/strong><\/td>\n<\/tr>\n<tr>\n<td>General<\/td>\n<td>General format display<\/td>\n<td>123456<\/td>\n<\/tr>\n<tr>\n<td>#<\/td>\n<td>Displays significant digits<\/td>\n<td>123<\/td>\n<\/tr>\n<tr>\n<td>#.00%<\/td>\n<td>Displays percentage<\/td>\n<td>64.89%<\/td>\n<\/tr>\n<tr>\n<td>$ &#8211; + \/ ( ) :<\/td>\n<td>Displays this character<\/td>\n<td>-$1234567890<\/td>\n<\/tr>\n<tr>\n<td>\\<\/td>\n<td>Displays the next character following the \\<\/td>\n<td>#1234567890<\/td>\n<\/tr>\n<tr>\n<td>\u201ctext\u201d<\/td>\n<td>Displays the text in between the quotations<\/td>\n<td>1234567890 units<\/td>\n<\/tr>\n<tr>\n<td>[Color n]<\/td>\n<td>Displays the color in the Excel color pallete\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (from 0 to 56)<\/td>\n<td><span style=\"color: #3366ff\">1234567890<\/span><\/td>\n<\/tr>\n<tr>\n<td>[condition value]<\/td>\n<td>Custom condition eg [If it meets this condition]\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 True Format; False Format<\/td>\n<td><span style=\"color: #ff0000\">1.00%<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A custom number format in Excel can have up to four different sections in the following order: Positive format; Negative format; Zero format; Text format &nbsp; You can specify different format codes for each section as long as they are separated by a semicolon. So you can display a positive number in black, a negative [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":17640,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"cos_headline_score":0,"cos_seo_score":0,"cos_headline_text":"","cos_headline_has_been_analyzed":false,"cos_last_analyzed_headline":[],"om_disable_all_campaigns":false},"categories":[6,41],"tags":[88,81],"acf":[],"_links":{"self":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts\/1328"}],"collection":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/comments?post=1328"}],"version-history":[{"count":0,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts\/1328\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/media\/17640"}],"wp:attachment":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/media?parent=1328"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/categories?post=1328"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/tags?post=1328"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}