+ Reply to Thread
Results 1 to 13 of 13

YTD with dynamic spilled array

  1. #1
    Registered User
    Join Date
    12-12-2019
    Location
    England
    MS-Off Ver
    365 insider fast
    Posts
    8

    YTD with dynamic spilled array

    Hi All

    In this example i would like formulas in cells Q6 & Q7 that will give me the YTD figures.

    I can get this to work but not with a dynamic array that will spill like the formulas in cells Q3 Q4 & Q5

    Any ideas will be great

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: YTD with dynamic spilled array

    =sum($q4:q4)

  3. #3
    Registered User
    Join Date
    12-12-2019
    Location
    England
    MS-Off Ver
    365 insider fast
    Posts
    8

    Re: YTD with dynamic spilled array

    Quote Originally Posted by tim201110 View Post
    =sum($q4:q4)
    Thanks Tim

    This does work however it doesn't spill which is what i need

  4. #4
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: YTD with dynamic spilled array

    what do you need?

  5. #5
    Registered User
    Join Date
    12-12-2019
    Location
    England
    MS-Off Ver
    365 insider fast
    Posts
    8

    Re: YTD with dynamic spilled array

    I need it to spill like the other formulas so it will automatically expand as the data grows

  6. #6
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,908

    Re: YTD with dynamic spilled array

    Try:

    =SUMIF(Q$3#,"<="&Q$3#,Q4#)
    and
    =SUMIF(Q$3#,"<="&Q$3#,Q5#)
    Rory

  7. #7
    Registered User
    Join Date
    12-12-2019
    Location
    England
    MS-Off Ver
    365 insider fast
    Posts
    8

    Re: YTD with dynamic spilled array

    Awesome

    Thanks Rory, Thats what I'm after. I just need to work out how to reset the ytd to zero when the next year is added
    Last edited by AliGW; 12-14-2019 at 07:03 AM. Reason: Please don't quote unnecessarily!

  8. #8
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,908

    Re: YTD with dynamic spilled array

    Use SUMIFS with the 1st Jan of the year in row 3 and the actual date as the criteria.
    Last edited by rorya; 12-14-2019 at 07:23 AM.

  9. #9
    Registered User
    Join Date
    12-12-2019
    Location
    England
    MS-Off Ver
    365 insider fast
    Posts
    8

    Re: YTD with dynamic spilled array

    I have got it to work with a helper row ( see attached )which is fine as the data will never be on show its just used as data for dynamic charting.

    Thanks again..... its simple when you see it but i couldn't get my head around it!!
    Attached Files Attached Files
    Last edited by AliGW; 12-14-2019 at 07:38 AM. Reason: Please don't quote unnecessarily!

  10. #10
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,908

    Re: YTD with dynamic spilled array

    If you don't want the helper row, it would be:

    =SUMIFS(Q4#,Q3#,"<="&Q3#,Q3#,">="&DATE(YEAR(Q3#),1,1))

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,722

    Re: YTD with dynamic spilled array

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. As you are new here, I will do it for you this time: https://www.ozgrid.com/forum/index.p...spilled-array/.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  12. #12
    Registered User
    Join Date
    12-12-2019
    Location
    England
    MS-Off Ver
    365 insider fast
    Posts
    8

    Re: YTD with dynamic spilled array

    Awesome!!!!
    Last edited by AliGW; 12-14-2019 at 07:48 AM. Reason: Please don't quote unnecessarily!

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,722

    Re: YTD with dynamic spilled array

    Administrative Note:

    Please don't quote whole posts, especially when you are responding to the one immediately preceding your own - it's just clutter. It's OK to quote if you are responding to a post out of sequence, but limit quoted content to a few relevant lines that makes clear to whom and what you are responding. Thanks!

    For normal conversational replies, try using the QUICK REPLY box below or the REPLY button instead of REPLY WITH QUOTE.

    Please also note post #11.

+ 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. YTD with spilled dynamic array
    By MatthewHart74 in forum Office 365
    Replies: 0
    Last Post: 12-12-2019, 12:05 PM
  2. [SOLVED] Populate Dynamic Array from Cell Values and write to Dynamic Range
    By TFiske in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-22-2018, 09:09 AM
  3. [SOLVED] Looping thru arrays with dynamic names. Array1/2/3/5, how to array(Array & i) syntax?
    By graym463 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-24-2015, 10:15 AM
  4. Dynamic Row Lookup Array within Array formula
    By OLLY-7 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-17-2014, 04:55 PM
  5. How to Preserve a Dynamic Array When the Array is Created
    By Excel Guy 123 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 05-09-2014, 12:50 PM
  6. Loop new messages containing a table, populate a dynamic array, paste array to Excel
    By laripa in forum Outlook Programming / VBA / Macros
    Replies: 1
    Last Post: 05-19-2013, 07:20 AM
  7. [SOLVED] Populate Listbox with all rows of a dynamic array where elements of a single array match.
    By Tayque_J_Holmes in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 08-07-2012, 04:54 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