+ Reply to Thread
Results 1 to 11 of 11

Formula to define overlapping occuring dates

  1. #1
    Registered User
    Join Date
    05-29-2018
    Location
    South holland, Netherlands
    MS-Off Ver
    Office 2016, Google drive
    Posts
    6

    Question Formula to define overlapping occuring dates

    Hello everyone,

    I am In need of some help since i haven't been able to find a solution to my problem on Excel.

    My problem is that i have multiple locations in one holiday coworkers sheet. for example

    Location A :
    Location B :
    Location C :

    Now what i need is to find out how many times in location A the dates overlap.

    What i'm trying to say is for example :

    Location A : 25-05-2018 till 26-06-2018 (these two dates are in different cells) ; person 1
    Location A : 27-05-2018 till 29-06-2018 (these two dates are in different cells) ; person 2
    Location A : 06-07-2018 till 10-07-2018 (these two dates are in different cells) ; person 3

    now here is what i need in another cell : the next cell needs to tell me how many times in location A the dates overlap each other. so in this example it's easy : person 1 and person 2 their holiday dates overlap and person 3 doesnt overlap with any of these 2 other persons their dates.

    But of course the sheet is quite large and has more locations than 3.

    Is there a way to have a cell define how many times in one location holiday dates are overlapping each other, for example :

    Location : Overlapping dates :
    Location A : 2
    Location B : 3
    Location C : 3

    something like this, it doesn't have to be exactly like this. But just something that is capable of doing this.

    thanks you very much if you are willing to help me out

    Greetings,

    Marano

  2. #2
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: Formula to define overlapping occuring dates

    Pls attach a sample worksheet and show expected result.
    Enter some typical example of data and explain the logic you want to use to figure out results.
    1. Click on the * Add Reputation if you think this helped you
    2. Mark your thread as SOLVED when question is resolved

    Modytrane

  3. #3
    Registered User
    Join Date
    05-29-2018
    Location
    South holland, Netherlands
    MS-Off Ver
    Office 2016, Google drive
    Posts
    6

    Post Re: Formula to define overlapping occuring dates

    Hi yes my bad i should have given an example.

    Here it is, hope it helps.

    Regards,

    Marano
    Attached Images Attached Images

  4. #4
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: Formula to define overlapping occuring dates

    Please attach an excel file. We don't want to create the file and enter all the data.

    You'll get help if you make it easy for us to help you.

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    Re: Formula to define overlapping occuring dates

    To attach a file to your post: (Please no pics or screenshots ... saves retyping data.),
    • be sure to desensitize the data
    • click “Go Advanced” (next to Post Quick Reply – bottom right),
    • scroll down until you see “Manage Attachments”, click that,
    • click “Browse”.
    • select your file(s)
    • click “Upload”
    • click “Close window”
    • click “Submit Reply”

    The file name will appear at the bottom of your reply.
    Dave

  6. #6
    Registered User
    Join Date
    05-29-2018
    Location
    South holland, Netherlands
    MS-Off Ver
    Office 2016, Google drive
    Posts
    6

    Post Re: Formula to define overlapping occuring dates

    Ok yes i will send the file. Thanks for the help!!
    Attached Files Attached Files

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    Re: Formula to define overlapping occuring dates

    Try array entering this in F15 and fill down. If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    05-29-2018
    Location
    South holland, Netherlands
    MS-Off Ver
    Office 2016, Google drive
    Posts
    6

    Re: Formula to define overlapping occuring dates

    hi, thanks for helping out once again

    but i have a problem, it is not able to understand the formula that you sent me.

    here is a screenshot of the error i get when enterring this formula.

    greetings,

    Marano
    Attached Images Attached Images

  9. #9
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    Re: Formula to define overlapping occuring dates

    Can't tell with the Formatting in a screenshot.
    Last edited by FlameRetired; 06-03-2018 at 08:02 PM.

  10. #10
    Registered User
    Join Date
    05-29-2018
    Location
    South holland, Netherlands
    MS-Off Ver
    Office 2016, Google drive
    Posts
    6

    Re: Formula to define overlapping occuring dates

    oh wauw, amazing! thank you so much for this formula!!

    Just one more thing i would really appreciate, could you help me out by explaining how to formula works exactly piece by piece? so i can use this formula in my own sheet.

  11. #11
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    Re: Formula to define overlapping occuring dates

    It's best if you let the formula "explain" itself.

    On the FORMULAS ribbon find 'Evaluate Formula' ... Fx for short.

    With one of the formula cells active apply Fx. Clicking repeatedly on the 'Evaluate' button will reveal step by step how Excel calculates the equation.

    Of note: At some steps Excel returns an arrays of TRUE/FALSE. It is important to know that math operations (like multiplication) coerce those into their underlying values of 1/0. They in turn are often multiplied (usually) by some other value or array. Those results are often summed (as in this case).

    The part I do not feel qualified to credibly explain is the FREQUENCY function. I've learned how to use it mostly by experimenting on my own, observation and dissecting (read Fx) formulas others have written. I am still learning some of its subtler features. This formula has some of those. So explanation is currently beyond me.

    Don't be intimidated. Start with the "Help" files, experiment and examine formulas that use that function.

    Oh yes. I almost forgot. With one of the formula cells active you can select just a portion(s) of the formula and hit the F9 function key. It will show you what Excel has done with that part. Try selecting just the IF(E15=$E$2:$E$9,$A$2:$A$9) part in cell F15. Upon hitting the F9 key you will see
    {43287;43287;43385;43387;FALSE;FALSE;FALSE;FALSE} just as Fx will show. In this case you will be examining the parts out of context. Just be aware of that.

    (By the way those 5 digit numbers are actually dates.) If you are not aware of it dates/times are numbers. The integers are the dates. They are the number of days since 1/1/1900.

    I hope this helps.

+ 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. Accounting for Overlapping Dates in Formula
    By ChrisHook in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-17-2018, 10:02 AM
  2. Replies: 0
    Last Post: 09-13-2011, 01:03 AM
  3. [SOLVED] Re-occuring Inspection Dates
    By Belarny Mic in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 11:05 AM
  4. Re-occuring Inspection Dates
    By Bill Kuunders in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 07:05 AM
  5. Re-occuring Inspection Dates
    By Bill Kuunders in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 06:05 AM
  6. [SOLVED] Re-occuring Inspection Dates
    By Belarny Mic in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  7. Re-occuring Inspection Dates
    By Belarny Mic in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM

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