+ Reply to Thread
Results 1 to 5 of 5

Conditional formatting as a function of rank or average (ideally I learn how to do both)

  1. #1
    Registered User
    Join Date
    02-14-2025
    Location
    Canada
    MS-Off Ver
    365
    Posts
    3

    Question Conditional formatting as a function of rank or average (ideally I learn how to do both)

    I have a spreadsheet that I want to conditional format by rank or as a scale of how above or below average they are, top 20% characters in each rank, top 40% etc. with 300 characters or so. Currently I only know how to do conditional formatting as a function of percentage of the highest value, picture included. Is there a way to instead to have it scale based on the rank (top 1 top 2, top 3...median...bottom 30 etc.) instead of the value itself? I need the cells themselves to show the value while the colours/arrows/whatever else to show the rank. 2025-02-02_13h46_18.pngAttachment 888925

    Alternatively I want to set the average as the middle of the scale
    Attached Files Attached Files
    Last edited by thatismyfeet; 02-16-2025 at 09:39 AM. Reason: Resolved with percentile option

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,815

    Re: Conditional formatting as a function of rank or average (ideally I learn how to do bot

    Hello thatismyfeet and Welcome to Excel Forum.
    Perhaps this will be of some help.
    For dark green: =d5>=D$2-(D$2-D$1)*0.2
    For light green: =d5>=D$2-(D$2-D$1)*0.4
    For yellow: =d5>=D$2-(D$2-D$1)*0.6
    For pink: =d5>=D$2-(D$2-D$1)*0.8
    For red: =d5<D$2-(D$2-D$1)*0.8
    The five rules are applied to the range =$D$5:$P$314
    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
    Registered User
    Join Date
    02-14-2025
    Location
    Canada
    MS-Off Ver
    365
    Posts
    3

    Re: Conditional formatting as a function of rank or average (ideally I learn how to do bot

    Not quite what I was looking for. I appreciate that I now know how to remove the gradient and instead set each section as a distinct colour, that will be excessively useful in future projects. For this one, I am looking to have a minimum of 60 in each category. The only way I can think of at the moment would be setting up 13 additional sheets and sorting them, then doing the rule setup you showed to have all above the top 60 to display as I want.
    hero-stat-list.xlsx
    In the new file I tried two things, one was what I mentioned above (to the arrows in the power column) and the other was setting the midpoint to the average (I don't know why I didn't think of this sooner) and both SEEM to perform the function I want. If there is a more elegant solution I would love to know, especially if I can use the arrows/colour method you showed me.

    Also thank you for the welcome and the fast reply!

  4. #4
    Registered User
    Join Date
    02-14-2025
    Location
    Canada
    MS-Off Ver
    365
    Posts
    3

    Re: Conditional formatting as a function of rank or average (ideally I learn how to do bot

    Marking this as resolved as I just learned there is "percent" and "percentile" in which they do the formatting based off the percent of the highest value and based off the average respectively.

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,815

    Re: Conditional formatting as a function of rank or average (ideally I learn how to do bot

    Glad that you found a solution that works for you.
    It would be helpful to others who may have the same issue if you would post a sample file illustrating how you solved it.
    Thank You for marking the thread as 'Solved'.
    I hope that you have a blessed day.

+ 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. [SOLVED] AVERAGE function breaking conditional formatting - any work-around?
    By Lforlasse in forum Excel General
    Replies: 9
    Last Post: 07-30-2024, 04:33 AM
  2. Replies: 1
    Last Post: 02-11-2024, 10:44 AM
  3. [SOLVED] Conditional RANK using dynamic array function
    By Marbleking in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-22-2021, 05:20 PM
  4. [SOLVED] rank in order and shade using conditional formatting
    By khanaran in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-30-2020, 03:52 PM
  5. Applying RANK function to a conditional range
    By MrO1976 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-30-2013, 11:16 AM
  6. [SOLVED] Rank or Conditional Formatting?
    By alisonoutside in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-11-2013, 10:42 PM
  7. Weighted rank- if duplicates rank the average
    By vlady in forum Excel General
    Replies: 3
    Last Post: 02-28-2012, 09:17 PM

Tags for this Thread

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