{"id":264653,"date":"2024-03-13T20:08:49","date_gmt":"2024-03-13T19:08:49","guid":{"rendered":"https:\/\/www.sheetgo.com\/?p=264653"},"modified":"2026-10-14T15:39:53","modified_gmt":"2026-10-14T13:39:53","slug":"formatacao-condicional-excel","status":"publish","type":"post","link":"https:\/\/www.sheetgo.com\/pt\/blog\/excel-features\/conditional-formatting-excel\/","title":{"rendered":"Formata\u00e7\u00e3o condicional no Excel: o guia completo"},"content":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; admin_label=&#8221;section&#8221; _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221; da_is_popup=&#8221;off&#8221; da_exit_intent=&#8221;off&#8221; da_has_close=&#8221;on&#8221; da_alt_close=&#8221;off&#8221; da_dark_close=&#8221;off&#8221; da_not_modal=&#8221;on&#8221; da_is_singular=&#8221;off&#8221; da_with_loader=&#8221;off&#8221; da_has_shadow=&#8221;on&#8221; da_disable_devices=&#8221;off|off|off&#8221;][et_pb_row admin_label=&#8221;row&#8221; _builder_version=&#8221;4.16&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.16&#8243; custom_padding=&#8221;|||&#8221; global_colors_info=&#8221;{}&#8221; custom_padding__hover=&#8221;|||&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>Excel represents the go-to solution for data storage and representation for most business teams. Whether you work in finance, human resources, or marketing, the amount of data is definitely going to determine your analysis and visualization tasks. Thankfully, Excel offers a feature known as conditional formatting, which helps users organize and manage their whole data set in a few clicks. To make the most out of this rule-based feature, you must become familiar with how to use it correctly.<\/p>\n<p>In this complete guide, you\u2019ll learn what conditional formatting is and the many uses it offers in Excel. You\u2019ll learn the basics of conditional formatting in Excel and also learn its more advanced uses when combined with IF or AND formulas. What is great about this feature in Excel is that it can be as basic or as complex as you need, depending on the level of customization your data requires. From setting multiple conditions to formatting rules to selecting which spreadsheet data it should apply to, conditional formatting is one of the most valuable features in Excel to boost productivity at all company levels.<\/p>\n<p>[\/et_pb_text][et_pb_text module_id=&#8221;what-is-conditional-formatting-in-excel&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2>What is conditional formatting in Excel?<\/h2>\n<p>Conditional formatting is a spreadsheet application feature that allows users to format data following a set of built-in or customized conditions. The most common use is to highlight key information through color-coding or remove duplicate content in one click.<\/p>\n<p>The conditions or rules you set will apply to a cell or cell range, which can include columns; this means that the data in the cell will automatically change to the value specified in the rule. For example, you can ask Excel to highlight (for example, in the color green) all cells that contain a numeric value \u201cgreater than\u201d the amount specified. This type of condition will change the color format, but you can add other formatting aspects, such as the font size or style.<\/p>\n<p>[\/et_pb_text][et_pb_text module_id=&#8221;how-does-conditional-formatting-work-in&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2>How does conditional formatting work in Excel?<\/h2>\n<p>Conditional formatting changes the formatting of your data with conditions that act as \u201cIf\/Then\u201d statements. You set the condition of the rule to a specified cell range, and then determine the formatting style which will be applied to the cells that fulfill this rule. In other words, \u201cIf (data range) is (condition of rule), then (formatting style)&#8221; is applied.<\/p>\n<p>Depending on the complexity of the rule you would like to apply, from basic to more advanced, you can create the following types of conditions in Excel:<\/p>\n<ul>\n<li><strong>Built-in conditions:<\/strong> Excel offers a great variety of built-in conditions that range from highlighting cells to establishing top\/bottom rules, which can be applied to different types of data, from numbers, text, to dates.<\/li>\n<li><strong>Custom conditions:<\/strong> These can be used by combining Excel formulas with the built-in conditions. By selecting the \u201cNew Rule\u201d option, you can include any formulae, such as =AND or =IF, to manage the data that you would like to apply built-in conditions to.<\/li>\n<li><strong>Multiple conditions:<\/strong> In case you need to format-specific data simultaneously, Excel allows you to use formulae to apply various built-in conditions at the same time.<\/li>\n<\/ul>\n<p>[\/et_pb_text][et_pb_text module_id=&#8221;basic-types-of-conditional-formatting-in&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2>Basic types of conditional formatting in Excel<\/h2>\n<p>We\u2019ll start by showing the most popular conditional formatting types in Excel based on their ease of use and applicability. Note that the examples shown are based on the Excel desktop app for Mac. Excel for the web also lets you create and edit conditional formatting rules, but its menus look a little different.<\/p>\n<h3>How do I change cell color based on cell value using conditional formatting?<\/h3>\n<p>This type of conditional formatting is one of the most commonly used in Excel since it helps to highlight key information and to structure your data visually so that it becomes more digestible, especially when dealing with large datasets.<\/p>\n<p>For example, let\u2019s say I work in the sales department of an international car dealership, and I need to report which car models have yielded above the expected profit margin. This is how to apply conditional formatting to change the cell color based on the cell value:<\/p>\n<p><strong>1.<\/strong> Select the cell range you would like to apply the rule to. Here, we will select a cell range within the \u2018Profit 5%\u2019 column. Head to Conditional Formatting &gt; Highlight Cells Rules &gt; Greater Than.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/excel-conditional-formatting-greater-than-menu.webp&#8221; alt=&#8221;Excel conditional formatting \u2014 Highlight Cells Rules menu open with Greater Than selected over the Profit 5% column&#8221; title_text=&#8221;Highlight Cells Rules menu open with Greater Than selected over the Profit 5% column&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>Conditional Formatting in Excel &#8211; Highlight Cells Rules<\/p>\n<p><strong>2.<\/strong> Before setting the color, enter the condition that the data should meet. In this case, the cell value should be greater than 1,000. Now, add the formatting style. Here, let\u2019s format all cells that meet the condition with the pre-set formatting \u201cGreen Fill with Dark Green Text\u201d.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/excel-conditional-formatting-greater-than-rule.webp&#8221; alt=&#8221;Excel conditional formatting \u2014 New Formatting Rule dialog with Cell Value greater than 1,000 and Green Fill with Dark Green Text&#8221; title_text=&#8221;New Formatting Rule dialog with Cell Value greater than 1,000 and Green Fill with Dark Green Text&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>Conditional Formatting in Excel &#8211; Highlight Cells Rules Format<\/p>\n<p><strong>3.<\/strong> Click \u201cOK\u201d. All cells above the specified value will be color-formatted as specified.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/excel-conditional-formatting-cells-highlighted-green.webp&#8221; alt=&#8221;Excel conditional formatting \u2014 Profit 5% values above 1,000 highlighted in green&#8221; title_text=&#8221;Profit 5% values above 1,000 highlighted in green&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>Conditional Formatting in Excel &#8211; Cells highlighted in green<\/p>\n<p>As you will be able to see, Excel provides a full range of color formatting rules that can be applied to any data type, not only numbers. Moreover, the last highlighting rule applies to duplicate values, which is useful for later removal or simply as a way of quickly visualizing repeat information. You will find our article on <a href=\"https:\/\/www.sheetgo.com\/blog\/excel-features\/how-to-remove-duplicates-in-excel\/\">how to find and remove duplicates in Excel<\/a> very useful.<\/p>\n<h3>How do I conditionally format a column in Excel?<\/h3>\n<p>In the same way that applying a conditional formatting rule to a cell or cell range, you can also apply it to a column &#8211; simply highlight the entire column before using the feature. Here\u2019s how to conditionally format a column in Excel using the \u201cTop\/Bottom Rules\u201d.<\/p>\n<p><strong>1.<\/strong> Highlight the column you would like to conditional format. Go to Conditional Formatting &gt; Top\/Bottom Rules &gt; Below Average. In this case, I want to highlight the profit value that is below the average, based on the values provided in the column.<\/p>\n<p>Conditional Formatting in Excel &#8211; Top\/Bottom Rules Below Average<\/p>\n<p><strong>2.<\/strong> In the dialog box, simply change the highlighting format according to your preference. Since I\u2019m going for a negative value, I will use \u201cLight Red Fill with Dark Red\u201d.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/excel-conditional-formatting-below-average-rule.webp&#8221; alt=&#8221;Excel conditional formatting \u2014 New Formatting Rule dialog set to below the average with Light Red Fill with Dark Red Text&#8221; title_text=&#8221;New Formatting Rule dialog set to below the average with Light Red Fill with Dark Red Text&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>Conditional Formatting in Excel &#8211; Conditional format a column<\/p>\n<p><strong>3.<\/strong> Excel will automatically highlight in red the profit values that are below the average.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/excel-conditional-formatting-below-average-red.webp&#8221; alt=&#8221;Excel conditional formatting \u2014 below-average Profit 5% values highlighted in light red&#8221; title_text=&#8221;Below-average Profit 5% values highlighted in light red&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>Conditional Formatting in Excel &#8211; Below average in light red<\/p>\n<p>[\/et_pb_text][et_pb_text module_id=&#8221;advanced-types-of-conditional-formatting&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2>Advanced types of conditional formatting in Excel<\/h2>\n<p>Now that we have seen the basic uses of conditional formatting in Excel, let\u2019s explore more advanced options that will let you customize the rules according to your specific needs.<\/p>\n<h3>Can I use Excel conditional formatting with a formula?<\/h3>\n<p>So far, we have seen examples of using conditional formatting in Excel with built-in rules, such as \u201cHighlight Cells Rules\u201d or \u201cTop\/Bottom Rules\u201d. But what if you want to apply more than one rule at the same time? Luckily, you are already using Excel and this means that you have a range of formulae to apply. Let&#8217;s see how the COUNTIF formula can be used with conditional formatting.<\/p>\n<h4>=COUNTIF formula to highlight duplicates<\/h4>\n<p>If you would like to conditionally format cells that contain duplicate values, you can use the built-in rule in Conditional formatting &gt; Highlight Cells Rules &gt; Duplicate Values\u2026<\/p>\n<p>Conditional Formatting in Excel &#8211; Highlight duplicate values<\/p>\n<p>However, you may also want to conditionally format the other columns or rows containing those duplicate values. The =<a href=\"https:\/\/www.sheetgo.com\/blog\/excel-functions\/countif-function-in-excel\/\">COUNTIF formula in Excel<\/a> is used to count the number of cells within a selected range that meet a specified criterion.<\/p>\n<h4>=COUNTIF formula syntax<\/h4>\n<p>Let\u2019s see how the =COUNTIF formula works by explaining its parameters:<\/p>\n<ul>\n<li><strong>Range:<\/strong> Refers to the cell range we are applying the formula and rule to.<\/li>\n<li><strong>Criteria:<\/strong> Refers to the specifications that the range needs to meet to be counted or considered by the rule.<\/li>\n<\/ul>\n<h4>Conditional formatting using COUNTIF: How to remove duplicates<\/h4>\n<p>This is how you can highlight duplicate values using the =COUNTIF formula in Excel:<\/p>\n<p><strong>1.<\/strong> Select your cell range and go to Conditional Formatting &gt; New Rule.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/excel-conditional-formatting-formula-new-rule.webp&#8221; alt=&#8221;Excel conditional formatting formula \u2014 Conditional Formatting menu with New Rule and the YEAR column selected&#8221; title_text=&#8221;Conditional Formatting menu with New Rule and the YEAR column selected&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>Conditional Formatting in Excel &#8211; Create New Rule<\/p>\n<p><strong>2.<\/strong> A dialog box will pop up. Select \u201cClassic\u201d in the \u201cStyle\u201d field, and \u201cUse a formula\u2026\u201d from the drop-down menu.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/excel-conditional-formatting-formula-rule-type.webp&#8221; alt=&#8221;Excel conditional formatting formula \u2014 New Formatting Rule dialog with Use a formula to determine which cells to format&#8221; title_text=&#8221;New Formatting Rule dialog with Use a formula to determine which cells to format&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>Conditional Formatting in Excel &#8211; New formatting rule options<\/p>\n<p><strong>3.<\/strong> Below, in the formula field, enter your formula. In this example, I\u2019ll enter =COUNTIF(C1, &quot;2006&quot;), where the range is C1, corresponding to the \u2018YEAR\u2019 column, and \u201c2006\u201d the value I would like to find the duplicates of.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/countif-conditional-formatting-formula.webp&#8221; alt=&#8221;COUNTIF conditional formatting \u2014 COUNTIF formula on cell C1 for the year 2006 in the formula field&#8221; title_text=&#8221;COUNTIF formula on cell C1 for the year 2006 in the formula field&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>Conditional Formatting in Excel &#8211; COUNTIF Formula<\/p>\n<p><strong>4.<\/strong> Set the format to the color of your preference. Here I have set it to yellow.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/countif-conditional-formatting-yellow-fill.webp&#8221; alt=&#8221;COUNTIF conditional formatting \u2014 COUNTIF rule set to Yellow Fill with Dark Yellow Text&#8221; title_text=&#8221;COUNTIF rule set to Yellow Fill with Dark Yellow Text&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>Conditional Formatting in Excel &#8211; Format COUNTIF Formula to yellow<\/p>\n<p>Once you click \u201cOK\u201d, you should be able to see all 2006 duplicates in yellow.<\/p>\n<h3>How to use Excel conditional formatting when applying multiple conditions?<\/h3>\n<p>We have now used an Excel formula, =COUNTIF, with the \u201cDuplicate Cells\u201d conditional formatting rule. Let\u2019s now illustrate how multiple conditions can be applied based on the type of data and the type of formatting we would like to apply.<\/p>\n<h4>AND formula to apply multiple conditions<\/h4>\n<p>The AND formula is also a logical function that tests the conditions to return one of the true\/false values, depending on whether they are met or not.<\/p>\n<p>To combine AND with IF inside a cell, see how to use the <a href=\"https:\/\/www.sheetgo.com\/blog\/excel-functions\/if-and-excel\/\">IF AND function combination in Excel<\/a>.<\/p>\n<p>Following the use case, let\u2019s say that I want to conditionally format the VIN (Vehicle Identification Number) values or registered cars from 2006 onwards and that have yielded a profit value above the minimum, $1,153.00.<\/p>\n<p><strong>1.<\/strong> Follow steps 1 &amp; 2 shown in the previous section to create a new rule. Don\u2019t forget to select the cell range you wish to apply the multiple conditions to.<\/p>\n<p><strong>2.<\/strong> Include the AND formula in the corresponding box. In this example, I&#8217;ll input the formula =AND(C1&gt;=2006, F1&gt;=1153). Type 1153 without the thousands separator, because Excel reads a comma inside a formula as the start of a new argument.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/excel-conditional-formatting-formula-and-rule.webp&#8221; alt=&#8221;Excel conditional formatting formula \u2014 AND formula on the YEAR and Profit 5% columns in the New Formatting Rule dialog&#8221; title_text=&#8221;AND formula on the YEAR and Profit 5% columns in the New Formatting Rule dialog&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>Conditional Formatting in Excel &#8211; Format using AND Formula<\/p>\n<p><strong>3.<\/strong> Change the formatting style to your preference. Here, I have chosen the \u201cGreen Fill with Dark Green Text\u201d.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/excel-conditional-formatting-formula-and-green-fill.webp&#8221; alt=&#8221;Excel conditional formatting formula \u2014 AND formula rule set to Green Fill with Dark Green Text&#8221; title_text=&#8221;AND formula rule set to Green Fill with Dark Green Text&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>Conditional Formatting in Excel &#8211; Format AND Formula to green<\/p>\n<p><strong>4.<\/strong> Press \u201cOK\u201d to apply your conditions. As shown below, Excel highlights in green only the cell values that meet the multiple conditions set in the AND formula.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/excel-conditional-formatting-formula-and-result.webp&#8221; alt=&#8221;Excel conditional formatting formula \u2014 VIN cells that meet both AND conditions highlighted in green&#8221; title_text=&#8221;VIN cells that meet both AND conditions highlighted in green&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>Conditional Formatting in Excel &#8211; AND Formula applied<\/p>\n<h3>How do I conditionally format a cell based on another cell in Excel?<\/h3>\n<p>What if, instead of applying a rule to a given value, you want to base it on the value of another cell in the spreadsheet? This cell value will act as the fixed value when applying the highlighting rule. If we continue with the car profit margin example, the highlight was included in the formatting when a numeric value exceeded the expected profit value. However, since the profit margin value might change over time, we might prefer to create a rule that strictly depends on a controlled value. This is how you can conditionally format an Excel cell based on another cell.<\/p>\n<p><strong>1.<\/strong> In the same worksheet, add your controlled value to a cell. Here, I will add my controlled value (\u2018Min profit\u2019) of $1,153.00 (Column H) to the right of my current table.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/excel-conditional-formatting-another-cell-min-profit.webp&#8221; alt=&#8221;Excel conditional formatting based on another cell \u2014 Min Profit of 1,153.00 US$ added in cell H2&#8243; title_text=&#8221;Min Profit of 1,153.00 US$ added in cell H2&#8243; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>Conditional Formatting in Excel &#8211; Based on another cell<\/p>\n<p><strong>2.<\/strong> Go to Conditional Formatting &gt; New Rule.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/excel-conditional-formatting-another-cell-new-rule.webp&#8221; alt=&#8221;Excel conditional formatting based on another cell \u2014 Conditional Formatting menu with New Rule selected&#8221; title_text=&#8221;Conditional Formatting menu with New Rule selected&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>Conditional Formatting in Excel &#8211; Create New Rule<\/p>\n<p><strong>3.<\/strong> A dialog box will pop up, select \u201cClassic\u201d in the \u201cStyle\u201d field, and \u201cUse a formula to determine which cells to format\u201d from the drop-down menu.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/excel-conditional-formatting-another-cell-use-formula.webp&#8221; alt=&#8221;Excel conditional formatting based on another cell \u2014 rule type list with Use a formula to determine which cells to format&#8221; title_text=&#8221;Rule type list with Use a formula to determine which cells to format&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>Conditional Formatting in Excel &#8211; Use formula to format<\/p>\n<p><strong>4.<\/strong> Below, in the formula field, select the cell containing your controlled value, here shown as &#8220;$H$2&#8221;. To highlight only the profits above that minimum, select the Profit 5% values starting at F2 and enter the comparison as the rule, for example =F2&gt;$H$2.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/excel-conditional-formatting-another-cell-h2-rule.webp&#8221; alt=&#8221;Excel conditional formatting based on another cell \u2014 =$H$2 entered in the formula field next to the Min Profit cell&#8221; title_text=&#8221;=$H$2 entered in the formula field next to the Min Profit cell&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>Conditional Formatting in Excel &#8211; New rule with controlled value<\/p>\n<p>Any value above the one specified will now be highlighted according to this conditional formatting rule. Now you know how to create a dynamic rule, as the minimum profit changes, the rule will adjust to the fixed value.<\/p>\n<p>[\/et_pb_text][et_pb_text module_id=&#8221;conclusion&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2>Conclusion<\/h2>\n<p>Conditional formatting in Excel has proven to be a versatile tool. As this guide has shown, the built-in rules already save you time on repetitive daily tasks by performing editing actions in bulk, such as color-coding or removing duplicate cells. If you would like Excel to perform more advanced actions, where multiple conditions or more sophisticated criteria need to be applied, it will also allow you to combine these with formulae.<\/p>\n<p>You can now save time in cleaning and organizing large or smaller datasets. Hopefully, this guide has shown that an Excel spreadsheet goes beyond a data storage system and represents an all-around reference for business tasks related to planning, organizing, and decision-making.<\/p>\n<p>If you would like to try conditional formatting functionality in Google Sheets, read our article on <a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-features\/conditional-formatting-based-on-another-cell-in-google-sheets\/\">how to use conditional formatting in Google Sheets<\/a>. To flag repeated entries there, see how to <a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-formulas\/highlight-duplicates-in-google-sheets\/\">highlight duplicates in Google Sheets<\/a>.<\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Aprenda a usar a formata\u00e7\u00e3o condicional no Excel, das regras integradas para real\u00e7ar c\u00e9lulas at\u00e9 escrever uma f\u00f3rmula de formata\u00e7\u00e3o condicional com COUNTIF, AND ou outra c\u00e9lula.<\/p>","protected":false},"author":2,"featured_media":264670,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_et_pb_use_builder":"on","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[51],"tags":[],"class_list":["post-264653","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-excel-features"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/posts\/264653","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/comments?post=264653"}],"version-history":[{"count":0,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/posts\/264653\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/media\/264670"}],"wp:attachment":[{"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/media?parent=264653"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/categories?post=264653"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/tags?post=264653"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}