Conditional format row if time is present in one cell

SimonHughes

Active Member
Joined
Sep 16, 2009
Messages
452
Office Version
  1. 365
Platform
  1. Windows
Hello, I would like to conditionally format the row where a time is present in any one of the Monday to Sunday cells (C3 to I3) so with 08h30 in cell C3 below, the whole row would be formatted (grey fill). Using MS 365.

ABCDEFGHI
RiderCatMonTueWedThuFriSatSun
NAMEBEL08h30

Many thanks
Simon
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Let's say that your columns of entries for those days is C to I, and your first row of data entry is row 2.
Then, select all the rows you want to apply this to, starting with row 2, and enter this Conditional Formatting formula:
Excel Formula:
=COUNTA($C2:$I2)>0
and select your grey fill color.
 
Upvote 0
Solution
Let's say that your columns of entries for those days is C to I, and your first row of data entry is row 2.
Then, select all the rows you want to apply this to, starting with row 2, and enter this Conditional Formatting formula:
Excel Formula:
=COUNTA($C2:$I2)>0
and select your grey fill color.
That's it - works perfectly. Many thanks indeed Joe!
 
Upvote 0
You are welcome.
Glad I was able to help!
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,951
Members
449,095
Latest member
nmaske

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