• Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us

No products in the cart.

  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us

No products in the cart.

  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us

No products in the cart.

  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us
Excel

Excel Conditional Formatting Based on Another Column

0 Comments

Excel Conditional Formatting Based on Another Column. Sometimes, you may need to format cells or columns in Excel based on the values in another column. If you’re in such a situation, this guide will show you how to format cells based on another column’s values using an example.

Example: Highlighting months with sales higher than the average

Let’s say we have data on sales made by different dealerships in different months and years. We want to highlight sales in 2019 that are greater than sales in 2018. Excel Conditional Formatting 1

To achieve this, follow these steps:

  1. Select the range D2:D12 (sales of 2019).
  2. Go to the Home tab, click on Conditional Formatting, and select New Rule.
  3. In the New Formatting Rule dialog box, choose “Use a formula to determine which cells to format.”Excel Conditional Formatting 2
  4. In the formula box, enter the following formula for Excel formatting: =$D2>$C2
  5. Select the formatting you want for cells that meet the condition. In this example, we will choose a green fill.Excel Conditional Formatting 3
  6. Click the OK button.

That’s it! All the values in the 2019 sales column that are greater than the corresponding values in the 2018 sales column will be highlighted with a green fill.

How does it work?

It’s simple. First, you select the range where you want the formula to apply. Then, you use a formula to determine which cells within that range should be formatted. In this case, the formula is $D2>$C2. The dollar sign ($) locks the column reference (D) while allowing the row reference (2) to change as the formatting is applied to other cells. The formula compares each cell in the range (D2:D12) with the corresponding cell in the previous year’s sales column (C2:C12). If a cell in 2019 sales is greater than the corresponding cell in 2018 sales, it will be formatted with the chosen style (green fill).

If you want to highlight the months instead of the 2019 sales, you can directly change the “applies to” range to A2:A12.

  1. Select any cell in the range D2:D12.
  2. Go to Conditional Formatting and click on “Manage Rules.”
  3. Change the range in the “Applies to” box to A2:A12.Excel Conditional Formatting 4
  4. Click the OK button.Excel Conditional Formatting 5

You will see that the formatting is now applied to the specified range. Similarly, you can format any range based on the values in any column in Excel. The column can even be on a different sheet; you just need to mention the range. You can also specify non-contiguous ranges by using commas between the ranges in the “applies to” section.Excel Conditional Formatting 6

So, this is how you can apply conditional formatting in Excel based on another column. It might seem a bit tricky, but in practice, it’s quite straightforward. You just need to make a few adjustments. I hope this article has provided enough explanation to help you with conditional formatting in Excel. If you have any doubts, feel free to mention them in the comments section below.

Rate this post
29
274 Views
Microsoft 365 now allows you to sign PDF files on your mobile phonePrevMicrosoft 365 now allows you to sign PDF files on your mobile phoneMay 31, 2023
Guide To Setting Alarms On Windows 10June 1, 2023Guide To Setting Alarms On Windows 10Next

Leave a Reply Cancel reply

You must be logged in to post a comment.

Buy Windows 11 Professional MS Products CD Key
Buy Office 2021 Professional Plus Key Global For 5 PC
Top rated products
  • Kaspersky Total Security 2021 1 year 5 devices key Global Kaspersky Total Security 2021 1 year 5 devices key Global
    Rated 5.00 out of 5
    $46.00
  • Avast Premium Security 2021 Avast Premium Security 2021 1 Device 1 Year Global
    Rated 5.00 out of 5
    $11.00
  • Trend Micro Internet Security 3 Devices 1 Year Key GLOBAL Trend Micro Internet Security 3 Devices 1 Year Key GLOBAL
    Rated 5.00 out of 5
    $17.00
  • Windows 11 Pro Key Global Windows 11 Pro Key Global
    Rated 5.00 out of 5
    $6.00
  • AVG Internet Security 2021 10 Devices 2 Years Global AVG Internet Security 2021 10 Devices 2 Years Global
    Rated 5.00 out of 5
    $42.20
Products
  • Windows Server 2022 Standard Key Global Windows Server 2022 Standard Key Global
    Rated 4.10 out of 5
    $7.00
  • microsoft office home and business 2019 pcmac key Microsoft Office Home And Business 2019 (MAC) key bind to your Microsoft account
    Rated 4.95 out of 5
    $30.00
  • AVG Internet Security 2021 1 Device 1 Year Global AVG Internet Security 2021 1 Device 1 Year Global
    Rated 5.00 out of 5
    $11.00
  • Windows Server2008 R2 Remote Desktop Services device connections (20)cal Windows Server2008 R2 Remote Desktop Services device connections (20)cal $29.00
  • Kaspersky Internet Security 2021 1 year 5 devices key Global Kaspersky Internet Security 2021 1 year 5 devices key Global
    Rated 5.00 out of 5
    $45.00
  • Windows Server 2016 Standard Key Global Windows Server 2016 Standard Key Global
    Rated 4.80 out of 5
    $10.00
  • Project Standard 2021 Microsoft Project Standard 2021 - 1 PC $13.00
  • office-professional-2016-international Microsoft Office Professional Plus 2016 Retail CD Key
    Rated 4.92 out of 5
    $13.00
  • Windows Server 2019 Essentials Key Global Windows Server 2019 Essentials Key Global
    Rated 4.71 out of 5
    $7.00
  • Microsoft Office Professional Plus 2019 CD Key Global Microsoft Office Professional Plus 2019 CD Key Global - 5 PC
    Rated 4.92 out of 5
    $32.00
Product categories
  • Anti Virus
  • Microsoft Office
  • Microsoft Project
  • Microsoft Visio
  • Microsoft Visual
  • Microsoft Windows
  • Other Software
  • Uncategorized

Buffcom.net always brings the best digital products and services to you. Specializing in Office Software and online marketing services

BIG SALE 50% IN MAY

Microsoft Office
Microsoft Windows
Anti-Virus
Contact Us

Visit Us:

125 Division St, New York, NY 10002, USA

Mail Us:

buffcom.net@gmail.com

TERMS & CONDITIONS | PAYMENT GUIDE  | SHIPPING POLICY  | REFUND POLICY

Copyright © 2019 buffcom.net  All Rights Reserved.