+ Reply to Thread
Results 1 to 6 of 6

Return a value for a date that is between two dates

  1. #1
    Registered User
    Join Date
    06-22-2011
    Location
    The Woodlands, Texas
    MS-Off Ver
    Excel 2010
    Posts
    4

    Question Return a value for a date that is between two dates

    I have a debt schedule that only has data rows for payment intervals that are semi-annually (i.e. 6/30 and 12/31 and nothing for the months in between). I need a Balance Sheet to look up the monthly principal balance.

    For example, if payments are on 6/30 and 12/31 then the principal balance should be the same for Dec - May and the same for Jun - Nov. I am creating a template and need the Balance Sheet to look up these balances and to do so if the interval changes or debt issue date changes under different scenarios.

    I've tried SUMPRODUCT, IF(AND), IF with multiple IF criteria. I haven't been able to find the right combination or structure.

    Thanks in advance.

    Jay

    EDIT: added example file, also, forgot that one sheet has time vertically and the other horizontally.
    Attached Files Attached Files
    Last edited by txag76022; 04-10-2013 at 05:16 PM. Reason: Updating with file

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Return a value for a date that is between two dates

    Hi and welcome to the forum :0

    Hard to offer suggestions without seeing what you are working with?`

    However, if the value will only ever be in once within each time frame, try using a sumifS() function...

    =sumifS(sum range, range with dates,">="&start-date, range with dates,"<="&end-date,
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Valued Forum Contributor Harribone's Avatar
    Join Date
    02-24-2013
    Location
    Midlands, UK
    MS-Off Ver
    Excel 2019/365
    Posts
    570

    Re: Return a value for a date that is between two dates

    Can you upload an example workbook (use false data) to help us see excatly what you want to achieve. Can you also include a manually entered answer or two so we can make sure we get the correct result.
    Say thanks, click *

  4. #4
    Registered User
    Join Date
    06-22-2011
    Location
    The Woodlands, Texas
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Return a value for a date that is between two dates

    I added an example file. Thanks for your help!

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Return a value for a date that is between two dates

    I used this in E47, copied across...

    =E46-SUMIFS('Debt - Assump'!$H:$H,'Debt - Assump'!$B:$B,">="&'Balance Sheet'!E$6,'Debt - Assump'!$B:$B,"<"&'Balance Sheet'!F$6)

  6. #6
    Registered User
    Join Date
    06-22-2011
    Location
    The Woodlands, Texas
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Return a value for a date that is between two dates

    Unfortunately that doesn't provide the desired result. It relies upon manual inputs that I am trying to avoid. I need automation based upon the input cells on the Debt tab.

    I need the Balance Sheet tab to Lookup the principal balance for each month based upon the dates in the Balance Sheet tab.

    Thanks for the attempt!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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