+ Reply to Thread
Results 1 to 6 of 6

sumproduct text with indirect

  1. #1
    Registered User
    Join Date
    03-18-2012
    Location
    canada
    MS-Off Ver
    Excel 2007
    Posts
    42

    sumproduct text with indirect

    hi everyone,

    can somoene tell me why my formula is giving me a # value error

    in collumn M9 to M16 contains text and blank cells and i can't see what is wrong with my formula.

    SUMPRODUCT(--(INDIRECT("'"&$L16&"'!$i$8:$m$8")=$M$15),--(INDIRECT("'"&L16&"'!$i$9:$i$16")=$A16),INDIRECT("'"&$L16&"'!$M$9:$m$16"))

    am i missing something

    thanks for everyone help

  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 text with indirect

    If we could first remove the Indirect (for troubleshooting purposes).

    Can you post what the formula should be without indirect?


    My first impression is that Sumproduct with the --(),--() syntax can't use ranges of different dimensions
    Like I8:M8 and I9:I16

  3. #3
    Registered User
    Join Date
    03-18-2012
    Location
    canada
    MS-Off Ver
    Excel 2007
    Posts
    42

    Re: sumproduct text with indirect

    hi,

    this is how it would be without the sumproduct

    SUMPRODUCT(--('10080-00'!I8:M8=$M$15),--('10080-00'!I9:I17=$A16),('10080-00'!M9:M17))

  4. #4
    Registered User
    Join Date
    03-18-2012
    Location
    canada
    MS-Off Ver
    Excel 2007
    Posts
    42

    Re: sumproduct text with indirect

    hi,

    your correct after looking at the fomula i didn't require the first array the formula works if i do this

    SUMPRODUCT(--('10080-00'!I9:I17=$A16),('10080-00'!M9:M17))

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

    Re: sumproduct text with indirect

    In that case it's just

    =SUMIF('10080-00'!I9:I17,$A16,'10080-00'!M9:M17)

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: sumproduct text with indirect

    fyi --('10080-00'!I8:M8=$M$15) i8 to m8 is not the same size as I9:I17
    and i think you need transpose if the range is not in the same direction
    =SUMPRODUCT(--(TRANSPOSE($I$8:$P$8)=$M$15),--($I$9:$I$16=$A16),$M$9:$M$16) which needs array entering
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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. [SOLVED] Need help with using SUMPRODUCT with INDIRECT
    By anara in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-22-2006, 01:10 PM
  3. Help with Sumproduct with Indirect
    By Rob in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 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