+ Reply to Thread
Results 1 to 9 of 9

[SOLVED]Conditional formatting , highlight top 3 values help

  1. #1
    Registered User
    Join Date
    03-01-2012
    Location
    Romania, Bucharest
    MS-Off Ver
    Excel 2010
    Posts
    17

    [SOLVED]Conditional formatting , highlight top 3 values help

    Hi guys

    I`m kinda new to excel, and i need it for school+work. I have faced some problems that i didn't managed to solve them.
    One problem is like this :
    I have to highlight the names from a column, based on the 3 highest values from another column.
    Any ideas how to do it?
    Last edited by Laur3l; 03-01-2012 at 10:21 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Conditional formatting , highlight top 3 values help

    Refer to the other column with a formula like:

    =$B2>=Large($B$2:$B$10,3)

    So this checks if B2 is larger or equal to the 3rd largest value in range B2:B10...
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    03-01-2012
    Location
    Romania, Bucharest
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Conditional formatting , highlight top 3 values help

    it helped,thx a lot, fixed my problem. but here's another one i had :

    i have to format a column(where are shown names and surnames) based on another column which has the most frequency of the year.
    Don't know if I explained it pretty well but i`ll give an example:

    Col A Col B
    name1 2011
    name2 2012
    name3 2012
    name4 2012
    name5 2012
    name6 2011
    name7 2011

    so what i have to highlight is the names who have the year 2012(name 2,name3,name4,name5) because 2012 appears more frequently than 2011.

    also can u explain me why u used the ">" sign in the forumla =$B2>=Large($B$2:$B$10,3). what does it stand for?
    Last edited by Laur3l; 03-01-2012 at 10:18 AM.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Conditional formatting , highlight top 3 values help

    Try conditional formula like:

    =$B2=MODE($B$2:$B$10)

  5. #5
    Registered User
    Join Date
    03-01-2012
    Location
    Romania, Bucharest
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Conditional formatting , highlight top 3 values help

    Quote Originally Posted by NBVC View Post
    Try conditional formula like:

    =$B2=MODE($B$2:$B$10)
    This formula does nothing appearently, however i managed to return the most frequent year with "=MODE.SNGL(YEAR(B2:B10))" formula, but I can't manage to format the other column with a black background and white font for the names which stand for the most frequent year. any ideas?
    Last edited by Laur3l; 03-01-2012 at 11:09 AM.

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Conditional formatting , highlight top 3 values help

    If you want to highlight, say A2:A10, then the conditional formula would be:

    =$B2=MODE.SNGL(YEAR($B$2:$B$10))

    make sure you don't put quotes around the formula.

  7. #7
    Registered User
    Join Date
    03-01-2012
    Location
    Romania, Bucharest
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Conditional formatting , highlight top 3 values help

    hm.. it doesn't work, i`ll attach the file here so u know what i`m talking about.

    ex1.xlsx

    the idea is to make the names from the "nume si prenume asigurat" column , to appear highlighted where the most frequest year is , in this case 2008. the date is at the "data asigurarii" column. i don't use quotes for formulas

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Conditional formatting , highlight top 3 values help

    sorry you need the year around the first part too...

    This worked for me:

    =YEAR($E2)=MODE(YEAR($E$2:$E$26))

    or, for your version

    =YEAR($E2)=MODE.SNGL(YEAR($E$2:$E$26))

  9. #9
    Registered User
    Join Date
    03-01-2012
    Location
    Romania, Bucharest
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Conditional formatting , highlight top 3 values help

    riiiight.. it worked perfectly , thanks for the fast answers i`ll have more questions soon i`m sure :P

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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