Forum Discussion
Conditional formating using formula
- Sep 03, 2024
Select the data rows of the table on Sheet 1 (i.e. A2:G8).
Create a conditional formatting rule of type 'Use a formula to determine which cells to format' with formula
=ISNUMBER(XMATCH($A2, Sheet2!$C$2:$C$5))
or
=COUNTIF(Sheet2!$C$2:$C$5, $A2)
You can't use structured table references in conditional formatting rules. But Excel will automatically adjust the rule when the table expands/shrinks.
Could you attach a small sample workbook demonstrating the problem (without sensitive data), or if that is not possible, make it available through OneDrive, Google Drive, Dropbox or similar?
WHEN I AM APPLYING THE CONDITIONAL FORMATION FORMULA IT IS ONLY 1 CELL, I WANT IT TO HIGHLIGHT THE WHOLE ROW THE FORMULA IT IS USING =SEARCH ("OK", C2) CONDITION IS THAT WHEN I WILL TYPE "OK"IN COLUMN D
- HAROON1Nov 20, 2024Copper Contributor
ACTUALLY, I WAS ABLE TO SOLVE THE PROBLEM THROUGH THIS FORMULA =SEARCH ("OK", $D2) THIS FORMULA IS HEIGHLITING THE FULL ROW