+ Reply to Thread
Results 1 to 5 of 5

dealing with errors in an array

Hybrid View

weeble33 dealing with errors in an... 08-23-2012, 11:39 AM
xsoldoutx Re: dealing with errors in an... 08-23-2012, 12:09 PM
weeble33 Re: dealing with errors in an... 08-23-2012, 12:15 PM
xsoldoutx Re: dealing with errors in an... 08-23-2012, 12:30 PM
weeble33 Re: dealing with errors in an... 08-23-2012, 02:49 PM
  1. #1
    Forum Contributor
    Join Date
    06-18-2012
    Location
    Denver, CO
    MS-Off Ver
    Excel 2013
    Posts
    118

    dealing with errors in an array

    Hello

    =SUMPRODUCT((LEFT($B$4:$B$1000,2)="BP")*$Y$4:$Y$1000)
    I have the above formula, but some of the cells in B:B have a #value error. I tried putting up an iferror() function, but it doesnt seem to work with array functions. Any suggestions on how to get around this?

  2. #2
    Registered User
    Join Date
    07-26-2012
    Location
    _
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: dealing with errors in an array

    Wondering if there are blanks in your cells or other values, maybe try something like the following

    =SUMPRODUCT(--(LEFT($B$4:$B$1000,2)="BP")*($Y$4:$Y$1000<>""),($Y$4:$Y$1000))

  3. #3
    Forum Contributor
    Join Date
    06-18-2012
    Location
    Denver, CO
    MS-Off Ver
    Excel 2013
    Posts
    118

    Re: dealing with errors in an array

    There are some blanks, but in the formula evaluation, they are returned as false and thus handled appropriately. Sorry, but the "--" coercion did not work. Your formula still results in a #Value error

  4. #4
    Registered User
    Join Date
    07-26-2012
    Location
    _
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: dealing with errors in an array

    Check in your column Y and make sure there aren't any characters or letters only numeric values, sorry just trying to cover all the bases.

  5. #5
    Forum Contributor
    Join Date
    06-18-2012
    Location
    Denver, CO
    MS-Off Ver
    Excel 2013
    Posts
    118

    Re: dealing with errors in an array

    The Y column does not contain anything besides numbers and blanks. The problem is dealing with the B:B Column. For clarification, the B:B column contains strings, blanks, and a few #values errors. I have shortened the array to a smaller portion of data where I know there are no #value errors, and the formula works. So the only issue is dealing with the errors.

    Now then, I have temporarily nipped this in the butt and added an iferror() function into the formulas in the B:B column, thus replacing all errors with a blank. I'd prefer to have the solution come from the equation above, but if that doesn't happen I at least have a back up.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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