Is this possible?

  • Thread starter Thread starter Melissa
  • Start date Start date
M

Melissa

I use Excel at my job as a dispatch board that lists all of our tasks for the
day and what time we need to start it and complete it by. Is there a way to
format a column so that when we're reaching the time, it will change the
background color?
We use military time...
I would like it to change color 15 minutes prior to the time and again when
it is that time. Is this possible?
 
Select the range of cells of which you want to change the colors. Then
go to the Format menu and choose Conditional Formatting. In that
dialog, change "Cell Value Is" to "Formula Is" and enter the following
in the formula box:

=IF(A1<(NOW()-TODAY()),(NOW()-TODAY()-A1)<TIME(0,15,0))

Change all the references to A1 to the first cell in the range of
cells to be colored. Then, click the Format button to select the
format of the cells. This custom format will be applied if the current
time of day is less than 15 minutes prior to the time in A1. It will
not apply the format if the current time of day is later than the time
in A1.

Cordially,
Chip Pearson
Microsoft MVP
Excel Product Group
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top