Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: Conditional formatting and selecting top 3 values

  1. #1
    New Member
    Join Date
    Mar 2002
    Posts
    5
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Hi,

    I've got a spreadsheet with a series of rows and columns that have numbers between 1 and 20 contained within the various cells. I am trying to use conditional formatting to highlight the top 3 values for each row but have thus been unsuccessful in it's execution. I've tried using a variety functions to achieve my desired result but none seem to work (functions such as MAX/MAXA, LARGE and RANK) as all each seem to do is change the formatting for all numbers contained within the row instead of the select 3 I wish to single out. Sorting or filtering the data is not possible for the type of output I am seeking.

    Any advice on how to achieve my desired result?

    Thanks in advance!
    Gordow

  2. #2
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Austin, Texas USA
    Posts
    11,654
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Suppose A1:D6 contains...

    {8,14,5,18
    ;4,5,8,16
    ;20,5,19,3
    ;2,1,12,8
    ;17,16,9,6
    ;3,2,6,8}

    After applying a "Formula Is" condition to the selection, A1:D6 (with A1 as the active cell) using...

    =OR(A1=LARGE(1:1,1),A1=LARGE(1:1,2),A1=LARGE(1:1,3))

    ...the values...

    {5
    ;4
    ;3
    ;1
    ;6
    ;2}

    ...will remain unformatted.

    [ This Message was edited by: Mark W. on 2002-03-27 16:49 ]

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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