Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Conditional Formatting within a Time Sheet

Can someone help me with this one:
I am using a Excel time sheet with input in time format. I would like a
formula that can extract out the minuets and dived it in to three categories:
1-10 minutes and 31-40 minutes conditional formatting in red color
11-20 minutes and 41-50 minutes conditional formatting in yellow color
21-30 minutes and 51-59 minutes conditional formatting in green color.

Example: Time 02.08.00 should be stript down to 00.08.00 and then color the
cell in red.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Conditional Formatting within a Time Sheet

I assume that if minute is 0 it should be green, so effectively 51-60 to be
consistent with the other conditions?

For the red, CF/ Formula is/
=AND(MOD(MINUTE(A1),30)=1,MOD(MINUTE(A1),30)<=10)
For the yellow, CF/ Formula is/
=AND(MOD(MINUTE(A1),30)=11,MOD(MINUTE(A1),30)<=20 )
For the green, CF/ Formula is/
=OR(MOD(MINUTE(A1),30)=21,MOD(MINUTE(A1),30)=0)

A reminder that Excel time format is not 02.08.00, but 02:08:00

Note also that if you do as you ask and work just with the minutes as you
have specified, 02:40:30 would be red, and the transition to yellow would be
between 02:40:59 and 02:41:00
--
David Biddulph

"ZigZak" wrote in message
...
Can someone help me with this one:
I am using a Excel time sheet with input in time format. I would like a
formula that can extract out the minuets and dived it in to three
categories:
1-10 minutes and 31-40 minutes conditional formatting in red color
11-20 minutes and 41-50 minutes conditional formatting in yellow color
21-30 minutes and 51-59 minutes conditional formatting in green color.

Example: Time 02.08.00 should be stript down to 00.08.00 and then color
the
cell in red.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Conditional Formatting within a Time Sheet

Hi David
Exactly what I need. Thank you.



David Biddulph skrev:

I assume that if minute is 0 it should be green, so effectively 51-60 to be
consistent with the other conditions?

For the red, CF/ Formula is/
=AND(MOD(MINUTE(A1),30)=1,MOD(MINUTE(A1),30)<=10)
For the yellow, CF/ Formula is/
=AND(MOD(MINUTE(A1),30)=11,MOD(MINUTE(A1),30)<=20 )
For the green, CF/ Formula is/
=OR(MOD(MINUTE(A1),30)=21,MOD(MINUTE(A1),30)=0)

A reminder that Excel time format is not 02.08.00, but 02:08:00

Note also that if you do as you ask and work just with the minutes as you
have specified, 02:40:30 would be red, and the transition to yellow would be
between 02:40:59 and 02:41:00
--
David Biddulph

"ZigZak" wrote in message
...
Can someone help me with this one:
I am using a Excel time sheet with input in time format. I would like a
formula that can extract out the minuets and dived it in to three
categories:
1-10 minutes and 31-40 minutes conditional formatting in red color
11-20 minutes and 41-50 minutes conditional formatting in yellow color
21-30 minutes and 51-59 minutes conditional formatting in green color.

Example: Time 02.08.00 should be stript down to 00.08.00 and then color
the
cell in 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
Conditional Formatting with Time Colin[_4_] Excel Worksheet Functions 6 November 27th 09 01:28 PM
HELP with conditional formatting and a max time YS1107 Excel Worksheet Functions 2 June 15th 09 03:47 AM
conditional formatting time Dgwood90 Excel Discussion (Misc queries) 7 December 31st 08 04:39 AM
Conditional formatting and time mndpy Excel Worksheet Functions 1 September 4th 07 07:46 PM
conditional formatting with time values Access Idiot Excel Discussion (Misc queries) 2 September 13th 05 03:29 PM


All times are GMT +1. The time now is 08:09 AM.

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

About Us

"It's about Microsoft Excel"