+ Reply to Thread
Results 1 to 6 of 6

Highlight multiple min & max cells in a column based on date reference

  1. #1
    Registered User
    Join Date
    01-11-2017
    Location
    Taipei, Taiwan
    MS-Off Ver
    2016
    Posts
    3

    Highlight multiple min & max cells in a column based on date reference

    Dear All,

    I wonder if you can help.
    I have a data set of >30k rows, containing many duplicate dates in Column A.
    In Column B I am looking to highlight the highest value number seen across the multiple occurrences of that date
    In Column C I am looking to highlight the lowest value number seen across the multiple occurrences of that date
    A simple visual is attached.

    I have not been able to get the formula correct within the conditional formatting. I really appreciate any feedback you may have

    Thank you,

    Marzban
    Attached Files Attached Files

  2. #2
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Highlight multiple min & max cells in a column based on date reference

    Use this formulas in Conditional formatting (adjust the range)

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,726

    Re: Highlight multiple min & max cells in a column based on date reference

    In your sample file, select all the cells from B2 to B13, then click on Conditional Formatting | New Rule | Use a Formula... , then enter this formula into the dialogue box:

    =B2=MAX(IF($A$2:$A$13=$A2,$B$2:$B$13))

    click on the Format button | Fill tab and choose your colour (e.g. yellow, so it will take precedence over the colours you have manually put in and thus show that it is working). Click OK twice to exit the dialogue box.

    Then select cells C2 to C13 and repeat, but using this formula instead:

    =C2=MIN(IF($A$2:$A$13=$A2,$C$2:$C$13))

    and maybe choosing blue as the highlight colour.

    Adapt this to your real file.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    01-11-2017
    Location
    Taipei, Taiwan
    MS-Off Ver
    2016
    Posts
    3

    Re: Highlight multiple min & max cells in a column based on date reference

    Dear Pete - that was very helpful.
    Thank you for taking the time to respond.
    Marzban

  5. #5
    Registered User
    Join Date
    01-11-2017
    Location
    Taipei, Taiwan
    MS-Off Ver
    2016
    Posts
    3

    Re: Highlight multiple min & max cells in a column based on date reference

    Dear Jose - Thank you.
    Both of the solutions suggested are working.
    Thank you for taking the time to respond.
    Marzban

  6. #6
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Highlight multiple min & max cells in a column based on date reference

    You are welcome and thank you for feedback.

    Do not forget to 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. [SOLVED] Highlight cells based on date
    By lavudyar in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 9
    Last Post: 05-01-2015, 12:38 AM
  2. [SOLVED] Highlight Cells based on Cell Reference on another Worksheet
    By HangMan in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-28-2014, 08:24 AM
  3. Replies: 4
    Last Post: 01-03-2013, 12:25 AM
  4. Replies: 5
    Last Post: 09-24-2012, 05:14 PM
  5. Replies: 23
    Last Post: 09-25-2009, 07:39 PM
  6. Replies: 1
    Last Post: 09-19-2009, 08:09 PM
  7. Replies: 2
    Last Post: 04-03-2005, 07:09 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