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
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
=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
I get this part but I don't understand where popipipo got A7 in his format
=Rank($S$6:$S$35)<4
It should be A1
"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
Your format works but I need 90 and 97 to show up too . Thank you
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
There is a coma not a ;
Last edited by GmOOnii; 07-24-2013 at 03:35 PM.
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
Thank you for help. Its not right just yet. I edited my question to make it clearer.
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
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks