+ Reply to Thread
Results 1 to 6 of 6

Dynamic YTD Function

  1. #1
    Registered User
    Join Date
    04-28-2015
    Location
    New York
    MS-Off Ver
    2007
    Posts
    7

    Dynamic YTD Function

    I have one row of month-years (mmm-yy) in a file from 2014-2019 across 72 columns. I would like to calculate the YTD number of a given month-year for many line-items of an income statement going down each row below the dates. I have had luck with formulas like sum and index however when I close the file with months my calculation in my other file is giving me a reference error.

    In addition to this, I would like to go down each row of line items to calculate the YTD number; I have index references for the appropriate row number.

    An example would be if I choose to view Sept-2016 YTD of Revenue. I would like the formula to go into the destination file - pull the sum of numbers from Jan-16 through Sept-16. Similarly, I would like this formula to work for expenses, income, etc.

    Has anyone ran into this before? If so, could you please help on brainstorming a formula?

    I have heard that sum and sumif formulas ref out when the destination file is closed - apparently sumproducts are able to work despite the file being closed.

    Thanks,
    Mike

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Dynamic YTD Function

    Why bother with this issue of having the data in another workbook, why not just pull it into the workbook doing the reporting? Then your YTD formula issues is a non issue.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Registered User
    Join Date
    04-28-2015
    Location
    New York
    MS-Off Ver
    2007
    Posts
    7

    Re: Dynamic YTD Function

    Hi Mike,

    I am pulling 7 business unit financial models into one workbook designated as a high level reporting tool (mentioned above file). These models are quite large with about 800 line items all being fed through Cognos and they have forecasted calculations.

    Any suggestions??

  4. #4
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Dynamic YTD Function

    In the past I used simple VBA to pull the dataset in to ONE tab, that then allowed for absurdly simple calculations and reporting, but I don't know how confident you are in VBA. You don't want a solution you dont understand and can't audit and/or modify.

  5. #5
    Registered User
    Join Date
    04-28-2015
    Location
    New York
    MS-Off Ver
    2007
    Posts
    7

    Re: Dynamic YTD Function

    I am getting better with VBA - I have created some macros. I will have to start practicing more. I hardcoded the models in my file so I can do the calculation btw - will take up some space but whatever!

  6. #6
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Dynamic YTD Function

    Yeah, even a simple copy and paste to avoid the issues with data connections is typically my preferred method. More than the formula issues, I can't stand having to audit LINKED files.... it drives me insane.

+ 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. Dynamic IF function
    By Amarjeet Singh in forum Excel General
    Replies: 6
    Last Post: 03-31-2015, 07:20 AM
  2. dynamic function
    By petern01 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-11-2012, 06:49 AM
  3. Dynamic row in function
    By papaexcel in forum Excel General
    Replies: 4
    Last Post: 07-22-2010, 12:18 PM
  4. Dynamic sum function
    By mkvassh in forum Excel General
    Replies: 2
    Last Post: 09-08-2009, 07:53 AM
  5. Dynamic function creation
    By nougain in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-05-2007, 06:25 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