+ Reply to Thread
Results 1 to 6 of 6

Create Dynamic Formula

  1. #1
    Registered User
    Join Date
    02-10-2011
    Location
    Whitefish, Montana
    MS-Off Ver
    Excel 2011 for mac
    Posts
    16

    Create Dynamic Formula

    Follow the formula in B16 and C16. I'm looking for a VBA or fancy formula to continue that pattern into D16, etc. without having to click on every cell required to get the total of "33"
    Attached Files Attached Files
    Last edited by mbsmeltzer; 02-10-2011 at 02:04 PM. Reason: simplified question

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Create Dynamic Formula

    Welcome to the Board.

    Note (given first post) I changed your title to something a little more appropriate and in keeping with Forum Rules - going forward please bear the requirements in mind.

    Formula wise:

    Please Login or Register  to view this content.
    however, the above is and volatile and brute force - moreover though it generates the correct results for your sample I'm not entirely sure it will be the long term solution.

  3. #3
    Registered User
    Join Date
    02-10-2011
    Location
    Whitefish, Montana
    MS-Off Ver
    Excel 2011 for mac
    Posts
    16

    Re: Create Dynamic Formula

    Wow! That is an amazing formula to look at. Thank you very much. I've transfered it into my spreadsheet at C45 in the Jan 11 tab. I'm having a hard time understanding how you pick up data from the Feb 11 tab in C8. I've changed the formula the way I think it should work, but is't not counting that last number from the Feb 11 tab.

    Thank you so much for your help on this!
    Attached Files Attached Files

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Create Dynamic Formula

    I am in the middle of cooking so time is limited... given sample does the below work for you in the meantime ?

    Please Login or Register  to view this content.
    I will post back with a more generic/transparent solution in due course

  5. #5
    Registered User
    Join Date
    02-10-2011
    Location
    Whitefish, Montana
    MS-Off Ver
    Excel 2011 for mac
    Posts
    16

    Re: Create Dynamic Formula

    Indeed it does! I love the part about you cooking. Makes me think of the difference between me staring at that formula for hours and you hammering it out in a minute flat! Thank you

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Create Dynamic Formula

    This is perhaps slightly more transparent

    Please Login or Register  to view this content.
    The 1st SUMPRODUCT relates to current sheet matrix and starts from bottom left (up & left to right)

    The 2nd SUMPRODUCT relates to next sheet matrix and starts effectively from top row (down & right to left)

    The references to C8 should really relate to Feb 11 but I think it safe to assume each monthly matrix to be identical.

    Extending the above assumption further...

    You will note in the above that the sheet reference (mmm yy) is now dynamic also (based off date in A1).

    Result of this should be that you could apply the same formula to all monthly sheets (bar last) simultaneously without need for alteration in any way (other than modifying excess days)

    Be aware INDIRECT is Volatile and SUMPRODUCTs are not very efficient so these calcs may slow performance.

    On a final note there's probably a better approach - perhaps tomorrow will bring inspiration (assuming not forthcoming from others in the meantime....)

+ 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