+ Reply to Thread
Results 1 to 7 of 7

Excel Formula/Function to find total number of non-overlapping months

  1. #1
    Registered User
    Join Date
    02-21-2012
    Location
    Lagos
    MS-Off Ver
    Excel 2007
    Posts
    67

    Excel Formula/Function to find total number of non-overlapping months

    Hi Guys, good day to you all. I have 10 projects, each with a start and an end date. I need to find the number of months in between each project's start date and end date without counting overlapping months. For example;

    Project one, I count three months from Jan 2015 - Mar 2015
    If project two runs from Jan 2015 - Jun 2015, I wont be counting 6 months but 3 months as I wont count the overlapping months.

    I have attached an excel which has a sample data.

    Thanks.
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,064

    Re: Excel Formula/Function to find total number of non-overlapping months

    For the examples posted in your Excel sheet, what are the expected answers? I got a bit confused when trying to figure it out!!
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    02-21-2012
    Location
    Lagos
    MS-Off Ver
    Excel 2007
    Posts
    67

    Re: Excel Formula/Function to find total number of non-overlapping months

    Thanks Glenn for taking out time to check this out. I have updated the excel with appropriate examples and explanations.

    Thanks again.

    Regards.
    Attached Files Attached Files
    Last edited by akynyemi; 09-05-2015 at 04:55 AM.

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Excel Formula/Function to find total number of non-overlapping months

    I came up with 13 months in Project 10. My attempt to check this in cells F12:G12 appear to confirm that it is 13 months. Please check my work.

    The attached starts with this in E3

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

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

    Re: Excel Formula/Function to find total number of non-overlapping months

    Another way. This one does return 12 for Project 10.

    Again in E3
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Then array-entered / filled down this one in E4
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    I put these in column H.

    Late Edit: The formula in my previous post has an error. I forgot to exclude the first day of the month in column D. So disregard that one. My apologies.
    Last edited by FlameRetired; 09-06-2015 at 10:03 PM. Reason: typos / shorten formula

  6. #6
    Registered User
    Join Date
    02-21-2012
    Location
    Lagos
    MS-Off Ver
    Excel 2007
    Posts
    67

    Re: Excel Formula/Function to find total number of non-overlapping months

    Hi FlameRetired,

    I'm awed and dont know what to say as my request seemed impossible but you solved it.

    Thanks. You're a great guy.

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

    Re: Excel Formula/Function to find total number of non-overlapping months

    You're welcome, akynyemi. It was my pleasure .... and I must admit this one was more challenging than it first appeared and great fun! Thanks for posting. Thanks for the kind words, and thanks for the rep.

+ 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] Please help to Find the last 6 Months Total Qty from Monthly Data (SUMPRODUCT FUNCTION)
    By PMH2384 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-03-2015, 05:44 AM
  2. Replies: 2
    Last Post: 07-22-2014, 02:15 AM
  3. [SOLVED] Formula to Find Total Number of Different Value Variations
    By artiststevens in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-07-2014, 04:04 PM
  4. [SOLVED] Use Function to find total number of times a word is used on multiple worksheets.......
    By rufiotgl in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-24-2013, 10:52 AM
  5. Replies: 0
    Last Post: 07-30-2012, 04:51 PM
  6. [SOLVED] function string to find non-overlapping ranges of values
    By carbonboywonder in forum Excel General
    Replies: 13
    Last Post: 05-01-2012, 03:59 PM
  7. [SOLVED] a formula to find total compound amount after given number of yea.
    By ronan in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-01-2005, 05:06 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