+ Reply to Thread
Results 1 to 13 of 13

Dates Matching - multiples overlaps.

  1. #1
    Registered User
    Join Date
    12-01-2018
    Location
    london
    MS-Off Ver
    2013
    Posts
    8

    Dates Matching - multiples overlaps.

    Hello any potential savior.

    I believe that this types of requests needs VBA - since its look pretty demanding. If this can be done with normal excel, I good too.
    If you make this work - it will be a mini miracle for me.
    I would like really appreciate since my excel skills are growing - to provide me an excel attached with the solution.

    I need for a real estate the following.

    I have the the month when tenants moved into a flat [Tenants Months]

    I want to see which dates overlap and how many per month.
    [to take the month from [Tenants Months] and see which dates from the dates in the others tabs OVERLAP with any month and - and then so state how many days are overlapping - this can be more than 1 month.

    My desired output, for which I will be eternally grateful is shown in the file I am attaching.
    I hope my worked example - done manually, for which I need to perform for 1000s will help..

    Million thanks - once again - this will be a dream if it can happen.

    Jon.
    Last edited by flat4raanana; 12-01-2018 at 02:48 PM.

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Dates Matching - multiples overlaps.

    When is mentioned
    Are there overlapping dates
    [column B to any date in the Tabs]
    is the search to be done for all tabs or only the 3 tabs :
    1. Prior Obligations and 2. Rest Days and 3. Travel Dates
    - Battle without fear gives no glory - Just try

  3. #3
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Dates Matching - multiples overlaps.

    Is travel dates can exist several times per month per tenant ?
    e.g. tenant = A travel from 2 June 2017 to 3 June 2017 AND from 6 June 2017 to 10 June 2017 ???

  4. #4
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Dates Matching - multiples overlaps.

    See how next UDF can fit into your need for the first check:
    Are there overlapping dates
    [column B to any date in the Tabs]
    In file attached see column "K"



    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    12-01-2018
    Location
    london
    MS-Off Ver
    2013
    Posts
    8

    Re: Dates Matching - multiples overlaps.

    Hi
    I was super busy and sorry for not responding sooner. It should be done for all tabs. I have 3 now - but there maybe more later.
    Does that answer your question.
    If you need more details, please let me know.
    Thank you for responding and helping me.

  6. #6
    Registered User
    Join Date
    12-01-2018
    Location
    london
    MS-Off Ver
    2013
    Posts
    8

    Re: Dates Matching - multiples overlaps.

    Yes - this can happen. - Many travel in the same month.

    Based on my replied - do you need to amend the excel to be accurate.

    Thank you

  7. #7
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Dates Matching - multiples overlaps.

    do you need to amend the excel to be accurate.

    Yes of course

  8. #8
    Registered User
    Join Date
    12-01-2018
    Location
    london
    MS-Off Ver
    2013
    Posts
    8

    Re: Dates Matching - multiples overlaps.

    I tried and I do not see how the overlapping days per month are population.
    I tried adding the macro - that did not work.

  9. #9
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Dates Matching - multiples overlaps.

    See attached a remake of the UdF "OverlappingExist" test is done in all sheets except "Tenants Months"
    Some questions:
    Sheet "Tenants Months"
    Column "E" test must be done with sheet "1. Prior Obligations" is it ??
    Column "G" test must be done with sheet "2. Rest Days" is it ??
    Column "I" test must be done with sheet "3. Travel Dates" is it ??

  10. #10
    Registered User
    Join Date
    12-01-2018
    Location
    london
    MS-Off Ver
    2013
    Posts
    8

    Re: Dates Matching - multiples overlaps.

    Hi
    I still do not see how the data on the tabs E, G and I are automatically updated - that is the need.
    David

  11. #11
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Dates Matching - multiples overlaps.

    how the data on the tabs E, G and I are automatically updated
    No they are not yet updated.
    Only column "K" which must fit to column "D"

    For column E, G, I is needed answer from previous thread

    Sheet "Tenants Months"
    Column "E" test must be done with sheet "1. Prior Obligations" is it ??
    Column "G" test must be done with sheet "2. Rest Days" is it ??
    Column "I" test must be done with sheet "3. Travel Dates" is it ??

  12. #12
    Registered User
    Join Date
    12-01-2018
    Location
    london
    MS-Off Ver
    2013
    Posts
    8

    Re: Dates Matching - multiples overlaps.

    Column "E" test must be done with sheet "1. Prior Obligations" is it ?? Yes
    Column "G" test must be done with sheet "2. Rest Days" is it ?? Yes
    Column "I" test must be done with sheet "3. Travel Dates" is it ?? Yes

    I hope I have answered.

  13. #13
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Dates Matching - multiples overlaps.

    See next code and file attached.
    Compare your data with functions' results:
    Column E vs F
    Column G vs H
    Column I vs J

    Column D vs K

    Results are not really the same but I don't see why functions'value should be wrong
    Please comment


    Please Login or Register  to view this content.

+ 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] Dates in excel sheet not matching dates in comobox1
    By ColemanJames in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-09-2017, 05:28 PM
  2. [SOLVED] Macro not identifying all overlaps between dates
    By Ochimus in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-20-2017, 07:30 PM
  3. How to change dates if the date overlaps
    By redza in forum Excel General
    Replies: 3
    Last Post: 09-30-2013, 12:37 AM
  4. Replies: 10
    Last Post: 09-04-2013, 08:34 PM
  5. Find # of multiples of EDATE between two dates
    By CDavid in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-21-2011, 10:38 AM
  6. List Matching with Dates: Using Dates as filters
    By Thawk in forum Excel General
    Replies: 6
    Last Post: 02-15-2009, 05:12 PM
  7. matching multiples fields in 1 row
    By Hobochunk in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-28-2005, 02:35 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