+ Reply to Thread
Results 1 to 2 of 2

3D Sumproduct with error handling

  1. #1
    Forum Contributor
    Join Date
    08-05-2009
    Location
    Colorado Springs, CO
    MS-Off Ver
    Office 365
    Posts
    160

    3D Sumproduct with error handling

    I found this method of summing a range across sheets:
    =SUMPRODUCT(SUMIF(INDIRECT("'"&sheets&"'!"&"rng"),criteria,INDIRECT("'"&sheets&"'!"&"sumrng")))

    I'd like to use this to be able to handle summing a 3D range with an error value in the range to be summed such that the error value is ignored

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: 3D Sumproduct with error handling

    I suspect you want to go SUMIFS route - depending on how many different error values you might find it easier to use numerics as a criteria, e,g.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    if you need to account for both positive + negative numbers you can use the below

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    however, it's worth noting that given you're using the above w/SUMPRODUCT and in Volatile context (c/o INDIRECT) this will be slower (doing 2 SUMIFS for each tab).

+ 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] Odd Error Handling Behaviour; goes to error handler even when no error?
    By kalikj in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-04-2018, 10:04 AM
  2. IF SUMPRODUCT and handling different data types
    By Nemesis247 in forum Excel General
    Replies: 6
    Last Post: 04-29-2016, 09:36 AM
  3. Error handling inside error handling
    By grantastley in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-06-2015, 03:43 AM
  4. RUN TIME ERROR '1004' error handling help needed
    By skop89 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-09-2014, 12:54 PM
  5. [SOLVED] Error Handling: Creating code to display error messages
    By Student1990 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-01-2013, 02:21 PM
  6. [SOLVED] Error Handling - On Error GoTo doesn't trap error successfully
    By David in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-16-2006, 02:10 PM
  7. Error handling with a handling routine
    By ben in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-15-2005, 11:06 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