+ Reply to Thread
Results 1 to 6 of 6

Using SUMIF and IFERROR to sum all $ values and ignore NUM

Hybrid View

  1. #1
    Registered User
    Join Date
    01-23-2014
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    24

    Using SUMIF and IFERROR to sum all $ values and ignore NUM

    =IFERROR(SUMIF($B9:$B375,$B12,W9:W375)+SUMIF($B9:$B375,$B13,W9:W375)*W9:W375,0)

    I'm trying to add the results of two different columns together. They add successfully, but some times, because the record is not populated, some cells have a NUM error, so I'm trying to tell Excel to add these two columns together, but ignore NUM errors where they occur.

    I think I might need to use IF(ISERROR(SUMIF(... instead of IFERROR.

    The formula above works but when i a number value is entered in somewhere along cells in Column W, the calculation returns NUM. What am I doing wrong?

  2. #2
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Using SUMIF and IFERROR to sum all $ values and ignore NUM

    =SUM(IFERROR(IF(($B9:$B375=B12)*($B9:$B375=B13),W9:W375,0),0))
    Confirm Control+Shift+enter
    If you are http://www.excelforum.com/image.php?type=sigpic&userid=125481&dateline=1392355029happy with the results, please add to the contributor's
    reputation by clicking the reputation icon (star icon).




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.
    To undo, select Thread Tools-> Mark thread as Unsolved.
    http://www.excelaris.co.uk

  3. #3
    Registered User
    Join Date
    01-23-2014
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Using SUMIF and IFERROR to sum all $ values and ignore NUM

    Quote Originally Posted by RobertMika View Post
    =SUM(IFERROR(IF(($B9:$B375=B12)*($B9:$B375=B13),W9:W375,0),0))
    Confirm Control+Shift+enter
    That is returning a zero result.

    See attached example spreadsheet.
    Attached Files Attached Files

  4. #4
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Using SUMIF and IFERROR to sum all $ values and ignore NUM

    Apologize shoudl have been
    =SUM(IFERROR(IF((C7:C82=C7)+(C7:C82=C8),X7:X82,0),0))

  5. #5
    Registered User
    Join Date
    01-23-2014
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Using SUMIF and IFERROR to sum all $ values and ignore NUM

    Quote Originally Posted by RobertMika View Post
    Apologize shoudl have been
    =SUM(IFERROR(IF((C7:C82=C7)+(C7:C82=C8),X7:X82,0),0))
    It's working magnificently. Thanks!

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

    Re: Using SUMIF and IFERROR to sum all $ values and ignore NUM

    Another way without CSE

    =SUMPRODUCT(SUMIFS(X7:X82,$C7:$C82,$C7:C8,X7:X82,">0"))

+ 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. xlfn.IFERROR or IFERROR don't work in Excel 98-2003
    By dj_danu01 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-26-2013, 02:53 AM
  2. [SOLVED] Sumif two colomns to ignore if a value is present
    By nickmax1 in forum Excel Formulas & Functions
    Replies: 21
    Last Post: 01-21-2013, 10:45 AM
  3. Ignore NA in sumif
    By amartino44 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-04-2013, 08:40 PM
  4. Replies: 4
    Last Post: 08-22-2012, 12:18 PM
  5. Ignore blanks using =SUMIF/COUNTIF
    By Casper9T9 in forum Excel General
    Replies: 10
    Last Post: 06-05-2009, 05:26 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