+ Reply to Thread
Results 1 to 7 of 7

Sumproduct and indirect array

  1. #1
    Registered User
    Join Date
    08-06-2013
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    8

    Sumproduct and indirect array

    Hi. I have two arrays specified by the following formulas: Array A is "OFFSET($I$11,0,0,5)" and array B is "OFFSET(J11,0,0,5)". When i put in the formula "SUMPRODUCT(OFFSET($I$11,0,0,5),OFFSET(J11,0,0,5))" it works fine and I get a result.

    What I want to do is something like Sumproduct(A1,B1), where A1 refers to array A and B1 refers to array B. I think I should be using indirect here (something like sumproduct(indirect(A1),indirect(B1)) where A1 = "OFFSET($I$11,0,0,5)" and B1 is "OFFSET(J11,0,0,5)", but that is giving me #Ref.

    Does anyone have any ideas?

    Thanks so much for your help.

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Sumproduct and indirect array

    Please Login or Register  to view this content.
    where A1=I11 and B1=J11

  3. #3
    Registered User
    Join Date
    08-06-2013
    Location
    Cheltenham, England
    MS-Off Ver
    Excel 2013
    Posts
    19

    Re: Sumproduct and indirect array

    What's the result you're hoping to see if it works?
    Can you attach a sample version of your workbook and type on what you hope to see?
    Ta,

    Z

  4. #4
    Registered User
    Join Date
    08-06-2013
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Sumproduct and indirect array

    Hi. Thank you for your reply but it is not what I am looking for. I am trying to replace the entire array call (Offset(a,a,a,a) with one cell reference. In my actual spreadsheet I have a super long formula (6-7 lines long) with many different references to different arrays. I am trying to simplify the formula by simplifying each Offset(a,a,a,a) to one cell reference.

    Thanks.

  5. #5
    Registered User
    Join Date
    08-06-2013
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Sumproduct and indirect array

    I have attached a sample spreadsheet. I would be looking for "Formula 2" to have the same value as formula 1, but to refer to the arrays as cell references located outside the formula 2 formula.

    Thanks.
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Sumproduct and indirect array

    You cannot use offset inside the indirect but you can use variables for every piece of the offset using Indirect.

  7. #7
    Registered User
    Join Date
    08-06-2013
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Sumproduct and indirect array

    SOLUTION (in case anyone else is looking). What you need to do instead of using offset is convert the array into A1 notation (I think that is what it is called). For example, if I have "OFFSET(D18,0,0,5)" that is equivalent to "SUBSTITUTE(ADDRESS(1,COLUMN(D18),4),"1","")&ROW(D18)&":"&SUBSTITUTE(ADDRESS(1,COLUMN(D18),4),"1","")&ROW(D18)+5". If I put the second formula in a cell I get D18:D23, which can then be referenced from within an sumproduct(indirect(),indirect()).

    Thanks to everyone for the ideas.

+ 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. Replies: 6
    Last Post: 03-09-2011, 08:01 AM
  2. the use of indirect in array or sumproduct formulas
    By JoshuaSQ in forum Excel General
    Replies: 8
    Last Post: 12-18-2008, 12:09 PM
  3. Sumproduct array using Indirect Problem
    By reggie1000 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-07-2008, 12:19 PM
  4. Help with Sumproduct with Indirect
    By JE McGimpsey in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-06-2005, 07:05 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