Contents

How to Use conditional formatting Formula in Excel A Comprehensive Guide

August 23, 2023 2.1K views

In our data-driven world, finding specific information within vast datasets can be a daunting task. But fear not, as Excel's conditional formatting emerges as the knight in shining armor to unravel this mystery. Unfortunately, many remain unaware of this powerful tool and its true potential.

Here, we embark on a journey of discovery, answering the pressing question of how to utilize conditional formatting formulas in Excel.

Part 1. Why Use Conditional Formatting in Excel?

Conditional formatting in Excel is a powerful feature that allows you to automatically change the appearance of cells based on specific conditions or criteria. By using conditional formatting, you can easily highlight certain values, make particular cells stand out, and visually emphasize important data. With conditional formatting, you can:

  • Spot Patterns and Trends: Identify patterns, trends, and anomalies effortlessly, revealing hidden insights for informed decision-making.

  • Highlight Key Data: Automatically emphasize critical information by highlighting cells that meet specific criteria, making essential data stand out.

  • Simplify Data Interpretation: Visual cues like data bars, color scales, and icon sets simplify the understanding of data values, streamlining data comprehension.

  • Enhance Data Visualization: Present data in an engaging manner, allowing stakeholders to grasp information at a glance.

You have a spreadsheet that contains sales data for your company. You want to highlight cells that contain sales that are above a certain target.

//res-academy.cache.wpscdn.com/images/seo_posts/20230823/cf20ad7bfff2886a6e77048f9ce91a07.png

Example


Recommend Luckluckgo
  • It lets you simulate and synchronize movements to move around likein

  • The joystick mode lets you navigate through the map

  • The tool supports all the latest IOS versions and models

logo

Part 2. Applying Conditional Formatting

Formatting Cell Value

To apply conditional formatting for cell values in Excel, follow these simple steps:

Step 1: Choose the range of cells to format.

Step 2: Go to the "Home" tab on the Excel ribbon. Select "Conditional Formatting" from the Styles group.

//res-academy.cache.wpscdn.com/images/seo_posts/20230823/3671618f0cd19f7994e7e50519d9a555.png

Home tab



Step 3: From the drop-down menu, select "Highlight Cells Rules".

//res-academy.cache.wpscdn.com/images/seo_posts/20230823/dd7255ddbb8a818659590aac2ed5dcab.png

Choose highlight



Step 4: Select the rule that best suits your needs, such as "Greater Than," "Less Than," "Equal To," or "Between."

//res-academy.cache.wpscdn.com/images/seo_posts/20230823/d775449aa142cfda14bb240089ee9277.png

Select rules



Step 5: Define the criteria and set the formatting style you want to apply, such as font color, background color, or cell borders.

//res-academy.cache.wpscdn.com/images/seo_posts/20230823/14cdd3eca9372bb4448c0416c689c200.png

define criteria



Step 6: Click "OK" to apply the conditional formatting to the selected cells.

//res-academy.cache.wpscdn.com/images/seo_posts/20230823/c3409e9014a983eec57daa23c5e2092c.png

Apply condition



Formatting Text

To apply conditional formatting for text in Excel, follow these steps:

Step 1: Select the range of cells containing the text you want to format.

Step 2: Go to the "Home" tab on the Excel ribbon. Click on "Conditional Formatting" in the Styles group.

//res-academy.cache.wpscdn.com/images/seo_posts/20230823/7cc35905674f7c9f232de2d1fbc2487b.png

Click Home



Step 3: Choose "Highlight Cells Rules" from the drop-down menu, then select More Rules

//res-academy.cache.wpscdn.com/images/seo_posts/20230823/9fa2e1c16b666f2f3904966243ffe8f2.png

select more rules



Step 4: Select the rule that suits your text formatting needs, such as "Text that Contains," "Text that Begins With," or "Text that Ends With."

//res-academy.cache.wpscdn.com/images/seo_posts/20230823/df00635836bd85ce746f3f368ab7f07d.png

Set your rule



Step 5: Enter the specific text or characters you want to format.

//res-academy.cache.wpscdn.com/images/seo_posts/20230823/bda16debe3d58ad8a9b8e8b9264d0425.png

enter text



Step 6: Set the formatting style for the selected text, such as font color, background color, or font style.

//res-academy.cache.wpscdn.com/images/seo_posts/20230823/e6d14691c1abe5d6c975ea08aaf17989.png

Set style



Step 7: Click "OK" to apply the conditional formatting to the text cells.

//res-academy.cache.wpscdn.com/images/seo_posts/20230823/88f4ffc2b6ae0bbfab1402fcf7285a40.png

Result



Part 3 : Conditional Formatting with Formulas

Values Comparison

Condition

Formula

Example

Greater Than

=A1 > 50

Highlight cell if the value in A1 is greater than 50

Less Than

=B2 < 100

Highlight cell if the value in B2 is less than 100

Equal To

=C3 = 30

Highlight cell if the value in C3 is equal to 30

Not Equal To

=D4 <> 35

Highlight cell if the value in D4 is not 35

Greater Than or Equal To

=E5 >= 75

Highlight cell if the value in E5 is greater than or equal to 75

Less Than or Equal To

=F6 <= 200="">

Highlight cell if the value in F6 is less than or equal to 200

Between

=AND(G7 > 50, G7 < 100)

Highlight cell if the value in G7 is between 50 and 100

Step 1: Select the range of cells to format.

Step 2: Go to the "Home" tab on the Excel ribbon. Select "Conditional Formatting" from the Styles group. Select "New Rule" from the drop-down list.

//res-academy.cache.wpscdn.com/images/seo_posts/20230823/563d23314721f2ed49c9b8321932de4e.png

Choose new rules



Step 3: Select "Use a formula to determine which cells to format."

Enter the formula that represents the comparison condition. For example, "=D2<45" will="" highlight="" cells="" with="" d2="" values="" less="" than="" 50.="">

//res-academy.cache.wpscdn.com/images/seo_posts/20230823/7c9631a674b8a257d771c4bd24aa6bc8.png

Enter formula



Step 4: Set the desired formatting style, such as font color, background color, or cell borders.

//res-academy.cache.wpscdn.com/images/seo_posts/20230823/9900af8bf92035a1435db7274ed2e65d.png

Choose style



Step 5: Click "OK" to apply the conditional formatting based on the formula.

//res-academy.cache.wpscdn.com/images/seo_posts/20230823/2c7248b825e2e309cc8d9ee64d12085f.png

the result



Today Function

Conditional formatting with the Today function allows you to highlight cells based on the current date. Follow these steps:

Step 1: Select the range of cells you want to format.

Step 2: Go to the "Home" tab on the Excel ribbon. Click on "Conditional Formatting" in the Styles group.

//res-academy.cache.wpscdn.com/images/seo_posts/20230823/38a0d6a565993d6455a85b647a549039.png

Click Conditional formatting



Step 3: Choose "New Rule" from the drop-down menu.

//res-academy.cache.wpscdn.com/images/seo_posts/20230823/1855d8fe4e0a77410f741b5b29cbd290.png

Pick new rule



Step 4: Select "Use a formula to determine which cells to format."

//res-academy.cache.wpscdn.com/images/seo_posts/20230823/a1e3fbb954da376f5397574686ef1837.png

Choose rule



Step 5: Enter the formula "=TODAY()" to check if the date in the cell matches the current date.

//res-academy.cache.wpscdn.com/images/seo_posts/20230823/f0bd826f9766832eecdb87d7221ac53a.png

Enter Today formula



Step 6: Set the desired formatting style for cells with today's date.

//res-academy.cache.wpscdn.com/images/seo_posts/20230823/aa394fa948bfa0082d716a0ac1cf7896.png

Format


Step 7: Click "OK" to apply the conditional formatting using the Today function.

//res-academy.cache.wpscdn.com/images/seo_posts/20230823/ce74893c2f3d727d2a516dbeb3282c96.png

Result



If Function

Conditional formatting with the If function in Excel allows you to format cells based on specific logical conditions. Follow these steps:

Step 1: Determine the range of cells to format.

Step 2: Go to the "Home" tab on the Excel ribbon. Click on "Conditional Formatting" in the Styles category.

//res-academy.cache.wpscdn.com/images/seo_posts/20230823/06cac0c2aed262348e6e860347d67bc4.png

Go to Home tab



Step 3: From the drop-down menu, select "New Rule".

//res-academy.cache.wpscdn.com/images/seo_posts/20230823/736f26a0f38a7ed9c53cf9d8cbd8079e.png

Select new rule



Step 4: Select "Use a formula to determine which cells to format."

//res-academy.cache.wpscdn.com/images/seo_posts/20230823/aa642481ceedeb72ea77c98e04b86a9e.png

Select Use a formula



Step 5: Enter the If function formula that evaluates to TRUE or FALSE for the desired condition.

Example =IF($C4=”Western”,TRUE,FALSE)

//res-academy.cache.wpscdn.com/images/seo_posts/20230823/a1f1bdc750caa1512b5acc9bae7a68b7.png

enter if function



Step 6: Set the desired formatting style for cells that meet the condition.

//res-academy.cache.wpscdn.com/images/seo_posts/20230823/d003fb3a6104007ff6d33a7e4900b636.png

Choose formatting



Step 7: Click "OK" to apply the conditional formatting using the If function.

//res-academy.cache.wpscdn.com/images/seo_posts/20230823/b892e2d0d399dbc6874b3040591f9913.png

Result



Part 4: A Free Alternative Choice——WPS Office

//res-academy.cache.wpscdn.com/images/seo_posts/20230608/1ec301c9459572eee26017cf620d4d47.png

WPS Office



When it comes to office productivity, WPS Office emerges as a remarkable free alternative that stands out from the crowd. WPS Office prides itself on its robust compatibility, seamlessly handling various file formats, including those from Microsoft Office.

This ensures that you can effortlessly open, edit, and share your documents with colleagues and collaborators without compatibility issues. Its user-friendly interface, resembling Microsoft Office, facilitates a smooth transition for those already familiar with the latter.

Trustpilotstars4.8
WPS Office- Free All-in-One Office Suite
  • Use Word, Excel, and PPT for FREE, No Ads.

  • Edit PDF files with the powerful PDF toolkit.

  • Microsoft-like interface. Easy to learn. 100% Compatibility.

  • Boost your productivity with WPS's abundant free Word, Excel, PPT, and CV templates.

5,820,008 User
avator
Algirdas Jasaitis
logo

FAQs

What is the Difference between Formatting and Conditional Formatting?

It allows you to highlight and differentiate your data in a variety of ways, much like regular cell formatting, by altering the fill color, font color, border styles, and so on. The distinction is that it is more adaptable and dynamic; as data changes, conditional forms immediately update to reflect the changes.

What Are the Disadvantages of Using Conditional Formatting?

Analysis based on formatting is not possible. For example, red cells cannot be counted (at least not easily). FORMAT is the end of the road... you can't perform any analysis with FORMAT.

What Are the 3 Main Visual Options for Conditional Formatting?

The main visual options for conditional formatting in Excel are:

  • Data Bars: Horizontal bars representing the cell's value, providing a quick visual of data magnitude.

  • Color Scales: Varying colors based on cell values, enabling easy identification of data ranges and trends.

  • Icon Sets: Small icons or symbols representing data conditions, enhancing data significance comprehension.

Summary

In conclusion, this comprehensive guide demystifies the art of conditional formatting in Excel, arming you with the knowledge to transform your data into captivating visual displays. Emphasizing the benefits of WPS Office as a free alternative, you'll unlock the true potential of Excel's magic. Embrace this revelation, and embark on a journey of unmatched productivity and success, shaping the future of your business with data-driven decisions.


15 years of office industry experience, tech lover and copywriter. Follow me for product reviews, comparisons, and recommendations for new apps and software.