+ Reply to Thread
Results 1 to 7 of 7

Return SUM of values as an ARRAY

  1. #1
    Registered User
    Join Date
    01-01-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010, 2013, 2016
    Posts
    47

    Return SUM of values as an ARRAY

    Hi all,

    I am working with various financial functions currently in excel, such as NPV and FVSCHEDULE, and these work fine for what I need - however there is an additional element I would like to see. I have an array of YOY perpetual growth%, I would like to return the sum of those growths in an spill array.

    Please Login or Register  to view this content.
    Last edited by James McEwan; 11-18-2021 at 10:22 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    02-06-2013
    Location
    Germany
    MS-Off Ver
    365
    Posts
    490

    Re: Return SUM of values as an ARRAY

    If values in A1 to A4:

    =SUBTOTAL(9,OFFSET(A1,,,SEQUENCE(4)))

    or: =SUBTOTAL(9,OFFSET(A1,,,ROW(A1:A4))) - may have to be entered with Ctrl+Shift+Enter, depending on your Excel version.

  3. #3
    Registered User
    Join Date
    01-01-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010, 2013, 2016
    Posts
    47

    Re: Return SUM of values as an ARRAY

    Awesome - this worked exactly how I needed it. Thanks!

  4. #4
    Registered User
    Join Date
    01-01-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010, 2013, 2016
    Posts
    47

    Re: Return SUM of values as an ARRAY

    Hi again,

    I know this is marked as resolved, but I have one additional question, with those original perpetual growth % and a cash value, can I return an spill array containing each step of the FVSCHEDULE?

    Please Login or Register  to view this content.
    Again thank you for your help!

  5. #5
    Valued Forum Contributor
    Join Date
    02-06-2013
    Location
    Germany
    MS-Off Ver
    365
    Posts
    490

    Re: Return SUM of values as an ARRAY

    I don't know if FVSCHEDULE can spill and to be honest, in over 13 years, I've never had to used that function once despite working in the finance industry.

    You can do the following in cells A1 to A4: 1.03 / 1.02 / 1.01 / 1.02 and then get your desired results:

    =10000*SUBTOTAL(6,OFFSET(A1,,,ROW(A1:A4)))

    And I'm not even sure if even that simple "1+" calculation could be incorporated in the formula.

  6. #6
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,292

    Re: Return SUM of values as an ARRAY

    See the file
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    01-01-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010, 2013, 2016
    Posts
    47

    Re: Return SUM of values as an ARRAY

    Quote Originally Posted by RaulSerg View Post
    I don't know if FVSCHEDULE can spill and to be honest, in over 13 years, I've never had to used that function once despite working in the finance industry.

    You can do the following in cells A1 to A4: 1.03 / 1.02 / 1.01 / 1.02 and then get your desired results:

    =10000*SUBTOTAL(6,OFFSET(A1,,,ROW(A1:A4)))

    And I'm not even sure if even that simple "1+" calculation could be incorporated in the formula.
    This is awesome - exactly what I needed. I had to add back in the SEQUENCE for the SPILL to work but that was all.

+ 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. [SOLVED] How to return the first, second, third bottom array values?
    By QuantEdge in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-22-2018, 10:04 AM
  2. [SOLVED] If range contains one of the values in the array, return the index of the array
    By LawCarrot in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-01-2018, 04:12 AM
  3. Look across array and return non-zero values sequentially
    By MM91 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-02-2016, 08:50 AM
  4. [SOLVED] Return values from an array
    By JungleJme in forum Excel General
    Replies: 2
    Last Post: 06-25-2012, 05:14 AM
  5. Find a value in an array and return multiple values in an adjacent array
    By tonbra in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-02-2012, 08:35 PM
  6. Store cell values in an array and return values on specific condition
    By gmalpani in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 11-27-2011, 06:43 AM
  7. Use array to return array of values
    By Brad in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-30-2006, 01:00 PM

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