+ Reply to Thread
Results 1 to 10 of 10

Formula to get the inclusive dates in between start and end date

  1. #1
    Forum Contributor
    Join Date
    09-09-2012
    Location
    Manila,Philippines
    MS-Off Ver
    Excel 2003
    Posts
    153

    Formula to get the inclusive dates in between start and end date

    Hi,

    I need some help to figure out what formula should I use for this kind of situation.

    I have a table where I assigned Months (Jan-Dec), Current Month YTD (e.g. Nov YTD) and Dec YTD in the column field. Company Name and Year in rows.

    For a particular company for example, Co.AAA. The Start Date is Oct 1, 2009 and the contract will end on Sep 30, 2014.

    If my current reporting month is Nov 2013, From the table, I need to get the sum up the data that correspond from this dates inclusive in start and end date of Co.AAA.

    Inclusive Dates are:
    Dec YTD 2013
    Dec YTD 2012
    Dec YTD 2011
    Dec YTD 2010
    Dec 2009
    Nov 2009
    Oct 2009


    If this is not possible, what other solution I can use to get the correct number?

    Thanks!

  2. #2
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: Formula to get the inclusive dates in between start and end date

    Hi, could you upload a sample file with expected result and description/comment?



    _______________________________________________________________________________________________________________________________
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin

  3. #3
    Forum Contributor
    Join Date
    09-09-2012
    Location
    Manila,Philippines
    MS-Off Ver
    Excel 2003
    Posts
    153

    Re: Formula to get the inclusive dates in between start and end date

    Hi,

    Attached is the sample workbook.

    The only given data are reporting year, reporting month, start date, end date of each company name and the table. Inclusive dates were based on the start and end date.

    So for example: If my reporting month is Nov 2013 and Co.AAA start date is Oct 1, 2009 and end date is Sep 1, 2014, the inclusive dates should be Dec YTD 2013, Dec YTD 2012, Dec YTD 2011, Dec YTD 2010, Dec 2009, Nov 2009, Oct 2009 and Sep 2009.

    As you have noticed, since my reporting date is Nov 2013, Dec YTD of the current reporting year is always included down to when the company started in Sep 2009.

    Another example, Co.BBB's start date is Nov 2011 and end date is Mar 2015. the inclusive dates are: Dec YTD 2013, Dec YTD 2012, Dec 2011 and Nov 2011.

    Thanks in advance for the help!
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: Formula to get the inclusive dates in between start and end date

    In your spreadsheet example Co. AAA which start date is 1-Oct-09 and End date 30-Sep-14, why Sep 2009 included?
    If reporting year is 2014 and reporting month is Feb, what dates shall be inclusive for Co. AAA with start/end date remain intact?



    _______________________________________________________________________________________________________________________________
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin

  5. #5
    Forum Contributor
    Join Date
    09-09-2012
    Location
    Manila,Philippines
    MS-Off Ver
    Excel 2003
    Posts
    153

    Re: Formula to get the inclusive dates in between start and end date

    Hi,

    Sorry please exclude Sep 2009 in the spreadsheet and this will be the correct inclusive dates:Nov YTD 2013 (which we use the reporting month YTD and year), Dec YTD 2012, Dec YTD 2011, Dec YTD 2010, Dec 2009, Nov 2009 and Oct 2009.

    If reporting year is 2014 and reporting month is Feb, the inclusive dates will be
    Feb YTD 2014 (reporting month YTD and reporting year), Dec YTD 2013, Dec YTD 2012, Dec YTD 2011, Dec YTD 2010, Dec 2009, Nov 2009 and Oct 2009.

    In the spreadsheet, if you get the value that corresponds to each inclusive dates, you'll get the andswer. But the formula should be applicable with all other company names with start and end date.

  6. #6
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: Formula to get the inclusive dates in between start and end date

    Something fishy with your Nov YTD, why need this field if it's always same as Dec YTD? I thought Nov YTD should be sum of Jan to Nov?
    Using your inclusive dates, I got the sum total of -612,086.84, but if I do a manual sum for Co. AAA from 1-Oct-09 till 30-Sep-14 I got -570,200.94

    Try this formula that sum the range for each month (instead of getting it from Nov/Dec YTD):
    Formula: copy to clipboard
    Please Login or Register  to view this content.




    _______________________________________________________________________________________________________________________________
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin

  7. #7
    Forum Contributor
    Join Date
    09-09-2012
    Location
    Manila,Philippines
    MS-Off Ver
    Excel 2003
    Posts
    153

    Re: Formula to get the inclusive dates in between start and end date

    Hi,

    If this can't be possible, what about this one: Using the Jan-Dec column (forget about the YTD columns) and Co.AAA and years in rows, Start Date is still Oct,2009 and my reporting date is Nov 2013. I need to get the sum of:
    Oct-Dec 2009
    Jan-Dec 2010
    Jan-Dec 2011
    Jan-Dec 2012
    Jan-Nov 2013.

  8. #8
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: Formula to get the inclusive dates in between start and end date

    Hi krazyhype19, did you try out the solution that I proposed in post#6?



    _______________________________________________________________________________________________________________________________
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin

  9. #9
    Forum Contributor
    Join Date
    09-09-2012
    Location
    Manila,Philippines
    MS-Off Ver
    Excel 2003
    Posts
    153

    Re: Formula to get the inclusive dates in between start and end date

    Hi Alvin,

    Thanks! It works! Sorry I didn't notice your reply so early to send a follow up... Thanks very much!

  10. #10
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: Formula to get the inclusive dates in between start and end date

    No worries.
    You're welcome, and thanks for the feedback



    _______________________________________________________________________________________________________________________________
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin

+ 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] Sumif formula for inclusive Dates
    By Yari1986 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-16-2013, 05:08 AM
  2. Replies: 7
    Last Post: 03-26-2013, 08:32 AM
  3. Date Range - Start and End Date - Identify dates in a quarter
    By Nikki Fox in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-12-2012, 06:05 AM
  4. Replies: 3
    Last Post: 08-14-2012, 05:14 AM
  5. Replies: 5
    Last Post: 08-02-2011, 07:11 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