A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

HELP with conditional formatting and a max time



 
 
Thread Tools Display Modes
  #1  
Old June 15th, 2009, 02:44 AM posted to microsoft.public.excel.worksheet.functions
YS1107
external usenet poster
 
Posts: 16
Default HELP with conditional formatting and a max time

I have a spreadsheet that I am trying to get 8 cells to conditional format
based on the "highest" condition of one cell. I got 2 of the three conditions
to format but I can't get the "middle" condition to work. Here is what I have:
=MAX($C$5:$C$8)=0.833333333333333 this turns all 8 cells "GREEN"
="MAX($C$5:$C$8)0.833333333333333" this is suppose to turn all 8 cells
"YELLOW" but this one does not work
="MAX($C$5:$C$8)0.791666666666667" this turns all 8 cells "RED"

I have drop downs in the cells to pick "times" and based on the lastest time
it determines the "Color" of all cells. If any of the cells, c5-c8, are 8pm
or later all cells are green. If the latestYS1107 time is 7pm or 730pm then I
want all cells to be yellow and if all cells are 630pm or earlier then all
cells red.

I hope this is clear enough, but I don't fully understand excel but I could
use some help. Thanks in advance!
  #2  
Old June 15th, 2009, 03:31 AM posted to microsoft.public.excel.worksheet.functions
Shane Devenshire[_3_]
external usenet poster
 
Posts: 3,333
Default HELP with conditional formatting and a max time

Hi,

Your conditions and your discussion don't match each other - if any cell
greater then 8 PM:

=MAX($C$5:$C$8)=20/24


The second conditon (is you want all cells a certain color if the max of the
range is between 7 and 7:30?) If so

=AND(MAX($C$5:$C$8)=19/24,MAX($C$5:$C$8)=19.5/24)

again I don't think this

The third conditon you say if ALL cells are earlier than 6:30, but you again
use MAX which suggests you are looking for any cell being before 6:30??

If you are looking for any cell beign before 6:30 then

=OR($C$5:$C$818.5/24)

If you are looking for all cells 6:30 then

=AND($C$5:$C$818.5/24)

If you are looking for the latest cell being before 6:30 then

=MAX($C$5:$C$8)18.5/24
--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"YS1107" wrote:

I have a spreadsheet that I am trying to get 8 cells to conditional format
based on the "highest" condition of one cell. I got 2 of the three conditions
to format but I can't get the "middle" condition to work. Here is what I have:
=MAX($C$5:$C$8)=0.833333333333333 this turns all 8 cells "GREEN"
="MAX($C$5:$C$8)0.833333333333333" this is suppose to turn all 8 cells
"YELLOW" but this one does not work
="MAX($C$5:$C$8)0.791666666666667" this turns all 8 cells "RED"

I have drop downs in the cells to pick "times" and based on the lastest time
it determines the "Color" of all cells. If any of the cells, c5-c8, are 8pm
or later all cells are green. If the latestYS1107 time is 7pm or 730pm then I
want all cells to be yellow and if all cells are 630pm or earlier then all
cells red.

I hope this is clear enough, but I don't fully understand excel but I could
use some help. Thanks in advance!

  #3  
Old June 15th, 2009, 03:47 AM posted to microsoft.public.excel.worksheet.functions
YS1107
external usenet poster
 
Posts: 16
Default HELP with conditional formatting and a max time

THANK YOU SHANE!!!

In a matter of 30 minutes you have solved over 3 months of heart ache for me
and I truly THANK YOU for your expertise. THANK YOU SHANE!! You are a
GENIUS!!!

"Shane Devenshire" wrote:

Hi,

Your conditions and your discussion don't match each other - if any cell
greater then 8 PM:

=MAX($C$5:$C$8)=20/24


The second conditon (is you want all cells a certain color if the max of the
range is between 7 and 7:30?) If so

=AND(MAX($C$5:$C$8)=19/24,MAX($C$5:$C$8)=19.5/24)

again I don't think this

The third conditon you say if ALL cells are earlier than 6:30, but you again
use MAX which suggests you are looking for any cell being before 6:30??

If you are looking for any cell beign before 6:30 then

=OR($C$5:$C$818.5/24)

If you are looking for all cells 6:30 then

=AND($C$5:$C$818.5/24)

If you are looking for the latest cell being before 6:30 then

=MAX($C$5:$C$8)18.5/24
--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"YS1107" wrote:

I have a spreadsheet that I am trying to get 8 cells to conditional format
based on the "highest" condition of one cell. I got 2 of the three conditions
to format but I can't get the "middle" condition to work. Here is what I have:
=MAX($C$5:$C$8)=0.833333333333333 this turns all 8 cells "GREEN"
="MAX($C$5:$C$8)0.833333333333333" this is suppose to turn all 8 cells
"YELLOW" but this one does not work
="MAX($C$5:$C$8)0.791666666666667" this turns all 8 cells "RED"

I have drop downs in the cells to pick "times" and based on the lastest time
it determines the "Color" of all cells. If any of the cells, c5-c8, are 8pm
or later all cells are green. If the latestYS1107 time is 7pm or 730pm then I
want all cells to be yellow and if all cells are 630pm or earlier then all
cells red.

I hope this is clear enough, but I don't fully understand excel but I could
use some help. Thanks in advance!

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:51 PM.


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