+ Reply to Thread
Results 1 to 4 of 4

Conditional Formatting to highlight consecutive dates?

  1. #1
    Registered User
    Join Date
    10-28-2018
    Location
    Cambridge
    MS-Off Ver
    365
    Posts
    2

    Question Conditional Formatting to highlight consecutive dates?

    Good evening everyone,

    I am a newbie on this forum, but I suspect you will be seeing me on here a few more times, after I have checked the sub-forums first

    I have to produce a report showing names, dates and lots of other private information. What I need to do is sort by name, then date - simple enough. Then I need to highlight if there are 3 or more consecutive dates for each individual person.

    As I am new to Excel it is slightly confusing, but I am learning, albeit slowly.

    I have attached a screenshot which will explain it better.

    Three or more consecutive dates need to be highlighted, this report will need to be printed off each week and checked so would make it easier to see.

    screenshot.jpg

    If anyone could point me in the right direction it would very much be appreciated.

    Thank you everyone
    Attached Files Attached Files
    Last edited by LisaSchon; 10-28-2018 at 03:44 PM. Reason: uploading file

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Conditional Formating to highlight consecutive dates?

    Welcome.

    You need to have two empty rows before your data.

    Select the Area That you want highlighted.

    Select the home Tab and then Conditional formatting

    Select Manage Rules and then New Rule

    Select Use Formula to choose which cells to format.

    Paste this formula into the formula box.

    =OR(AND($A3 <> "",$A2=$A3,$A3=$A4),AND($A4<>"",$A3=$A4,$A4=$A5),AND($A2<>"",$A1=$A2,$A2=$A3))

    Select the Format Button and select you fill colour.

    Click on ok three times to exit.
    Attached Files Attached Files
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Conditional Formatting to highlight consecutive dates?

    Helper column C is used.
    ARRAY formula in C2 then dragged down.

    =IF(AND(COUNTIF($A$2:$A$23,$A2)>=3,OR(AND($A2=$A1,$B2=SUM($B1)+1),AND($A2=$A3,$B2=$B3-1))),LARGE(IF($A$1:$A1=$A2,$C$1:$C1,0),1)+1,"")

    How ARRAY formula is entered

    Paste Formula in the cell.
    Press F2
    Hold Shift+ Ctrl Keys and hit Enter key.
    Now the formula is surrounded by {} by excel.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  4. #4
    Registered User
    Join Date
    10-28-2018
    Location
    Cambridge
    MS-Off Ver
    365
    Posts
    2

    Red face Re: Conditional Formatting to highlight consecutive dates?

    If I don't get time to play around with this over the weekend I will on Monday when I have to run the report and will try both methods.

    Thank you both for your help, I'll let you know how I get on

+ 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 consecutive 7 days or above using conditional formatting
    By kyleung in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-01-2018, 09:22 AM
  2. [SOLVED] Conditional formatting to highlight due-dates needs to skip weekend
    By jedidavidalan in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-11-2017, 12:12 PM
  3. Replies: 5
    Last Post: 01-26-2017, 10:15 PM
  4. Replies: 5
    Last Post: 04-08-2016, 03:36 PM
  5. [SOLVED] Conditional Formatting to Highlight a Range when Today is between Two Dates DD/MM
    By AliGW in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-04-2015, 11:10 AM
  6. [SOLVED] Conditional formatting to highlight old dates?
    By mhaness in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-25-2014, 11:57 AM
  7. [SOLVED] How do I highlight a cell using conditional formatting and dates
    By shane561 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-27-2005, 12:10 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