ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Conditional Formatting Problem (https://www.excelbanter.com/excel-discussion-misc-queries/15425-conditional-formatting-problem.html)

msimpy22

Conditional Formatting Problem
 
I am building a timeline of college course based on time of class and day of
class. I have been semi successful in coloring each row at the approximate
time of the class, but I am unable to associate those times with the specific
days.

The column before the start and stop times has the day(s) of classes which
need to match the day row at the top of the spreadsheet. Any help here would
be appreciated. Also the row of days is merged cells above the hourly times.

Mohamed Shafiee

Hi,

Use this formula for conditional formatting:
=IF(TEXT(NOW(), "ddd") = C$2,
IF(AND(TIME(HOUR(NOW()),MINUTE(NOW()),SECOND(NOW() ))=$A3,
TIME(HOUR(NOW()),MINUTE(NOW()),SECOND(NOW()))<$B3) , 1, 0), 0)

In this formula
Column A is start time
Column B is the end time
Row 2 is the day

ie
C2 is today's date abbreviated to 3 characters
A3 is start time
B3 is end time

Hope that helped.

Shafiee.





All times are GMT +1. The time now is 02:13 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com