+ Reply to Thread
Results 1 to 2 of 2

Challenging array formula (useful for financial modelling)

  1. #1
    Registered User
    Join Date
    06-28-2005
    Posts
    81

    Challenging array formula (useful for financial modelling)

    Hi, I need to solve a problem in excel with an array formula but I don't know how. I have managed to do it using different cells (see example) but I can't reproduce this behaviour with array formulas. I need to do this because the output array will be then used in a bigger formula and therefore the calculation must be "self-contained".

    It's difficult to explain the mechanics of what I intend to do but the example file is quite easy to follow.

    My ultimate goal is, given an array of dates (say end of each trimester but could be any date as long as they are in ascending order), to calculate an array (for every collumn - i.e. end of period) which gives the percentage of the preceiding periods that has to be taken in order to have a cumulative number of days of 250days (being the date of the current collumn tha last of this 250 days)

    For anyone who is accustomed to financial models I need this for calculating the rolling last 250 days of sales in a model where the ending dates of the periods aren't evenly spaced and might change at each run of the model (therefore there can't be any hard coding).

    thanks in advance for any help and sorry for my english.

    Please refer to the example which is easier to follow than my goofy english

    Paolo
    Attached Files Attached Files

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Challenging array formula (useful for financial modelling)

    Hello Paolo, try this formula array entered in B6:H6

    =IF(B2-SUBTOTAL(9,OFFSET(H5,0,0,1,COLUMN(B5:H5)-COLUMNS(B5:H5)-2))>0,1,IF(B5:H5+B2-SUBTOTAL(9,OFFSET(H5,0,0,1,COLUMN(B5:H5)-COLUMNS(B5:H5)-2))>0,(B5:H5+B2-SUBTOTAL(9,OFFSET(H5,0,0,1,COLUMN(B5:H5)-COLUMNS(B5:H5)-2)))/B5:H5,0))
    Audere est facere

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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