+ Reply to Thread
Results 1 to 6 of 6

Sumproduct using indirect and with some text cells in array

  1. #1
    Registered User
    Join Date
    07-06-2016
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    46

    Sumproduct using indirect and with some text cells in array

    Hi all,

    Following on from my last question (re - 'Using sumproduct when array contains some cells with text'. I would like to use the following sumproduct and indirect formula to sum values in an array which also contains some cells with text. I could not apply the iferror fix to this one but maybe I was messed up the placement of the brackets. Any help will be appreciated.

    Formula currently being used = SUMPRODUCT(INDIRECT("'"&D$4&"'!E10:G300"),((INDIRECT("'"&D$4&"'!E9:G9"))=Reconcile!$C5))*((INDIRECT("'"&D$4&"'!A10:A300")=Reconcile!$B5))

    Answer should= 100 - in cell D5 of 'Reconcile' tab

    See uploaded workbook for full example

    Thanks

    Mike

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Sumproduct using indirect and with some text cells in array

    The first two array sizes are mismatched:
    E10:G300 v.s. E9:G9

    is one cause of an error: The array arguments must have the same dimensions. If they do not, SUMPRODUCT returns the #VALUE! error value.
    Last edited by protonLeah; 12-18-2016 at 11:36 PM.
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    07-06-2016
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    46

    Re: Sumproduct using indirect and with some text cells in array

    E9:G9 is the horizontal criteria array (so sits above the data array). How else would you do this?

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Sumproduct using indirect and with some text cells in array

    The layout of your sheets makes it difficult. Try this one for starters:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    07-06-2016
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    46

    Re: Sumproduct using indirect and with some text cells in array

    Hi, its weird it seems to only work for Purchase and Sale criteria, for some reason 'Internal' criteria is coming back #N/A, any idea why?

  6. #6
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Sumproduct using indirect and with some text cells in array

    My mistake (match type) it should be:
    Please Login or Register  to view this content.

+ 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. Using sumproduct when array contains some cells with text
    By Manwithaplan in forum Excel General
    Replies: 9
    Last Post: 12-17-2016, 01:15 AM
  2. [SOLVED] Sumproduct indirect array containing both ORs & ANDs
    By CuthbertShaw in forum Excel Formulas & Functions
    Replies: 23
    Last Post: 11-05-2013, 09:35 AM
  3. sumproduct text with indirect
    By matrix_xrs in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-05-2013, 10:37 AM
  4. Sumproduct and indirect array
    By excelhelp20817 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-06-2013, 06:10 PM
  5. Replies: 6
    Last Post: 03-09-2011, 08:01 AM
  6. 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
  7. Sumproduct array using Indirect Problem
    By reggie1000 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-07-2008, 12:19 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