Forum Discussion
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
- TheAntonyJul 29, 2020Iron Contributor
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.
- mathetesJul 29, 2020Gold Contributor
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!
- mathetesJul 28, 2020Gold Contributor
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.
- PsugirleJul 28, 2020Copper Contributor
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
- mathetesJul 28, 2020Gold Contributor
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.