+ Reply to Thread
Results 1 to 4 of 4

Iterate Through an Array of Values to Determine SUMPRODUCT?

  1. #1
    Registered User
    Join Date
    01-18-2021
    Location
    california, united states
    MS-Off Ver
    MS365 (PC) Version 2209
    Posts
    39

    Iterate Through an Array of Values to Determine SUMPRODUCT?

    Hello all,

    I'm wondering if this situation is possible. Essentially, I have a SUMPRODUCT that I want to compute for multiple years. For example, for 2022, I'd have the following:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    I have multiple years that I want to sum up, so in order to get my desired result, I'd have to sum this formula multiple times for every year:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    And so on. I was wondering if there is any way to add the desired years to an array and have the formula written only one time, for example, something like this:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This formula doesn't work because the amount of items in a does not equal the range for Table1[Year] or Table2[Date]. Is something like this even possible?

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Iterate Through an Array of Values to Determine SUMPRODUCT?

    Please see the yellow ribbon above and attach a sample workbook along with desired results.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: Iterate Through an Array of Values to Determine SUMPRODUCT?

    Hi. Before we get going on this one...

    Is your forum profile showing the Excel version that you need this request to work with?

    The best solutions often rely on knowing WHICH version of Office (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date. If you aren't sure, in Excel go to File/Account and report what it says below the MS logo at the top of that page. If your version is for Mac, please also state this.

    The three most recent versions of Excel are Excel 2019, Excel 2021 and MS365 - if you are using MS365, please give this name along with the Version number in your profile (e.g. MS365 (PC) Version 2211). The version number is in the About Excel section further down the Account page.

    Cheers,

    Glenn.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Registered User
    Join Date
    01-18-2021
    Location
    california, united states
    MS-Off Ver
    MS365 (PC) Version 2209
    Posts
    39

    Re: Iterate Through an Array of Values to Determine SUMPRODUCT?

    Hi Glenn,

    Sorry about that, I've updated my version to M365 so I have access to all those fun array formulas. I apologize but I'm currently blocked from uploading files onto the website. I can attach a picture of a sheet if that helps illustrate my question more clearly.

+ 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. Use an array to iterate through a matrix
    By Aoiumi in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-29-2019, 12:01 AM
  2. Iterate through rows, or create an array?
    By fkoehler in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-14-2018, 01:49 PM
  3. [SOLVED] Iterate through Array While in For Each loop
    By stusic in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-01-2017, 03:08 PM
  4. [SOLVED] Iterate Array Names with Integers
    By AlvaroSiza in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-06-2014, 10:32 AM
  5. Iterate through two lists in parallel to determine B for corresponding A
    By babbeleme1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-02-2013, 08:43 PM
  6. determine if values in an array match criteria.
    By smorkun in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-08-2013, 08:58 PM
  7. Function/Macro To Determine High Values From Unsorted Array
    By damalco in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-08-2010, 11:40 AM

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