+ Reply to Thread
Results 1 to 8 of 8

Finding 6 Months (or More) Apart Date

  1. #1
    Registered User
    Join Date
    04-26-2022
    Location
    England
    MS-Off Ver
    365
    Posts
    79

    Finding 6 Months (or More) Apart Date

    Hi

    I deal with Health Surveillance

    I have a table where it shows all the assessments for each employee (column headers - Row 2) and then the cells below is show the date that each employee is due for this assessment (Columns L-X, sometimes a client may have more assessments which will mean more columns)

    The last column at the end of the data, I need a formula that will look at all the dates and find any dates that are 6 months or more apart and either highlight (6 months being highlighted in one colour and more than 6 months in another colour) them or list them

    Not too sure if this can be done using a formula or Conditional formatting, but im totally lost how to do this

    Attached is the table
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,895

    Re: Finding 6 Months (or More) Apart Date

    Which cells are you comparing. Suggest for the data shown, you mock up a solution so we understand exactly what you need.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    04-26-2022
    Location
    England
    MS-Off Ver
    365
    Posts
    79

    Re: Finding 6 Months (or More) Apart Date

    Hi

    The formula or Conditional formatting will need to look at all the dates in that row and then look to see which dates are 6 months apart or more than 6 months apart from the oldest date in that row and list them as show below or even highlight the dates, one colour for 6 months apart and another for more than 6 months

    Not to sure which will work better out of a formula or conditional formatting

    Im thinking with conditional formatting i can used or create a Colour Key Code table

    Hope this helps

    Solution Capture.JPG
    Last edited by DharmeshChauhan; 07-06-2023 at 03:59 AM.

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

    Re: Finding 6 Months (or More) Apart Date

    Do the mock-up in the workbook, not a screenshot, please.
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Registered User
    Join Date
    04-26-2022
    Location
    England
    MS-Off Ver
    365
    Posts
    79

    Re: Finding 6 Months (or More) Apart Date

    HI

    As requested, in a work book
    Attached Files Attached Files

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,980

    Re: Finding 6 Months (or More) Apart Date

    Where there is no previous recall date, how should we work out whether it's 6 months or 6 months plus - what's the logic?

  7. #7
    Registered User
    Join Date
    04-26-2022
    Location
    England
    MS-Off Ver
    365
    Posts
    79

    Re: Finding 6 Months (or More) Apart Date

    Hi

    If there is no dates listed in the row, or the dates in the row aren't 6 months apart or more than 6 months, then this can be ignored as we only want to see what is 6 months apart or more than 6 months from the oldest date in that row

    Solution Capture With Explaination.JPG

    please see attached explanation
    Attached Files Attached Files

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,572

    Re: Finding 6 Months (or More) Apart Date

    Please try the following conditional formatting formulas.
    For blue: =AND(L3<>"",DATEDIF(MIN($L3:$X3),L3,"m")>6)
    For green: =AND(L3<>"",DATEDIF(MIN($L3:$X3),L3,"m")=6)
    Note that formulas in columns AA:AB are there for illustrative purposes and are not needed for conditional formatting.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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] Finding date in which the average for trailing 6 months is >= x
    By Robertcm99 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-10-2023, 09:06 PM
  2. [SOLVED] Finding average of previous months
    By achu3186 in forum Excel General
    Replies: 6
    Last Post: 05-23-2021, 07:48 AM
  3. [SOLVED] Add date + 3 months in vba so the VBA sends mail reminder exactly 3 months before due date
    By JimmyQ in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-03-2014, 08:54 AM
  4. [SOLVED] Finding Months Between Two Dates
    By jemmers in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-23-2013, 03:41 PM
  5. Finding the average re-order date in terms of months
    By sanjay.wagjiani in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-10-2013, 11:31 AM
  6. [SOLVED] Finding Mismatched Months
    By Tim Kennedy in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-03-2013, 09:48 AM
  7. [SOLVED] Display cells 12 months prior and 12 months post from a given date
    By hog77 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-20-2012, 06:25 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