+ Reply to Thread
Results 1 to 15 of 15

Conditional formatting with a difference

  1. #1
    Registered User
    Join Date
    01-28-2022
    Location
    Glasgow
    MS-Off Ver
    365 pro
    Posts
    14

    Conditional formatting with a difference

    Hi, I'm stuck!

    I am creating a tracker and am trying to use conditional formatting to highlight a relevant cell based on performance

    I have a simple 4X4 grid that has we measure volume (25%, 30%, 40%, 50%)and value (25%, 30%,40%, 50%) performance
    then the idea is that when someone hits for example 25% volume, and 40% value (both calculated in separate tables) ,it would highlight the relevant cell in the above chart

    Really not sure how to get this right

    TIA

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,139

    Re: Conditional formatting with a difference

    Hi there.

    A picture is worth 1,000 words. An Excel sheet is worth 1,000 non-editable pictures.

    Please read the yellow banner about sample worksheets, at the top of the screen. Act on its guidelines and post a SMALL sample sheet complete with an explanation and some expected results.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Forum Contributor
    Join Date
    12-30-2021
    Location
    Mount Gambier, Australia
    MS-Off Ver
    19
    Posts
    108

    Re: Conditional formatting with a difference

    I'm sure it can be done but we need a file with some sample entries

  4. #4
    Registered User
    Join Date
    01-28-2022
    Location
    Glasgow
    MS-Off Ver
    365 pro
    Posts
    14

    Re: Conditional formatting with a difference

    Noted:

    In the sample attached I have 4 clients with a value of £25,000 (E12 and 13)
    I have contacted 2 of the above clients with a value of £16920 combined (Row 14 and below, counted and summed in A2 and A3)
    This is then converted as a percentage of what I had/Have available and displayed in E2 and E3

    In the sample, I can see that because I have hit 50% Volume and 68% Value, I am awarded the payment in E6, This is the cell I need to be highlighted in Green, or have a heavy lined border.
    As I contact more clients I would like the applicable cell to be highlighted.

    Hope that makes sense and apologies for the confusion with no sample earlier.

    Al
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,351

    Re: Conditional formatting with a difference

    Try

    CF rule

    =AND($E$2>=B$5,$E$2<=C$5,$E$3>=$A6,$E$3<=$A7)
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  6. #6
    Registered User
    Join Date
    01-28-2022
    Location
    Glasgow
    MS-Off Ver
    365 pro
    Posts
    14

    Re: Conditional formatting with a difference

    Hi John, thanks for this.
    I've applied the formula and it highlighted 2 cells which threw me slightly, I've expanded the selection to pull in the full table but it still does the same.
    Interestingly, if i copy the formula into blank cell, and drag across to get 4 up 4 across as per the main table, I can see that the formula IS working as it only returns TRUE on the corresponding cell, but how do i get this into the main table and get it to highlight the only cell that corresponds to the correct mix?

    Al

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,139

    Re: Conditional formatting with a difference

    ??? It's working perfectly!!
    Attached Files Attached Files

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,139

    Re: Conditional formatting with a difference

    Obviously, you can delete the formulae in the cells that contain TRUE/FALSE....

  9. #9
    Registered User
    Join Date
    01-28-2022
    Location
    Glasgow
    MS-Off Ver
    365 pro
    Posts
    14

    Re: Conditional formatting with a difference

    Gents, thank you. sorted!

  10. #10
    Forum Contributor
    Join Date
    12-30-2021
    Location
    Mount Gambier, Australia
    MS-Off Ver
    19
    Posts
    108

    Re: Conditional formatting with a difference

    Hi Hero

    I first increased the references in cells A1 and A2 to include the rest of the columns mentioned so I could add data.
    Cell A1
    Please Login or Register  to view this content.
    Cell A2
    Please Login or Register  to view this content.
    conditional formatting (home tab, Conditional formatting)
    Cell E6
    Please Login or Register  to view this content.
    and I copied it to E6:E9.

    I'm not sure what the percentages are cells B5:E5
    The way I read it is that is the percentage of contacted clients? if so the I thought you would be due payment as Cell B6.

    I have only formulated E6:E9
    and each cell highlights as you get to it. or did you want just the cell you are due to be highlighted. (I tried to format with a thick border but you can only format upto the thin border, same as you already have)
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    01-28-2022
    Location
    Glasgow
    MS-Off Ver
    365 pro
    Posts
    14

    Re: Conditional formatting with a difference

    Hello again.
    I don't know what it is I'm not understanding about this but I'm now trying to apply this same logic to a different (but very similar) sheet but cannot get my formula to work at all

    I'm applying this
    =AND($I$8>=B$9,$I$8<=C$9,$I$9>=$C8,$I$9<=$C9)
    to the cells D3:G12

    The desired result is that the relevant cell from teh selection is highlighted based on the values in I8 and I9

    In the attached example cell F12 would be highlighted.

    I then need to apply this to each table on the sheet
    Attached Files Attached Files

  12. #12
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,351

    Re: Conditional formatting with a difference

    for first set of data

    =AND($I$8>=D$9,$I$8<E$9,$I$9>=$C10,$I$9<$C11)

    Formulae shown in columns K:N

    Add 100% in C13 and same for sets of data:
    Attached Files Attached Files

  13. #13
    Forum Contributor
    Join Date
    12-30-2021
    Location
    Mount Gambier, Australia
    MS-Off Ver
    19
    Posts
    108

    Re: Conditional formatting with a difference

    Hi Hero

    I just tweaked your cell references and I think it does what you want

    Please Login or Register  to view this content.
    which is the same as the formula John had.
    Sorry John

    your formula
    =AND($I$8>=B$9,$I$8<=C$9,$I$9>=$C8,$I$9<=$C9) referenced B9,C8, C9 which are blank spaces, so we changed them to D9,E9, C10 and C11.
    also your formula said $I$8<=C$9 which should be $I$8<E$9 because you want it lower than the next cell otherwise both cells highlight if it is =

    Hope this helps
    Attached Files Attached Files
    Last edited by wildecoyote1966; 01-31-2022 at 08:20 PM. Reason: adding additional information

  14. #14
    Registered User
    Join Date
    01-28-2022
    Location
    Glasgow
    MS-Off Ver
    365 pro
    Posts
    14

    Thumbs up Re: Conditional formatting with a difference

    thanks wildecoyote1966

  15. #15
    Registered User
    Join Date
    01-28-2022
    Location
    Glasgow
    MS-Off Ver
    365 pro
    Posts
    14

    Re: Conditional formatting with a difference

    Cheers John

+ 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] Conditional formatting for difference greater or less than 5%
    By Mendonk in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 12-03-2021, 12:05 PM
  2. [SOLVED] Conditional formatting to show difference
    By Shamz41 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 07-10-2018, 03:43 AM
  3. [SOLVED] Conditional formatting based on % difference
    By Raywoot in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-21-2015, 06:07 AM
  4. time difference - conditional formatting and fix
    By Lukael in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 05-06-2014, 11:16 AM
  5. conditional formatting and difference in time
    By Time to Learn in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-17-2013, 10:37 PM
  6. Replies: 2
    Last Post: 02-04-2013, 02:31 PM
  7. Conditional Formatting Difference
    By excel328 in forum Excel General
    Replies: 2
    Last Post: 07-28-2010, 01:33 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