+ Reply to Thread
Results 1 to 7 of 7

Apply Conditional Format If Any Cells On Same Row Contain Top 10% Values

Hybrid View

  1. #1
    Registered User
    Join Date
    10-20-2019
    Location
    USA
    MS-Off Ver
    365 / 2016 for Desktop or Mobile Devices
    Posts
    9

    Apply Conditional Format If Any Cells On Same Row Contain Top 10% Values

    As a tech neophyte, I am quite flustered by inability to apply conditional formatting to first cell on each row if any other cell(s) on that same row contain a top 10% value. For instance,

    NOW: All cells with top 10% values conditionally formatted by green fill and bold-faced gold text

    Excel Sample Table 1 IMAGE.png

    DESIRED RESULT: "HOUR" Column cells on same row as any others that contain top 10% values auto format

    Excel Sample Table 2 IMAGE.png

    OR Entire ROW with any top 10% cell value auto formats as below:

    Excel Sample Table 3 IMAGE.png
    Thanks in advance for all helpful tips. And I do apologize for the huge pics but can't figure out how to post tables per your published Forum Rules.
    Last edited by CluckeyJD; 11-03-2019 at 11:02 PM. Reason: adjust text alignment
    Your Guest For Best IT Quest

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,259

    Re: Apply Conditional Format If Any Cells On Same Row Contain Top 10% Values

    Welcome to the forum.

    You should have attached the workbook - there are instructions in the yellow banner up top.

    However, I can explain what to do.

    1. Select the range you wish to apply the formatting to (in my example it's B2:H11).
    2. Click on Conditional Formatting > New Rule > Formula.
    3. Type this into the formula box: =B2>=LARGE($B$2:$H$11,10).
    4. Set the formatting you require.
    5. Save (and apply if you wish to see it before saving).

    What you get is the top 10 highest scored highlighted (this is not strictly speaking the top 10 percent, however it matches what you seem to want).

    Excel 2016 (Windows) 32 bit
    A
    B
    C
    D
    E
    F
    G
    H
    2
    1
    85
    8
    20
    25
    15
    131
    15
    3
    2
    68
    10
    30
    4
    3
    205
    40
    20
    25
    5
    4
    40
    43
    20
    10
    16
    35
    6
    5
    53
    38
    61
    48
    65
    10
    10
    7
    6
    108
    129
    75
    113
    80
    50
    36
    8
    7
    31
    65
    82
    54
    71
    40
    9
    8
    52
    15
    85
    80
    140
    40
    10
    10
    9
    20
    25
    51
    46
    20
    50
    20
    11
    10
    60
    94
    35
    10
    80
    35
    10
    Sheet: Sheet1

    For the times, select the time section (in my example that's A2:A11) and use this rule:

    =COUNTIF($B2:$H2,">="&LARGE($B$2:$H$11,10))>0

    That's it.
    Attached Files Attached Files
    Last edited by AliGW; 11-04-2019 at 02:53 AM.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,259

    Re: Apply Conditional Format If Any Cells On Same Row Contain Top 10% Values

    Administrative Note:

    Unfortunately, it has come to our attention you have violated Rule #8 of our Forum RULES:

    Don't private message, visitor message or email Excel (or Access, Word, etc.) questions to moderators or other members.

    All questions and answers will benefit other posters like yourself when discussed in public threads. The point of having a public forum is to share solutions to common (and sometimes uncommon) problems with all members.

    Breaking this rule is considered harassment by most of our contributors and thus cannot be tolerated. Repeat offence could lead to a permanent ban, so do take this caution to heart.

    I don't know why you felt the need to prompt me to look again at your thread when I gave you a solution yesterday morning that you have not even acknowledged (see pots #2).

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,259

    Re: Apply Conditional Format If Any Cells On Same Row Contain Top 10% Values

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

  5. #5
    Registered User
    Join Date
    10-20-2019
    Location
    USA
    MS-Off Ver
    365 / 2016 for Desktop or Mobile Devices
    Posts
    9

    Re: Apply Conditional Format If Any Cells On Same Row Contain Top 10% Values

    Yep! Works like a charm now! I now realize my first mistake was not removing Excel's built-in CF for Top 10 PERCENT by editing to use your LARGE fx before 2nd new CF rule applied to cells in "Hour" Column. So, I guess Excel couldn't find any cell below 7 Weekday columns to satisfy condition specified by "Hour" Column LARGE CF that looks for numerical v. percentile ranks?
    Last edited by CluckeyJD; 11-11-2019 at 12:56 AM. Reason: more clarity

  6. #6
    Registered User
    Join Date
    10-20-2019
    Location
    USA
    MS-Off Ver
    365 / 2016 for Desktop or Mobile Devices
    Posts
    9

    Re: Apply Conditional Format If Any Cells On Same Row Contain Top 10% Values

    Just thought it best to write in efforts to help fellow Excel neophyte users. I'm pleased to inform you of my new ability to perform a tweak on your CF formula so it will show Top 10 PERCENT value cells versus 10 highest by numerical rank. Just change '10' at end of the string to a '17,' which is 10% of 168 hours in one week! A big drawback I see is huge skew of any partial bird's eye view, though. Won't any fixed value entered for number of cells to highlight create this result? For instance, imagine what might appear on Jan 1, 2020, that brings in a New Year just past the next bend. Any ideas or suggestions are greatly appreciated.

    PS: Thanks for a great side bonus that helped me learn to make zero values instantly vanish by CF applied to turn the text white.

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

    Re: Apply Conditional Format If Any Cells On Same Row Contain Top 10% Values

    If you want further help, please attach a sample workbook. Instructions in the yellow banner at the top of the page.

+ 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] VBA to apply conditional format
    By esbencito in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-09-2018, 11:28 PM
  2. [SOLVED] How To Apply Conditional Format To Cell
    By Kingswood in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-09-2015, 12:59 PM
  3. apply conditional format to every 4th row
    By jlanderson18 in forum Excel General
    Replies: 2
    Last Post: 07-18-2013, 01:39 PM
  4. Only apply conditional format if cell val > 0
    By moorzee in forum Excel General
    Replies: 2
    Last Post: 05-10-2013, 05:02 PM
  5. Apply Conditional format only when cells are active?
    By bob63el in forum Excel General
    Replies: 3
    Last Post: 04-03-2013, 10:18 PM
  6. Replies: 3
    Last Post: 09-13-2012, 03:25 AM
  7. Conditional Format-apply to every row
    By hassankhan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-13-2009, 03:24 AM

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