+ Reply to Thread
Results 1 to 4 of 4

SUMPRODUCT, SUMIFS, INDIRECT how to have a flexible lookup range across multiple worksheet

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

    SUMPRODUCT, SUMIFS, INDIRECT how to have a flexible lookup range across multiple worksheet

    Dear all,

    I am able to sum costs based on sheet name criteria and lookup criteria for the enlcosed file.

    However, I have had to manually enter the lookup range in the SUMPRODUCT(SUMIFS(INDIRECT formula on the summary sheet: (F1:F10 and B1:B10).

    Each lookup sheet has a table with the detailed data. If this data extends beyond 10 rows, this will obviously not be pulled through to the summary sheet.

    Without having to enter a large number into the formula look up range, say F1:F10000, is there a way of the SUMPRODUCT formula being able to detect the last row to sum to?

    Perhaps it is possible for the lookup to be based on the criteria, and searches on the appropriate table name.

    Thanks in advance.Fruits_3.xlsx
    Last edited by dma1976; 06-19-2014 at 04:56 AM.

  2. #2
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,841

    Re: SUMPRODUCT, SUMIFS, INDIRECT how to have a flexible lookup range across multiple works

    Everything is already set up for a smooth solution. The tables are of the Excel Table feature kind, that will expand automatically when data is added. These tables also allow for referencing columns by the header name and hence will provide exactly what you want. I implemented this in the attached workbook.
    Also, these tables are already named with the same name as the sheet so it seems like someone had a plan. Referencing directly to the table name means that you don't have to worry about the sheet name.

    Your original formula makes me wonder if I'm missing something because it seems to search all the sheets. With the sample data you provided that is not neccesary.

    How do you get your other columns in the summary sheet by the way?
    Attached Files Attached Files
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

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

    Re: SUMPRODUCT, SUMIFS, INDIRECT how to have a flexible lookup range across multiple works

    Dear Jacc,

    Thank you for your solution.

    I have used the SUMPRODUCT formula many times, but have never found a way of substituing the F1:F10000 part of the formula for a dynamic range of rows, and also having the F:F column move based on a criteria.

    I thought that tables may provide the answer. It seems they can as long as you reference the table name (or at least call the table the same as the worksheet).

  4. #4
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,841

    Re: SUMPRODUCT, SUMIFS, INDIRECT how to have a flexible lookup range across multiple works

    Actually, in my workbook you can change the sheet names to whatever you want as they are not part of the formula, only the Table names are. The Tables, of course, have to have names corresponding to the fruits.

+ 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] sumifs (or sumproduct) but with division - and a lookup
    By kingsHorses in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-15-2014, 02:11 PM
  2. [SOLVED] SUMIFS or SUMPRODUCT or Other solution to sum a range.
    By timgmurphy99 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-30-2013, 06:57 PM
  3. Replies: 2
    Last Post: 01-23-2013, 06:25 AM
  4. Replies: 1
    Last Post: 07-10-2012, 07:39 AM
  5. Replies: 1
    Last Post: 05-16-2011, 05:00 PM

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