+ Reply to Thread
Results 1 to 7 of 7

Highlighting Multiple Rows Conditional Formatting

  1. #1
    Forum Contributor
    Join Date
    10-09-2015
    Location
    Canada
    MS-Off Ver
    Office Home and Student 2021 for Mac
    Posts
    170

    Highlighting Multiple Rows Conditional Formatting

    Hi all,

    I'm working with a fairly large data set (a fictitious sample of which I have attached), and what I would like to do is try and implement a conditional formatting rule that will highlight cells (in yellow perhaps) that are within 2% or greater than the cells highlighted in green.

    The attached workbook is a response frequency table that tracks the number of respondents that chose each option. Overall, I'm finding that the frequency of most respondents is the highest on the correct option.

    However, in some cases, almost as many or more students will choose an incorrect response over the correct one. These are the cells I would like to flag. I'm defining "almost as many" as a 2% difference below the frequency of responses for the correct option.

    For instance, if there are 5 possible options and Option 1 is the correct response, I'm seeing that 25% of students are choosing Option 1, but 30% are choosing Option 2 and 23% are choosing Option 3, I would like to highlight the 30% and 23% cells.

    Hopefully the attached worksheet lay out the exercise more clearly.

    Any suggestions would be appreciated.

    Thanks!

    D.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,614

    Re: Highlighting Multiple Rows Conditional Formatting

    You need a key to specify the correct answer. Since you said:
    ...there are 5 possible options and Option 1 is the correct response, I'm seeing that 25% of students are choosing Option 1, but 30% are choosing Option 2 and 23% are choosing Option 3, I would like to highlight the 30% and 23% cells. ... So we cann't assume the the max is the correct response.


    yellow: AND(COLUMN(A3)<>MATCH($F3,$A$2:$E$2,0),A3>=INDEX($A3:$E3,MATCH($F3,$A$2:$E$2,0)))
    green: COLUMN(A3)=MATCH($F3,$A$2:$E$2,0)
    Attached Files Attached Files
    Last edited by protonLeah; 09-27-2018 at 08:20 PM.
    Ben Van Johnson

  3. #3
    Forum Contributor
    Join Date
    10-09-2015
    Location
    Canada
    MS-Off Ver
    Office Home and Student 2021 for Mac
    Posts
    170

    Re: Highlighting Multiple Rows Conditional Formatting

    Quote Originally Posted by protonLeah View Post
    You need a key to specify the correct answer. Since you said:
    ...there are 5 possible options and Option 1 is the correct response, I'm seeing that 25% of students are choosing Option 1, but 30% are choosing Option 2 and 23% are choosing Option 3, I would like to highlight the 30% and 23% cells. ... So we cann't assume the the max is the correct response.


    yellow: AND(COLUMN(A3)<>MATCH($F3,$A$2:$E$2,0),A3>=INDEX($A3:$E3,MATCH($F3,$A$2:$E$2,0)))
    green: COLUMN(A3)=MATCH($F3,$A$2:$E$2,0)
    Thanks so much for this protonLeah!

    I only have one quick follow-up....I know it might be a tall-ish order, but is there a way to also highlight those values that are within 2% below the correct response? Although it shows that fewer respondents chose the incorrect option, the frequency is close enough to flag.

    I've attached a workbook of just one case as an example.

    Thank you again!

    D.
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,614

    Re: Highlighting Multiple Rows Conditional Formatting

    maybe:
    Please Login or Register  to view this content.

  5. #5
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Highlighting Multiple Rows Conditional Formatting

    Column F, I use
    F3 =MATCH(MAX(A3:E3),A3:E3,)
    to find # column of Max %
    This should give you most of the answers but row 28,46 answer is not max so you need to key in.

    Please see attached for CF formula.
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    10-09-2015
    Location
    Canada
    MS-Off Ver
    Office Home and Student 2021 for Mac
    Posts
    170

    Re: Highlighting Multiple Rows Conditional Formatting

    Quote Originally Posted by protonLeah View Post
    maybe:
    Please Login or Register  to view this content.
    Thanks protonLeah! Worked like a charm. Much appreciated.

    D.

  7. #7
    Forum Contributor
    Join Date
    10-09-2015
    Location
    Canada
    MS-Off Ver
    Office Home and Student 2021 for Mac
    Posts
    170

    Re: Highlighting Multiple Rows Conditional Formatting

    Quote Originally Posted by Bo_Ry View Post
    Column F, I use
    F3 =MATCH(MAX(A3:E3),A3:E3,)
    to find # column of Max %
    This should give you most of the answers but row 28,46 answer is not max so you need to key in.

    Please see attached for CF formula.
    Thank Bo_Ry, this worked as well!

+ 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. Conditional formatting - highlighting odd/even rows
    By jlt199 in forum Excel General
    Replies: 9
    Last Post: 02-27-2018, 11:44 AM
  2. Replies: 6
    Last Post: 02-15-2018, 11:54 PM
  3. Replies: 1
    Last Post: 12-08-2016, 03:14 PM
  4. [SOLVED] Conditional Formatting: Comparing Multiple Cells & Highlighting Based On Colour
    By WorkWear in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-28-2015, 10:47 AM
  5. Conditional formatting highlighting multiple values
    By upperguy in forum Excel General
    Replies: 3
    Last Post: 04-22-2013, 12:53 PM
  6. Conditional Formatting Highlighting
    By MPXJOHN in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-19-2012, 04:07 PM
  7. Replies: 2
    Last Post: 04-14-2011, 12:34 PM

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