+ Reply to Thread
Results 1 to 6 of 6

Sum all that do NOT contain returning #Value Error

  1. #1
    Registered User
    Join Date
    02-20-2013
    Location
    Los Angeles, California
    MS-Off Ver
    Excel 2010
    Posts
    43

    Sum all that do NOT contain returning #Value Error

    I'm trying to figure out what is causing a #VALUE error in an exclusionary SUMIFS. I want to sum only amounts in which the memo does not contain "Against Pledge."

    I started with:

    =SUMIFS(DonAmt,DonMemo,"<>"&"Against Pledge*")

    (I've deleted the criteria of the SUMIFS that did not have a problem for brevity & clarity.)

    DonAmt and DonMemo are named ranges whose data looks something like the below. (I can't upload the file. It is all confidential names & numbers.)

    DonAmt DonMemo
    $125.00 Against Pledge 795264
    $700.00 Against Pledge
    $100.00 Against Pledge
    $100.00 in memory of RS
    $36.00
    $500.00 in memory of RS
    $50.00 Matching
    $50.00 in memory of RS

    There ARE blank lines in the ranges.

    I have also tried a couple of SUMPRODUCT variations with the same result:

    =SUMPRODUCT(--(ISERROR(SEARCH("Against Pledge*",DonMemo))),DonAmt)

    =SUMPRODUCT(--NOT(ISNUMBER(SEARCH("Against Pledge*",DonMemo))),DonAmt)

    The inverse function:

    =SUMIF(DonMemo,"Against Pledge*",DonAmt)

    works perfectly.

    Any ideas would be greatly appreciated.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,446

    Re: Sum all that do NOT contain returning #Value Error

    Suggest you post a sample workbook.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    02-20-2013
    Location
    Los Angeles, California
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Sum all that do NOT contain returning #Value Error

    Sample attached. The below notations are filled into cells 62H:62L, adjacent to the problem cell which is highlighted yellow.

    After some further testing, as a SUMIF statement, my original clause works:

    =SUMIF(DonMemo,"<>"&"Against Pledge*",DonAmt)

    However when I place it into a SUMIFS, it returns #VALUE:

    =SUMIFS(DonAmt,DonDate,">"&DATE(2015,9,14),DonMemo,"<>"&"Against Pledge*")

    The other condition of the SUMIFS works with other conditions.
    Attached Files Attached Files

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,446

    Re: Sum all that do NOT contain returning #Value Error

    I think you need to adjust the Named Range, DonMemo

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


    So, make DonMemo refer to:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    as opposed to
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    which includes the Table Header row.


    Regards, TMS

  5. #5
    Registered User
    Join Date
    02-20-2013
    Location
    Los Angeles, California
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Sum all that do NOT contain returning #Value Error

    Thanks. I'm just surprised the unequal range didn't cause a problem in the single condition SUMIF.

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,446

    Re: Sum all that do NOT contain returning #Value Error

    You're welcome.

    SUMIF is a simple comparison, whereas SUMIFS needs to create a matrix of entries that match the conditions. Consequently, it expects each range (array) to have the same number of entries.


    Regards, TMS

+ 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. Loop Nesting is returning Run-Time Error '-2147221080 (800401a8)': Automation Error
    By ChristopherBrandonKi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-21-2014, 02:36 PM
  2. countifs returning value error
    By ammartino44 in forum Excel General
    Replies: 2
    Last Post: 10-03-2014, 06:22 PM
  3. Vba not returning an error
    By jlt199 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-03-2012, 06:37 PM
  4. Mid function returning #value error
    By mrmag2000 in forum Excel General
    Replies: 4
    Last Post: 01-24-2008, 08:10 PM
  5. Replies: 4
    Last Post: 03-24-2006, 07:20 AM
  6. Formula returning #N/A Error---why???
    By Excel User in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-26-2005, 10:05 AM
  7. UDF Returning an Error Value: How to?
    By Ron Rosenfeld in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-17-2005, 03:05 PM

Tags for this Thread

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