+ Reply to Thread
Results 1 to 4 of 4

conditional formatting

Hybrid View

  1. #1
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: conditional formatting

    Quote Originally Posted by xceed
    I now want to conditionally format these 3...
    The problem with using the standard selection of largest is that if the 4th highest is the same as the third, 4 are highlighted (1st row in attached).
    Highlight A2:I17 (selecting from A2 first)

    Delete your existing rules

    Choose to "Use a Formula" for your Conditional Format and insert the below:

    =IF(ISNUMBER(A2),A2+1-COLUMN(A2)/100000>=LARGE(INDEX($A2:$I2+1-COLUMN($A2:$I2)/100000,0),3))
    set format as appropriate
    Click OK etc...


    Note: the use of the embedded INDEX in the above formula is pretty much a necessity if you're using XL2007 as implied (unless you wish to created Named Ranges) - this is not necessary in other versions
    (in other words it is used to circumvent a bug in XL2007)

  2. #2
    Registered User
    Join Date
    03-17-2011
    Location
    GuangDong, China
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: conditional formatting

    Quote Originally Posted by DonkeyOte View Post
    Highlight A2:I17 (selecting from A2 first)

    Note: the use of the embedded INDEX in the above formula is pretty much a necessity if you're using XL2007 as implied (unless you wish to created Named Ranges) - this is not necessary in other versions
    (in other words it is used to circumvent a bug in XL2007)
    So glad to read this experience on xl07, and the data you generates in the memory is quite skillful, thanks again.
    However, beside xl07,we can write the formula as below to simplify.

    =IF(A2,A2-COLUMN(A2)%%>LARGE($A2:$I2-COLUMN($A2:$I2)%%,4))

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1