+ Reply to Thread
Results 1 to 4 of 4

SUMPRODUCT, SUMIF, INDIRECT and ADDRESS

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

    SUMPRODUCT, SUMIF, INDIRECT and ADDRESS

    Dear all,

    I have a formula that looks up the sheet ref and sums based on a criteria (sales, costs, or other costs). File enclosed below.SUMPRODUCT SUMIF INDIRECT ADDRESS.xlsx

    SUMPRODUCT(SUMIF(INDIRECT("'"&$A$2:$A$4&"'!c1:c10000"),$C7,INDIRECT("'"&$A$2:$A$4&"'!f1:f10000")))

    What I find frustrating is that the last part of the formula f1:f10000 does not move with the copying across the page of the formula, i.e. the columns f:f do not change to the next column of g:g.

    I've tried to use address function to move 1 column along each time, but I've not had success.

    Is the address option viable, or should I try another solution that uses LOOKUP and MATCH perhaps for the column reference?

    Any help would be much appreciated.

    Thanks.

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: SUMPRODUCT, SUMIF, INDIRECT and ADDRESS

    You could use Address...
    However you'd have to do it twice becaues address only returns a single cell
    so you'd have 1 for F1 then concatenate ":" then another address for F10000

    Try offset..

    =SUMPRODUCT(SUMIF(INDIRECT("'"&$A$2:$A$4&"'!c1:c10000"),$C8,OFFSET(INDIRECT("'"&$A$2:$A$4&"'!f1:f10000"),0,COLUMNS($A:A)-1)))

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

    Re: SUMPRODUCT, SUMIF, INDIRECT and ADDRESS

    Dear Jonmo1,

    Thank you for the great solution. It works perfectly. I had not considered using OFFSET.

    Many thanks.

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: SUMPRODUCT, SUMIF, INDIRECT and ADDRESS

    You're welcome.

+ 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] SUMPRODUCT(SUMIF(INDIRECT with Dynamic Worksheet Range
    By decipher in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-07-2014, 05:40 AM
  2. [SOLVED] Sumproduct, Indirect, Address over multiple sheets and varying row lengths
    By dma1976 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-08-2014, 11:12 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. Sumproduct(sumif(indirect
    By jmcgallan in forum Excel General
    Replies: 6
    Last Post: 09-17-2010, 12:03 PM
  5. Mixing INDIRECT & ADDRESS with SUMPRODUCT
    By LoveCandle in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-04-2006, 03:30 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