{"id":6718,"date":"2021-08-09T13:40:38","date_gmt":"2021-08-09T13:40:38","guid":{"rendered":"https:\/\/officetuts.net\/excel\/?p=6718"},"modified":"2024-03-28T10:35:37","modified_gmt":"2024-03-28T10:35:37","slug":"highlight-negative-numbers","status":"publish","type":"post","link":"https:\/\/officetuts.net\/excel\/examples\/highlight-negative-numbers\/","title":{"rendered":"Highlight Negative Numbers in Excel"},"content":{"rendered":"\n
Highlight-Negative-Numbers<\/a>Download File<\/a><\/div>\n\n\n\n

In Excel, there are limitless ways to highlight and mark only certain data in the data set. There are different ways to do so, as well.<\/p>\n\n\n\n

In the following example, we will show different ways to highlight only negative numbers in the range.<\/p>\n\n\n\n

Highlight using Conditional Formatting<\/h2>\n\n\n\n

For our example, we will use a simple numbers table with four columns and random numbers<\/a> from -20 to 20.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

To create this table, we used a very useful formula called RANDBETWEEN<\/strong>. It has only two parameters: bottom<\/strong> and top<\/strong>. For our bottom number, we choose -20, and for our top number, we chose 20. So, our formula looks like this:<\/p>\n\n\n\n

=RANDBETWEEN(-20,20)<\/code><\/pre>\n\n\n\n

Now, all we have to do to highlight only the negative numbers in our data set is select our range, then go to Home >> Conditional Formatting >> Highlight Cells Rules >> Less Than<\/strong>:<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

In the pop-up window that appears, we will input the number 0, since we want to highlight all the numbers that are lower than this one.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

We will choose a standard fill – Light Red Fill with Dark Red Text<\/strong>, and then click OK.<\/p>\n\n\n\n

Our table now looks like this:<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

Highlight using Filter<\/h2>\n\n\n\n

We will add this list of random numbers<\/a> to column F<\/strong> as well. It would look something like this:<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

If we want to filter only the negative numbers from the list, we can do that by selecting the first row in our column<\/a>, and then going to Data >> Sort & Filter >> Filter<\/strong>.<\/p>\n\n\n\n

Once we click on the Filter<\/strong>, we will select the dropdown arrow in our column, go to Number Filters<\/strong>, and then select Less Than<\/strong>.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

In the Custom AutoFilter<\/strong> pop-up window that appears, we will input 0<\/strong> next to the \u201cis less than<\/strong>\u201d text.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

We will click OK<\/strong>, and we will see that only the negative numbers are filtered out:<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

Highlight using Formula<\/h2>\n\n\n\n

We can also use a formula to derive the negative numbers in our data set. We will clear the filter<\/a> in column F<\/strong> by going to Data >> Sort & Filter >> Clear<\/strong>.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

We will create a simple formula in cell E2<\/strong>:<\/p>\n\n\n\n

=IF(F2<0,F2,\"\")<\/code><\/pre>\n\n\n\n

This formula will copy negative numbers from column F <\/strong>and leave a blank space if the values in column F <\/strong>are higher than 0<\/strong>. We will copy the formula till the end of our data set in column F<\/strong>. Results are as follows:<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

Highlight using Formatting<\/h2>\n\n\n\n

We can also use formatting to help us highlight negative numbers. We select our range (numbers in column F<\/strong>), right-click on it, and then select Format Cells<\/strong>:<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

In the pop-up window that appears, we have to make several adjustments.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

First, we select a Number as a category. Second, we set decimal places to 0, to avoid them (we defined our numbers as whole numbers, so there is no need for decimals). Next, we come to the best part. We can choose how we want to highlight our negative numbers.<\/p>\n\n\n\n

In this case, we decided to highlight them with red color<\/strong> and to put them into parentheses (fourth option on the list).<\/p>\n\n\n\n

When we click on OK<\/strong>, our range will look like this:<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

The same result could be achieved by defining this in the Custom category<\/strong> in Formatting<\/strong>.<\/p>\n\n\n\n

To prove that, we will select our range once again, go to Format Cells<\/strong>, and then select the Custom category<\/strong>.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

We will input the following syntax:<\/p>\n\n\n\n

#,##0 ;[Blue](#,##0);- ;<\/code><\/pre>\n\n\n\n

Now, our negative numbers should be highlighted in blue and should be in parentheses.<\/p>\n\n\n\n

When we click OK<\/strong>, we will see that this is the case:<\/p>\n\n\n\n

\"\"<\/figure>\n","protected":false},"excerpt":{"rendered":"

In Excel, there are limitless ways to highlight and mark only certain data in the data set. There are different ways to do…<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[170,190],"yoast_head":"\nHighlight Negative Numbers in Excel<\/title>\n<meta name=\"description\" content=\"Learn how to highlight negative numbers in Excel using conditional formatting. Download free example file with random numbers and try it yourself.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/officetuts.net\/excel\/examples\/highlight-negative-numbers\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Highlight Negative Numbers in Excel\" \/>\n<meta property=\"og:description\" content=\"Learn how to highlight negative numbers in Excel using conditional formatting. Download free example file with random numbers and try it yourself.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/officetuts.net\/excel\/examples\/highlight-negative-numbers\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-08-09T13:40:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-28T10:35:37+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/08\/word-image-117.png\" \/>\n<meta name=\"author\" content=\"Harun Spahic\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Harun Spahic\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/highlight-negative-numbers\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/highlight-negative-numbers\/\"},\"author\":{\"name\":\"Harun Spahic\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/694491c70f776081acdac4ae41f222a2\"},\"headline\":\"Highlight Negative Numbers in Excel\",\"datePublished\":\"2021-08-09T13:40:38+00:00\",\"dateModified\":\"2024-03-28T10:35:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/highlight-negative-numbers\/\"},\"wordCount\":593,\"publisher\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"image\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/highlight-negative-numbers\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/08\/word-image-117.png\",\"keywords\":[\"file\",\"pinterest\"],\"articleSection\":[\"examples\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/highlight-negative-numbers\/\",\"url\":\"https:\/\/officetuts.net\/excel\/examples\/highlight-negative-numbers\/\",\"name\":\"Highlight Negative Numbers in Excel\",\"isPartOf\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/highlight-negative-numbers\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/highlight-negative-numbers\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/08\/word-image-117.png\",\"datePublished\":\"2021-08-09T13:40:38+00:00\",\"dateModified\":\"2024-03-28T10:35:37+00:00\",\"description\":\"Learn how to highlight negative numbers in Excel using conditional formatting. Download free example file with random numbers and try it yourself.\",\"breadcrumb\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/highlight-negative-numbers\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/officetuts.net\/excel\/examples\/highlight-negative-numbers\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/highlight-negative-numbers\/#primaryimage\",\"url\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/08\/word-image-117.png\",\"contentUrl\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/08\/word-image-117.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/highlight-negative-numbers\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/officetuts.net\/excel\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Highlight Negative Numbers in Excel\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/officetuts.net\/excel\/#website\",\"url\":\"https:\/\/officetuts.net\/excel\/\",\"name\":\"\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/officetuts.net\/excel\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\",\"name\":\"Tomasz Decker\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g\",\"caption\":\"Tomasz Decker\"},\"logo\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/\"},\"description\":\"Spreadsheet and Python enthusiast.\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/694491c70f776081acdac4ae41f222a2\",\"name\":\"Harun Spahic\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b7b887a2249679182be5550a4421a7a9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b7b887a2249679182be5550a4421a7a9?s=96&d=mm&r=g\",\"caption\":\"Harun Spahic\"},\"sameAs\":[\"http:\/\/human.bsru.ac.th\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Highlight Negative Numbers in Excel","description":"Learn how to highlight negative numbers in Excel using conditional formatting. Download free example file with random numbers and try it yourself.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/officetuts.net\/excel\/examples\/highlight-negative-numbers\/","og_locale":"en_US","og_type":"article","og_title":"Highlight Negative Numbers in Excel","og_description":"Learn how to highlight negative numbers in Excel using conditional formatting. Download free example file with random numbers and try it yourself.","og_url":"https:\/\/officetuts.net\/excel\/examples\/highlight-negative-numbers\/","article_published_time":"2021-08-09T13:40:38+00:00","article_modified_time":"2024-03-28T10:35:37+00:00","og_image":[{"url":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/08\/word-image-117.png"}],"author":"Harun Spahic","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Harun Spahic","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/officetuts.net\/excel\/examples\/highlight-negative-numbers\/#article","isPartOf":{"@id":"https:\/\/officetuts.net\/excel\/examples\/highlight-negative-numbers\/"},"author":{"name":"Harun Spahic","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/694491c70f776081acdac4ae41f222a2"},"headline":"Highlight Negative Numbers in Excel","datePublished":"2021-08-09T13:40:38+00:00","dateModified":"2024-03-28T10:35:37+00:00","mainEntityOfPage":{"@id":"https:\/\/officetuts.net\/excel\/examples\/highlight-negative-numbers\/"},"wordCount":593,"publisher":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"image":{"@id":"https:\/\/officetuts.net\/excel\/examples\/highlight-negative-numbers\/#primaryimage"},"thumbnailUrl":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/08\/word-image-117.png","keywords":["file","pinterest"],"articleSection":["examples"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/officetuts.net\/excel\/examples\/highlight-negative-numbers\/","url":"https:\/\/officetuts.net\/excel\/examples\/highlight-negative-numbers\/","name":"Highlight Negative Numbers in Excel","isPartOf":{"@id":"https:\/\/officetuts.net\/excel\/#website"},"primaryImageOfPage":{"@id":"https:\/\/officetuts.net\/excel\/examples\/highlight-negative-numbers\/#primaryimage"},"image":{"@id":"https:\/\/officetuts.net\/excel\/examples\/highlight-negative-numbers\/#primaryimage"},"thumbnailUrl":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/08\/word-image-117.png","datePublished":"2021-08-09T13:40:38+00:00","dateModified":"2024-03-28T10:35:37+00:00","description":"Learn how to highlight negative numbers in Excel using conditional formatting. Download free example file with random numbers and try it yourself.","breadcrumb":{"@id":"https:\/\/officetuts.net\/excel\/examples\/highlight-negative-numbers\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/officetuts.net\/excel\/examples\/highlight-negative-numbers\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/officetuts.net\/excel\/examples\/highlight-negative-numbers\/#primaryimage","url":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/08\/word-image-117.png","contentUrl":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/08\/word-image-117.png"},{"@type":"BreadcrumbList","@id":"https:\/\/officetuts.net\/excel\/examples\/highlight-negative-numbers\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/officetuts.net\/excel\/"},{"@type":"ListItem","position":2,"name":"Highlight Negative Numbers in Excel"}]},{"@type":"WebSite","@id":"https:\/\/officetuts.net\/excel\/#website","url":"https:\/\/officetuts.net\/excel\/","name":"","description":"","publisher":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/officetuts.net\/excel\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42","name":"Tomasz Decker","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g","caption":"Tomasz Decker"},"logo":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/"},"description":"Spreadsheet and Python enthusiast."},{"@type":"Person","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/694491c70f776081acdac4ae41f222a2","name":"Harun Spahic","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b7b887a2249679182be5550a4421a7a9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b7b887a2249679182be5550a4421a7a9?s=96&d=mm&r=g","caption":"Harun Spahic"},"sameAs":["http:\/\/human.bsru.ac.th\/"]}]}},"_links":{"self":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/6718"}],"collection":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/comments?post=6718"}],"version-history":[{"count":11,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/6718\/revisions"}],"predecessor-version":[{"id":17356,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/6718\/revisions\/17356"}],"wp:attachment":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/media?parent=6718"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/categories?post=6718"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/tags?post=6718"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}