Conditional Formatting and setting new rules

leahschadeck5

New Member
Joined
Jan 30, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hello, I am looking to Create a New Rule and I need to use a formula to determine the cells i want to format, but after hours of research, I have not been able find the correct formula.
I currently have a table Column Length A to K. Row Length 1 to 48. Row 1 is all headers.

When a date is entered into Column K I want that row to change color.
example being: if cell K12 has 1/21/22 entered in it. I would like A12:J12 to change color.
if K44 has a date entered, I would like A44:J44 to change color.

I used : formula =$K$2 [format] Applies to =$A$2:$J$2
and that seemed to work for 1 of the cells in Column K. I am hoping that I wouldnt have to list a new rule for every cell in Column K, and there has to be a formula that applied to the whole table base on Column K not being blank.
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Hi,

Start selecting your range in Column A where your data starts, in my sample below, A2, select entire range you want CF, in my sample, A2:J7
CF, using formula, enter formula as shown, in my sample =$K2 (change cell reference according to your First data Row, $K2, absolute referecing for Column Only, Not row), Format>Fill>OK

Book3.xlsx
ABCDEFGHIJK
1Header 1Header 2Header 3Header 4Header 5Header 6Header 7Header 8Header 9Header 10Date?
21/30/2022
3
41/15/2022
51/16/2022
6
71/31/2022
Sheet975
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:J7Expression=$K2textNO
 
Upvote 0
Hi,

Start selecting your range in Column A where your data starts, in my sample below, A2, select entire range you want CF, in my sample, A2:J7
CF, using formula, enter formula as shown, in my sample =$K2 (change cell reference according to your First data Row, $K2, absolute referecing for Column Only, Not row), Format>Fill>OK

Book3.xlsx
ABCDEFGHIJK
1Header 1Header 2Header 3Header 4Header 5Header 6Header 7Header 8Header 9Header 10Date?
21/30/2022
3
41/15/2022
51/16/2022
6
71/31/2022
Sheet975
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:J7Expression=$K2textNO
Sorry I am a bit new to this...
What should my formula be then?
 
Upvote 0

Forum statistics

Threads
1,215,676
Messages
6,126,171
Members
449,296
Latest member
tinneytwin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top