+ Reply to Thread
Results 1 to 5 of 5

Sumproduct, Indirect, Address over multiple sheets and varying row lengths

  1. #1
    Registered User
    Join Date
    06-18-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    23

    Sumproduct, Indirect, Address over multiple sheets and varying row lengths

    Dear all,

    I have a summary sheet which I'd like to refer to the input sheets (of which there are 3 departments) and SUM the fruits by month and by department.

    Each department has to be in a table format, but they will all vary in length each month.

    I've tried to use the formula found in C9 on the summary sheet. This uses SUMPRODUCT, INDIRECT and ADDRESS. I'm trying to create ranges of cells based on the first and last rows of each department table and refer to these through INDIRECT. However, I keep coming back with #REF!.

    Please is someone able to point out to me a way to complete this formula? Or if there is in fact a better way to solve this problem of summing across multiple sheet with varying row lengths?

    All help is appreciated.

    ThanksNew Fruits.xlsx

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Sumproduct, Indirect, Address over multiple sheets and varying row lengths

    try below
    =SUMPRODUCT((INDIRECT("'"&C$4&"'!"&ADDRESS(C$3,3)&":"&ADDRESS(C$5,3))=$B9)*INDIRECT("'"&C$4&"'!"&ADDRESS(C$3,16)&":"&ADDRESS(C$5,16)))

    You can also try sumif as below
    =SUMIF(INDIRECT("'"&C$4&"'!"&"C6:C5000"),Summary!$B9,INDIRECT("'"&C$4&"'!"&"P6:P5000")) incase you dont want to use specified row numbers.

    or sumif with specified row numbers
    =SUMIF(INDIRECT("'"&C$4&"'!"&ADDRESS(C$3,3)&":"&ADDRESS(C$5,3)),Summary!$B9,(INDIRECT("'"&C$4&"'!"&ADDRESS(C$3,16)&":"&ADDRESS(C$5,16))))
    Last edited by hemesh; 05-07-2014 at 12:52 PM.
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Sumproduct, Indirect, Address over multiple sheets and varying row lengths

    Maybe with the macro below.

    See the attached file.

    Please Login or Register  to view this content.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Registered User
    Join Date
    06-18-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Sumproduct, Indirect, Address over multiple sheets and varying row lengths

    Dear hemesh,

    Thank your for your reply. I've used all three of your solutions and they work perfectly. Many thanks for your help.

    Oeldere I shall try your solution once I have finished my report.

    Kind regards.

  5. #5
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Sumproduct, Indirect, Address over multiple sheets and varying row lengths

    Thanks for the feedback and I am glad, could help.

+ 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] Concatenate with varying lengths and data
    By Unident in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-21-2013, 04:39 PM
  2. Best way to store lists of varying lengths
    By jik_ff in forum Access Tables & Databases
    Replies: 5
    Last Post: 04-17-2013, 08:54 AM
  3. [SOLVED] Mixing INDIRECT & ADDRESS with SUMPRODUCT - Confusion with Strings
    By apembo in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-05-2012, 09:16 PM
  4. Replies: 0
    Last Post: 08-17-2012, 02:02 PM
  5. Mixing INDIRECT & ADDRESS with SUMPRODUCT
    By LoveCandle in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-04-2006, 03:30 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