+ Reply to Thread
Results 1 to 12 of 12

Conditional Formatting How to make the top 3?

  1. #1
    Registered User
    Join Date
    09-10-2012
    Location
    Jakarta
    MS-Off Ver
    Excel 2007
    Posts
    11

    Conditional Formatting How to make the top 3?

    I have my table set for scores, like this but it doesn't work quite like I want it to. I want the top three 100s and 90 and 97.


    1 100
    2 100
    3 100
    4 90
    5 89
    6 97
    7 88
    8 83


    Thank you
    G
    Last edited by GmOOnii; 07-24-2013 at 03:33 PM. Reason: bad explantion

  2. #2
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: Conditional Formatting How to make the top 3?

    =RANK(A7;$A$1:$A$8)<4
    Try this formula in conditional format
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  3. #3
    Registered User
    Join Date
    09-10-2012
    Location
    Jakarta
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Conditional Formatting How to make the top 3?

    I get this part but I don't understand where popipipo got A7 in his format
    =Rank($S$6:$S$35)<4

  4. #4
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: Conditional Formatting How to make the top 3?

    It should be A1
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-10-2012
    Location
    Jakarta
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Conditional Formatting How to make the top 3?

    "The formula you typed contains an error." I get this error when I try it. It sounds right but I think there is something missing?
    =Rank($S$6;$S$6:$S$35)<4

  6. #6
    Registered User
    Join Date
    09-10-2012
    Location
    Jakarta
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Conditional Formatting How to make the top 3?

    Your format works but I need 90 and 97 to show up too . Thank you

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Conditional Formatting How to make the top 3?

    Try this, assuming your data is in B1 down...

    1. highlight the range you want to apply the conditional formatting to...B1:B8 in your sample data
    2. on the home tab, styles, select CF
    3. select new rule, select use formula
    4. enter =B1>=LARGE($B$1:$B$8,3) format fill as required

    Adjust ranges as needed
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  8. #8
    Registered User
    Join Date
    09-10-2012
    Location
    Jakarta
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Conditional Formatting How to make the top 3?

    There is a coma not a ;
    Last edited by GmOOnii; 07-24-2013 at 03:35 PM.

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Conditional Formatting How to make the top 3?

    If you want the top 3, excluding duplicates, add a helper column (I uded C based on your data) and copy this down...
    =IF(COUNTIF($B$1:B1,B1)>1,"",B1)

    Then change my formula from post #7 to =C1>=LARGE($C$1:$C$8,3), still applied to B

  10. #10
    Registered User
    Join Date
    09-10-2012
    Location
    Jakarta
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Conditional Formatting How to make the top 3?

    Thank you for help. Its not right just yet. I edited my question to make it clearer.

  11. #11
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Conditional Formatting How to make the top 3?

    My understanding is that in the sample you provided in post #1, you want all 3 100's plus 97 and 90 to be highlighted?

    If that is correct, using my suggestion in post 9 will do that for you

  12. #12
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Conditional Formatting How to make the top 3?

    Try this...

    Assume your data is in the range A2:A9.

    Enter this formula in B2 and copy down to B9. This will generate consecutive ranks for the data.

    =SUMPRODUCT(COUNTIF(A2,"<"&A$2:A$9)/COUNTIF(A$2:A$9,A$2:A$9))+1

    Then you can base the conditional formatting on B2:B9 being <=3.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 7
    Last Post: 12-17-2010, 03:17 AM
  2. Conditional Formatting to make #N/A disappear
    By JulieChu in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-06-2010, 11:22 AM
  3. help to make moving conditional formatting
    By birkhe in forum Excel General
    Replies: 0
    Last Post: 05-19-2009, 05:25 AM
  4. Make conditional formatting permanent
    By nsv in forum Excel General
    Replies: 0
    Last Post: 10-07-2008, 11:25 AM
  5. Conditional formatting-how to make it happen?
    By Jonsson in forum Excel General
    Replies: 0
    Last Post: 04-02-2005, 03:55 AM

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