Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 115
Default Conditional formatting

Hello, All!

I did not think this would be a problem but I am having
difficulty setting it up. If the answer is RTFM, please tell me
where :-)

What I want to do is to have the contents of cell colored red if
it is greater than the maximum of all previous values in the
column.

TIA

James Silverton
Potomac, Maryland

E-mail, with obvious alterations:
not.jim.silverton.at.verizon.not

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Conditional formatting

With the data in A1:Axxx, I selected A2:Axxx (omitted A1).

Then format|conditional formatting
formula is:
=AND(A2<"",A2=MAX($A$1:A2))
And gave it a red format

I ended up with quite a few red cells in my test data. But those red cells were
the highest so far.



James Silverton wrote:

Hello, All!

I did not think this would be a problem but I am having
difficulty setting it up. If the answer is RTFM, please tell me
where :-)

What I want to do is to have the contents of cell colored red if
it is greater than the maximum of all previous values in the
column.

TIA

James Silverton
Potomac, Maryland

E-mail, with obvious alterations:
not.jim.silverton.at.verizon.not


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 115
Default Conditional formatting

Dave wrote on Sat, 07 Jul 2007 09:27:26 -0500:

DP Then format|conditional formatting
DP formula is:
DP =AND(A2<"",A2=MAX($A$1:A2))
DP And gave it a red format

DP I ended up with quite a few red cells in my test data. But
DP those red cells were the highest so far.

DP James Silverton wrote:
??
?? Hello, All!
??
?? I did not think this would be a problem but I am having
?? difficulty setting it up. If the answer is RTFM, please
?? tell me where :-)
??
?? What I want to do is to have the contents of cell colored
?? red if it is greater than the maximum of all previous
?? values in the column.

Thanks Dave,

I started with =AND($U36<"",$U36MAX($U$34:$U35)), the data
beginning in U34, and it works well, happily extending itself to
highlight the current maximum as the table in added to. It is
not important that there are earlier red numbers.

I guess I had forgotten that the function had to be given two
values for true and false. I was using
=IF( $U36MAX($U$34:$U35)).
It seemed to me that logically it should work because the answer
can be true or false but I was wrong.

Come to think of it, =IF( $U36MAX($U$34:$U35), 1,0) seems to
work too.

Thanks again,


James Silverton
Potomac, Maryland

E-mail, with obvious alterations:
not.jim.silverton.at.verizon.not

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 222
Default Conditional formatting

You might also try;

in A1 Conditional Formating New Rule
=A1=MAX($A$1:$A$Axxx)
Applies to: =$A$1:$A$xxx

Format Fill Color

This will return the single maximum value unless there is more than one of
the highest value, in which case it will return all

Bob

"Dave Peterson" wrote:

With the data in A1:Axxx, I selected A2:Axxx (omitted A1).

Then format|conditional formatting
formula is:
=AND(A2<"",A2=MAX($A$1:A2))
And gave it a red format

I ended up with quite a few red cells in my test data. But those red cells were
the highest so far.



James Silverton wrote:

Hello, All!

I did not think this would be a problem but I am having
difficulty setting it up. If the answer is RTFM, please tell me
where :-)

What I want to do is to have the contents of cell colored red if
it is greater than the maximum of all previous values in the
column.

TIA

James Silverton
Potomac, Maryland

E-mail, with obvious alterations:
not.jim.silverton.at.verizon.not


--

Dave Peterson

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Conditional formatting

If excel can interpret something as true/false when it's expecting a true/false
response, it'll help out.

And in your case (1 or 0), 0 will be treated as false and non-zero will be
treated as true.

The reason I wanted two conditions (a2<"" and a2=max($a$1:a2)) was so that
empty cells wouldn't be shaded red.




James Silverton wrote:

Dave wrote on Sat, 07 Jul 2007 09:27:26 -0500:

DP Then format|conditional formatting
DP formula is:
DP =AND(A2<"",A2=MAX($A$1:A2))
DP And gave it a red format

DP I ended up with quite a few red cells in my test data. But
DP those red cells were the highest so far.

DP James Silverton wrote:
??
?? Hello, All!
??
?? I did not think this would be a problem but I am having
?? difficulty setting it up. If the answer is RTFM, please
?? tell me where :-)
??
?? What I want to do is to have the contents of cell colored
?? red if it is greater than the maximum of all previous
?? values in the column.

Thanks Dave,

I started with =AND($U36<"",$U36MAX($U$34:$U35)), the data
beginning in U34, and it works well, happily extending itself to
highlight the current maximum as the table in added to. It is
not important that there are earlier red numbers.

I guess I had forgotten that the function had to be given two
values for true and false. I was using
=IF( $U36MAX($U$34:$U35)).
It seemed to me that logically it should work because the answer
can be true or false but I was wrong.

Come to think of it, =IF( $U36MAX($U$34:$U35), 1,0) seems to
work too.

Thanks again,

James Silverton
Potomac, Maryland

E-mail, with obvious alterations:
not.jim.silverton.at.verizon.not


--

Dave Peterson
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 based on cell formatting Totom Excel Worksheet Functions 3 January 20th 07 02:02 PM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 0 January 15th 07 04:35 PM
Conditional Formatting changetires Excel Discussion (Misc queries) 1 July 27th 06 08:34 AM
Conditional Formatting that will display conditional data BrainFart Excel Worksheet Functions 1 September 13th 05 05:45 PM
conditional formatting? Deb Excel Discussion (Misc queries) 7 February 4th 05 09:19 PM


All times are GMT +1. The time now is 09:37 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"