Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How to change the font color using the Time format in a formula

I'm trying to create a formula using the time function. What I want is for
the font color to change. When I subtracting the 2 times from each other and
the difference is greater than 5 minutes, I want the font color to change to
red.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,202
Default How to change the font color using the Time format in a formula

I'm trying to create a formula using the time function. What I want is for
the font color to change. When I subtracting the 2 times from each other
and
the difference is greater than 5 minutes, I want the font color to change
to
red.


Select the full range of cells (or the entire column) where your two times
are subtracted. Next, click on Format/Conditional Formatting in Excel's menu
bar. In the dialog box that comes up, leave the first drop-down field as is
(it should say Cell Value Is); in the second drop-down field, choose
"greater than" from the list. Put 00:05 in the third field (eventually,
Excel will change this to 0.00347222222222222, so you could put that in
instead). Now, click the Format button and on the Font tab, select the color
you want from the Color drop-down. Ok your way back to the spreadsheet. If
any of the cells you applied the Conditional Formatting to become greater
than 5 minutes, their font color will change to the color you selected. For
future reference, you might want to look around in the Format Cells palette
that came up when you clicked the Format button to see what other formatting
options are available to you.

Rick

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default How to change the font color using the Time format in a formula

Do you have 2 cells holding the times like this:

A1 = 10:00 PM
B1 = 10:15 PM

And then another cell holding a formula:

C1: =B1-A1

Need more detailed info.

--
Biff
Microsoft Excel MVP


"softballump" wrote in message
...
I'm trying to create a formula using the time function. What I want is for
the font color to change. When I subtracting the 2 times from each other
and
the difference is greater than 5 minutes, I want the font color to change
to
red.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change font/cell color by Formula exutable Excel Worksheet Functions 4 April 24th 06 03:08 PM
Change color of font base on time range deathzorro Excel Discussion (Misc queries) 2 January 10th 06 07:58 AM
EXCEL Workbook tab format options: change color or font fstudley Excel Discussion (Misc queries) 3 March 3rd 05 06:48 PM
Formula results in font color change Jeff P Excel Worksheet Functions 2 November 1st 04 08:28 PM
Can Formula Change the Font Color? Kenjiro Yagi Excel Worksheet Functions 2 October 28th 04 10:34 PM


All times are GMT +1. The time now is 12:07 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"