+ Reply to Thread
Results 1 to 9 of 9

rank in order and shade using conditional formatting

  1. #1
    Forum Contributor
    Join Date
    09-25-2011
    Location
    Lenasia, Johannesburg,South Africa
    MS-Off Ver
    Excel 2019
    Posts
    269

    rank in order and shade using conditional formatting

    Greetings

    I attached a small sheet where I am trying to rank a column for the top 4 performers and to be shaded to green for the first orange for second blue for 3rd and red for rourth


    I tried but keeping on getting errors and if there is a decimal than it looks at the number before the decimal so for example 23 and 23.3 both rank as 3 in place 3rd and 4th because 23.3 higher than 23



    Thanx in anticipation for the kind help

    raj
    Attached Files Attached Files
    Last edited by khanaran; 06-27-2020 at 12:06 PM. Reason: correct spreadsheet

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: rank in order and shade using conditional formatting

    I would recommend wrapping the formulas in columns M:R using IFERROR(...current formula),"") to avoid #N/A's.
    I converted the formulas in columns M:R to values because cells in the columns to be ranked will need to be numeric values or blanks in order to get the following to work.
    1. For column S: =IF(ISNUMBER(N3),SUMPRODUCT((ISNUMBER(N$3:N$20))*(N$3:N$20>N3))+1,"")
    2. For column T: =IF(ISNUMBER(P3),SUMPRODUCT((ISNUMBER(P$3:P$20))*(P$3:P$20<P3))+1,"")
    3. For column V: =IF(ISNUMBER(M3),SUMPRODUCT((ISNUMBER(M$3:M$20))*(M$3:M$20>M3))+1,"")
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  3. #3
    Forum Contributor
    Join Date
    09-25-2011
    Location
    Lenasia, Johannesburg,South Africa
    MS-Off Ver
    Excel 2019
    Posts
    269

    Re: rank in order and shade using conditional formatting

    Greetings


    many thanx for the solution to my request

    Its working perfectly


    Kind regards

    Raj

  4. #4
    Forum Contributor
    Join Date
    09-25-2011
    Location
    Lenasia, Johannesburg,South Africa
    MS-Off Ver
    Excel 2019
    Posts
    269

    Re: rank in order and shade using conditional formatting

    Hi

    Thank you for the help with wrapping the iferror around the formula

    I am doing something wrong because it gives me an error

    regards

    Raj

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: rank in order and shade using conditional formatting

    What error? Attach a workbook showing the issue.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  6. #6
    Forum Contributor
    Join Date
    09-25-2011
    Location
    Lenasia, Johannesburg,South Africa
    MS-Off Ver
    Excel 2019
    Posts
    269

    Re: rank in order and shade using conditional formatting

    Hi

    ok thanx including the sheet

    Raj
    Attached Files Attached Files

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: rank in order and shade using conditional formatting

    Maybe this?

    =IFNA(INDEX('G:\Desktop\sa racecards\[Kp-significators-samaster.xlsm]1'!AV:AV,MATCH(1,(#REF!='G:\Desktop\sa racecards\[Kp-significators-samaster.xlsm]1'!#REF!)*($A3='G:\Desktop\sa racecards\[Kp-significators-samaster.xlsm]1'!B:B),0)),"")

  8. #8
    Forum Contributor
    Join Date
    09-25-2011
    Location
    Lenasia, Johannesburg,South Africa
    MS-Off Ver
    Excel 2019
    Posts
    269

    Re: rank in order and shade using conditional formatting

    Hi

    Many thanx

    Raj

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: rank in order and shade using conditional formatting

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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. Shade Row based on Conditional Formatting
    By pkew22 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-31-2016, 03:31 PM
  2. Use conditional formatting to shade cells between two dates
    By vandeverja in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-27-2014, 11:58 AM
  3. Replies: 3
    Last Post: 12-03-2011, 06:01 PM
  4. Using Conditional Formatting to Shade Specific Cells
    By Hypnopoison in forum Excel General
    Replies: 4
    Last Post: 04-03-2011, 11:45 AM
  5. Replies: 7
    Last Post: 12-17-2010, 03:17 AM
  6. shade row without conditional formatting?
    By Wizard33 in forum Excel General
    Replies: 9
    Last Post: 03-12-2010, 05:13 PM
  7. Conditional Formatting code to shade cells
    By JimmiOO in forum Excel General
    Replies: 4
    Last Post: 03-20-2009, 04:44 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