[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


A1 format red if column C & D do not match in every row

Posted on 2011-05-12
Medium Priority
Last Modified: 2012-05-11
Leaving cell A1 blank.  Formula handled within the format formula section.

Thank you,
JP aaa A1-red-if-C-and-D-rows-do-not-al.xlsx
Question by:easycapital
LVL 39

Accepted Solution

nutsch earned 2000 total points
ID: 35749899
Use the following conditional formatting rule


LVL 10

Expert Comment

ID: 35749945
1.  Select the A cell of any row which you want to show the color.
(assuming that you selected row 4, i.e. cell A4, do the following.

2.  choose "Conditional Formatting" from "Format" menu

3. Select "Formula Is" in the condition dropdown list

4. Enter the following formula in the text field.

5. Click the format button and choose the format (Red)

6. OK and exit.

7. Copy cell A4 and select all the cells in the column A where you want to apply the formula.

8. Paste Special and choose "Format" only.

9. You are done.

Author Closing Comment

ID: 35749956
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.


Author Comment

ID: 35749971
Sorry Santababy. I missed your solution.  Thank you for the feedback.
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 35749976

Author Comment

ID: 35754617
Nutsch, not sure why SUMPRODUCT((C:C=D:D) and not C:C=C:C.
Also, the multiplying by 1 is to ensure they are all treated as numbers?

ssagibh. not understanding how subtracting, ensures that every row is the identical.

LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 35755305
Does it work or does it not work?

Author Comment

ID: 35756736
Yes it works.  I am just trying to understand the logic, as per my last comment.
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 35756905
Actually this might work in most cases.

The value of false is zero and the value of true is 1. I played with this and if all the numbers are equal their difference would be zero and their sum would be zero.

This, however, may fail in cases where, for example, c4 is 4 and d4 is 3 and then c5 is 3 and d5 is 4 and all the rest are the same. In this case the difference in row 4 would be 1 and the difference in row 5 would be -1 and summing all up would again give zero.

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question