New Contributor

# Excel help - Rule and Conditional Formatting

I have a basic excel workbook with two sheets. Sheet “A” which is tracking all my “cases.” This includes names, phone numbers and addresses. On sheet “B,” titled “larger sites” I have 40 specific addresses that if there were to be entered into sheet “A,” I would like a formula to turn that column a color so it will stand out. I need help with knowing what that formula would look like. I know it’s conditioning formal and a rule with creating your formula...but what would lit looks like and how would I get column “H” (column for address) to cross reference sheet “B” if any of those addresses are inputted?

Any help would be WONDERFUL!! Thank you!!
8 Replies

# Re: Excel help - Rule and Conditional Formatting

@Psugirle , something like the attached? Used the below formula in the conditional formatting rule.

``=COUNTIFS('All Cases'!\$H\$2:\$H\$31,H2)``

# Re: Excel help - Rule and Conditional Formatting

Thanks. I will attempt tomorrow and will let you know. Does it matter if on Sheet “A” the address is in column H, but on sheet “B” all the addresses I want to compare too are in column “A?” Also, I have 40 addresses and I listed them individually on each row vertically. Will that change the formula you provided?

# Re: Excel help - Rule and Conditional Formatting

I don't think that worked, or I just might not be doing it correctly. Here is my actual spreadsheet. I am looking for the rule that if any of the addresses listed on "larger sites" sheet is inputted on "sheet1" in column "G" that the row would change a different color so it would alert me.@Psugirle

# Re: Excel help - Rule and Conditional Formatting

This isn't exactly what you requested. I just used the MATCH function plus conditional formatting to highlight the (new) cell adjacent to the street address when it matches one of the larger site street addresses.

So it still highlights, but without intruding into the entire row.

# Re: Excel help - Rule and Conditional Formatting

Thank you. Sorry, I was trying my best to explain. So, I have to add another column? There is no way to make the "WF Street Address" just highlight the color to indicate large site? @mathetes

# Re: Excel help - Rule and Conditional Formatting

Your explanation was perfectly clear. No need to apologize.

There no doubt is a way to do what you asked. Conditional formatting is tricky enough, in my experience, that if I can get anything to work when referring to comparisons between cells (or ranges), I'm happy. I was not able to figure out (and continue to be unable to figure out) how to get the MATCH into the conditional formatting rule itself for the exact column containing the address. Whereas doing it in an adjacent column that contains the MATCH function, it was straightforward.

I'll be delighted to have somebody else show us both how to accomplish exactly what you're asking.

# Re: Excel help - Rule and Conditional Formatting

@Psugirle , Let me know if this works for you. I used the new XLOOKUP function. If you don't have XLOOKUP, it can work with other lookup functions.

Basically CF needs a TRUE or a FALSE so I always play around with the formulas on the worksheet and then paste into the CF dialog when everything works. I left the calculations on the second sheet for you to review and change as you see fit.

# Re: Excel help - Rule and Conditional Formatting

Well done!

And I like this: Basically CF needs a TRUE or a FALSE so I always play around with the formulas on the worksheet and then paste into the CF dialog when everything works.

It's next to impossible to do that playing around (especially for a situation like this one) IN the CF dialog box itself. So, again, well done!