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 / December 2005

Tip: Looking for answers? Try searching our database.

Conditional formatting

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Barney - 30 Dec 2005 10:57 GMT
Hi,
In a row of 6 numbers I want to highlight the 3 largest numbers.  If the row
contains 7 or 8 numbers, I want to highlight the 4 largest of those numbers.
If the row contains 9 or 10 numbers, I want to highlight the 5 largest of
those numbers.  Any suggestions on how to make this work?
Thanks in advance, Barney
Dirk Van de moortel - 30 Dec 2005 11:37 GMT
> Hi,
> In a row of 6 numbers I want to highlight the 3 largest numbers.  If the row
> contains 7 or 8 numbers, I want to highlight the 4 largest of those numbers.
> If the row contains 9 or 10 numbers, I want to highlight the 5 largest of
> those numbers.  Any suggestions on how to make this work?

Supposing the numbers are in column A, then you can do this:

   If
       Cell Value is
       greater than or equal to
       =MEDIAN(A:A)
   then
      highlight

Dirk Vdm
Bob Phillips - 30 Dec 2005 13:00 GMT
I answered in other thread, but copied here for info

Conditional Formatting will do that.

Let's start by assuming the data is in row 21, then

Select row 21
Menu Format>Conditional Formatting
Change Condition 1 to Formula Is
Add a formula of
=ISNUMBER(MATCH(A21,LARGE($21:$21,ROW(INDIRECT("1:"&INT((COUNTA($21:$21)+1)/
2)))),0))
Click the Format button
Select the Pattern Tab
Select an appropriate highlighting colour
OK
OK

Signature

HTH

RP
(remove nothere from the email address if mailing direct)

> Hi,
> In a row of 6 numbers I want to highlight the 3 largest numbers.  If the row
> contains 7 or 8 numbers, I want to highlight the 4 largest of those numbers.
> If the row contains 9 or 10 numbers, I want to highlight the 5 largest of
> those numbers.  Any suggestions on how to make this work?
> Thanks in advance, Barney
Dirk Van de moortel - 30 Dec 2005 13:39 GMT
> I answered in other thread, but copied here for info
>
[quoted text clipped - 13 lines]
> OK
> OK

Select row 21
Menu Format, Conditional formatting
   Cell Value is
   greater than or equal to
   =MEDIAN(21:21)

Dirk Vdm
 
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.