{"id":8253,"date":"2021-10-25T14:08:18","date_gmt":"2021-10-25T14:08:18","guid":{"rendered":"https:\/\/officetuts.net\/excel\/?p=8253"},"modified":"2024-03-26T11:08:41","modified_gmt":"2024-03-26T11:08:41","slug":"combine-if-functions-with-conditional-formatting","status":"publish","type":"post","link":"https:\/\/officetuts.net\/excel\/examples\/combine-if-functions-with-conditional-formatting\/","title":{"rendered":"Combine If Functions with Conditional Formatting in Excel"},"content":{"rendered":"\n

Conditional formatting might be one of the most useful reporting tools that are available. It is a great way of highlighting things that we want to show.<\/p>\n\n\n\n

In the example below, we will show how to combine the IF function<\/strong> (integrated and not integrated) and conditional formatting.<\/p>\n\n\n\n

Combining Integrated If Formulas with Conditional Formatting<\/h2>\n\n\n\n

For our example, we are going to use a list of NBA players and their points total from one night.<\/p>\n\n\n\n

\"Table\n\nDescription<\/figure>\n\n\n\n

We want to highlight all the players that had equal or less than 20 points<\/strong>, and fill the cells with their names in red color.<\/p>\n\n\n\n

To do this, we will select our range (A2:A11)<\/strong> and then go to Home >> Conditional Formatting >> New Rule:<\/strong><\/p>\n\n\n\n

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

Under the options on a pop-up that appears, we will choose the last option: Use a formula to determine which cells to format<\/strong>.<\/p>\n\n\n\n

We cannot input the IF function<\/strong> in a standard form in Conditional Formatting, but the last option in New Formatting Rule<\/strong> already defines that the values where a certain condition is met will be formatted, which is the same thing that the IF function<\/strong> does. We can say that the IF function<\/strong> is integrated in this way in conditional formatting<\/strong>.<\/p>\n\n\n\n

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

To get our results, we will input the following formula:<\/p>\n\n\n\n

=B2<=20<\/code><\/pre>\n\n\n\n
\"Graphical<\/figure>\n\n\n\n

We will define that all of these cells are highlighted in green:<\/p>\n\n\n\n

When we click OK<\/strong>, we will get the following results in our table:<\/p>\n\n\n\n

\"Table\n\nDescription<\/figure>\n\n\n\n

We can also combine AND, OR, or NOT functions<\/strong> with this option. For example, we will highlight all the players who scored more than 20 points<\/strong> and less than 25<\/strong>.<\/p>\n\n\n\n

Since we do not have a large data set, we realize that Kyrie Irving, James Harden, and Giannis Antetokounmpo will be highlighted.<\/p>\n\n\n\n

We will select our range again and do the same steps as in the first example. Our formula will be a little bit different:<\/p>\n\n\n\n

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

When we click OK<\/strong>, these players will be highlighted in yellow:<\/p>\n\n\n\n

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

Combining If Formulas with Conditional Formatting<\/h2>\n\n\n\n

Since we cannot use IF formulas<\/strong> directly with conditional formatting, we will input the IF formula<\/strong> in the C column<\/strong>. We will define that the word \u201cTRUE\u201d<\/strong> is written for all players who scored less than 20 points<\/strong> and more than 25 points<\/strong>. Word \u201cFALSE\u201d<\/strong> will be shown otherwise.<\/p>\n\n\n\n

Our formula is as follows:<\/p>\n\n\n\n

=IF(OR(B2<20,B2>25),\"TRUE\",\"FALSE\")<\/code><\/pre>\n\n\n\n

We will get the following results:<\/p>\n\n\n\n

\"Timeline\n\nDescription<\/figure>\n\n\n\n

Now we can format column C<\/strong> based on these values. We will select range C2:C11<\/strong> and go to Home >> Conditional Formatting >> Highlight Cells Rules >> Text that Contains:<\/strong><\/p>\n\n\n\n

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

On a pop-up window that appears, we will input the word \u201cTRUE\u201d<\/strong>. We will highlight these cells with red color:<\/p>\n\n\n\n

Once we click OK<\/strong>, only these cells in column C<\/strong> will be highlighted:<\/p>\n\n\n\n

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

Conditional formatting might be one of the most useful reporting tools that are available. It is a great way of highlighting things that…<\/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":[190],"yoast_head":"\nCombine If Functions with Conditional Formatting in Excel<\/title>\n<meta name=\"description\" content=\"Learn how to combine the IF function integrated and not integrated, with conditional formatting to create highlights in Excel.\" \/>\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\/combine-if-functions-with-conditional-formatting\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Combine If Functions with Conditional Formatting in Excel\" \/>\n<meta property=\"og:description\" content=\"Learn how to combine the IF function integrated and not integrated, with conditional formatting to create highlights in Excel.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/officetuts.net\/excel\/examples\/combine-if-functions-with-conditional-formatting\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-10-25T14:08:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-26T11:08:41+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/10\/table-description-automatically-generated-12.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=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/combine-if-functions-with-conditional-formatting\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/combine-if-functions-with-conditional-formatting\/\"},\"author\":{\"name\":\"Harun Spahic\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/694491c70f776081acdac4ae41f222a2\"},\"headline\":\"Combine If Functions with Conditional Formatting in Excel\",\"datePublished\":\"2021-10-25T14:08:18+00:00\",\"dateModified\":\"2024-03-26T11:08:41+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/combine-if-functions-with-conditional-formatting\/\"},\"wordCount\":463,\"publisher\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"image\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/combine-if-functions-with-conditional-formatting\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/10\/table-description-automatically-generated-12.png\",\"keywords\":[\"pinterest\"],\"articleSection\":[\"examples\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/combine-if-functions-with-conditional-formatting\/\",\"url\":\"https:\/\/officetuts.net\/excel\/examples\/combine-if-functions-with-conditional-formatting\/\",\"name\":\"Combine If Functions with Conditional Formatting in Excel\",\"isPartOf\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/combine-if-functions-with-conditional-formatting\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/combine-if-functions-with-conditional-formatting\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/10\/table-description-automatically-generated-12.png\",\"datePublished\":\"2021-10-25T14:08:18+00:00\",\"dateModified\":\"2024-03-26T11:08:41+00:00\",\"description\":\"Learn how to combine the IF function integrated and not integrated, with conditional formatting to create highlights in Excel.\",\"breadcrumb\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/combine-if-functions-with-conditional-formatting\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/officetuts.net\/excel\/examples\/combine-if-functions-with-conditional-formatting\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/combine-if-functions-with-conditional-formatting\/#primaryimage\",\"url\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/10\/table-description-automatically-generated-12.png\",\"contentUrl\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/10\/table-description-automatically-generated-12.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/combine-if-functions-with-conditional-formatting\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/officetuts.net\/excel\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Combine If Functions with Conditional Formatting 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":"Combine If Functions with Conditional Formatting in Excel","description":"Learn how to combine the IF function integrated and not integrated, with conditional formatting to create highlights in Excel.","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\/combine-if-functions-with-conditional-formatting\/","og_locale":"en_US","og_type":"article","og_title":"Combine If Functions with Conditional Formatting in Excel","og_description":"Learn how to combine the IF function integrated and not integrated, with conditional formatting to create highlights in Excel.","og_url":"https:\/\/officetuts.net\/excel\/examples\/combine-if-functions-with-conditional-formatting\/","article_published_time":"2021-10-25T14:08:18+00:00","article_modified_time":"2024-03-26T11:08:41+00:00","og_image":[{"url":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/10\/table-description-automatically-generated-12.png"}],"author":"Harun Spahic","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Harun Spahic","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/officetuts.net\/excel\/examples\/combine-if-functions-with-conditional-formatting\/#article","isPartOf":{"@id":"https:\/\/officetuts.net\/excel\/examples\/combine-if-functions-with-conditional-formatting\/"},"author":{"name":"Harun Spahic","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/694491c70f776081acdac4ae41f222a2"},"headline":"Combine If Functions with Conditional Formatting in Excel","datePublished":"2021-10-25T14:08:18+00:00","dateModified":"2024-03-26T11:08:41+00:00","mainEntityOfPage":{"@id":"https:\/\/officetuts.net\/excel\/examples\/combine-if-functions-with-conditional-formatting\/"},"wordCount":463,"publisher":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"image":{"@id":"https:\/\/officetuts.net\/excel\/examples\/combine-if-functions-with-conditional-formatting\/#primaryimage"},"thumbnailUrl":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/10\/table-description-automatically-generated-12.png","keywords":["pinterest"],"articleSection":["examples"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/officetuts.net\/excel\/examples\/combine-if-functions-with-conditional-formatting\/","url":"https:\/\/officetuts.net\/excel\/examples\/combine-if-functions-with-conditional-formatting\/","name":"Combine If Functions with Conditional Formatting in Excel","isPartOf":{"@id":"https:\/\/officetuts.net\/excel\/#website"},"primaryImageOfPage":{"@id":"https:\/\/officetuts.net\/excel\/examples\/combine-if-functions-with-conditional-formatting\/#primaryimage"},"image":{"@id":"https:\/\/officetuts.net\/excel\/examples\/combine-if-functions-with-conditional-formatting\/#primaryimage"},"thumbnailUrl":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/10\/table-description-automatically-generated-12.png","datePublished":"2021-10-25T14:08:18+00:00","dateModified":"2024-03-26T11:08:41+00:00","description":"Learn how to combine the IF function integrated and not integrated, with conditional formatting to create highlights in Excel.","breadcrumb":{"@id":"https:\/\/officetuts.net\/excel\/examples\/combine-if-functions-with-conditional-formatting\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/officetuts.net\/excel\/examples\/combine-if-functions-with-conditional-formatting\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/officetuts.net\/excel\/examples\/combine-if-functions-with-conditional-formatting\/#primaryimage","url":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/10\/table-description-automatically-generated-12.png","contentUrl":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/10\/table-description-automatically-generated-12.png"},{"@type":"BreadcrumbList","@id":"https:\/\/officetuts.net\/excel\/examples\/combine-if-functions-with-conditional-formatting\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/officetuts.net\/excel\/"},{"@type":"ListItem","position":2,"name":"Combine If Functions with Conditional Formatting 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\/8253"}],"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=8253"}],"version-history":[{"count":4,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/8253\/revisions"}],"predecessor-version":[{"id":15335,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/8253\/revisions\/15335"}],"wp:attachment":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/media?parent=8253"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/categories?post=8253"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/tags?post=8253"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}