Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / March 2007

Tip: Looking for answers? Try searching our database.

Conditional Formatting Help

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jay - 20 Feb 2007 09:44 GMT
Could anyone please advise how I can conditionally format cells so that the
highest & lowest value in the range is formatted.

I've tried 'Formula is MAX($A$1:$A$10)' but no joy.

Any help greatly appreciated.

Thanks,

Jay
MartinW - 20 Feb 2007 10:06 GMT
Hi Jay,

Try this, Select cells A1 to A10 go to CF
and set 'cell value is' 'equal to' and put your formula in the third box
=MAX($A$1:$A$10)

HTH
Martin
David McRitchie - 20 Feb 2007 15:17 GMT
Hi Jay,
See my page
  http://www.mvps.org/dmcritchie/excel/condfmt.htm

The selection has nothing to do with the range you are
picking the max from.    The selection indicates the cells
which are to be possibly formatted.   See the comments
near the top of the above web page written in RED.

Often you would select entire columns:
Select  Column A   if you only want cells in Column A formatted.
Select  all cells,  if you want entire rows formatted.

In your case you have a restricted range for the maximum so
you world probably only be  formatting the same range (cols or rows)
 Select  A1:A10   if you only want to format cells in Column A
 Select  1:10       if you want to format  entire row on a column A max hit.

In you conditional formatting the formula is based on a comparison
of the active cell (or the offset from the active cell to cells referenced
in your formula).     So if  you selected A1:A10   *and*  A1 is the
active cell.
   Conditional Formula 1:    =A1=MAX($A$1:$A$10)
But you can use the following instead which allows you to format
the entire row  if you  selected  rows 1:110
  Conditional Formula 1:    =$A1=MAX($A$1:$A$10)

Every cell that was in the selection when you entered C.F. is tested
with the formula  adjusted
   A1:  =A1=MAX($A$1:$A$10)
   A2:  =A2=MAX($A$1:$A$10)
   A3:  =A3=MAX($A$1:$A$10)
   ...
   A10:  =A10=MAX($A$1:$A$10)

If  you wanted the entire row formatted, then you would have
 selected rows 1:10 when you entered C.F., and the formulas would test
all cells in Row 1 test for:    =$A1=MAX($A$1:$A10)
all cells in Row 2 test for:    =$A2=MAX($a$1:$A10)
all cells in Row 3 test for:    =$A3=MAX($A$1:$A10)
...
all cells in Row 10 test for:    =$A10=MAX($A$1:$A10)

If you wanted to highlight each new maximum you could use
conditional formatting of  so that the upper cell range of the
MAX function varies as the row changes.
  =$A1=MAX($A$1:$A1)

---
HTH,
David McRitchie, Microsoft MVP - Excel
My Excel Pages:  http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page:        http://www.mvps.org/dmcritchie/excel/search.htm

> Could anyone please advise how I can conditionally format cells so that the
> highest & lowest value in the range is formatted.
[quoted text clipped - 6 lines]
>
> Jay
Jay - 01 Mar 2007 12:46 GMT
Hi Dave,

Thanks a lot for the comprehensive response - it's really helped clarify my
understanding.  And I've just printed  copies of your page and distributed
to my staff as it's an excellent learning resource.

thanks again,

Jay

> Hi Jay,
> See my page
[quoted text clipped - 62 lines]
>>
>> Jay
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.