+ Reply to Thread
Results 1 to 5 of 5

Ignoring #NUM! in sum if, or getting rid of the error all togther

  1. #1
    Registered User
    Join Date
    06-14-2013
    Location
    herts
    MS-Off Ver
    2010
    Posts
    6

    Ignoring #NUM! in sum if, or getting rid of the error all togther

    Hi,

    I am trying to sum a colum of numbers based on data on another colum using the Sumif function. The numbers I am attmepting to sum are the result of a formula counting days between two dates. As not all of the date entries are complete (this is counting delivery dates and some items are not delivered) I have a few cells with #NUM! in them as there is no calculation. I am sure there is a simple way to add this into my formula but try as I might I cannot find it!!

    Formula is as below, and I just need to know how to make that return no error.

    =DATEDIF(H7,P7,"d")

    Thanks in advance for anyone that can help.

    Regards

    Marcus

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,193

    Re: Ignoring #NUM! in sum if, or getting rid of the error all togther

    Try


    =IFERROR(DATEDIF(H7,P7,"d"),"") returns blank

    or

    =IFERROR(DATEDIF(H7,P7,"d"),0) returns 0


    Or

    =IF(OR(H7="",D7=""),"",DATEDIF(H7,P7,"d"))
    Last edited by JohnTopley; 02-09-2017 at 07:12 AM.

  3. #3
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Ignoring #NUM! in sum if, or getting rid of the error all togther

    can you attach sample file.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  4. #4
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,908

    Re: Ignoring #NUM! in sum if, or getting rid of the error all togther

    Try this ...

    =IF(COUNT(H7,P7)=2,P7-H7,"")

    Or:

    =IFERROR(P7-H7,"")

  5. #5
    Registered User
    Join Date
    06-14-2013
    Location
    herts
    MS-Off Ver
    2010
    Posts
    6

    Re: Ignoring #NUM! in sum if, or getting rid of the error all togther

    yep all good, Thanks all, saved me the afternoon buying new laptop after stamping on this one.!!

+ 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. sum after ignoring #N/A error
    By annux08 in forum Excel General
    Replies: 5
    Last Post: 07-14-2015, 06:03 PM
  2. [SOLVED] On Error Resume Next not ignoring the error
    By JasperD in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-16-2015, 07:02 AM
  3. [SOLVED] Needs to Sort a block of Data by Title A-Z and keep rows togther.
    By Myers4tires in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-28-2012, 12:00 PM
  4. VBA: Help on Ignoring error values / Err.number
    By vidyuthrajesh in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-19-2012, 11:52 AM
  5. Ignoring run-time error
    By just_some_guy in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-13-2010, 01:13 PM
  6. Ignoring error values
    By cheddarthief in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-14-2010, 02:54 PM
  7. Something similar to sum() but ignoring error value arguments!
    By agarwaldvk in forum Excel Formulas & Functions
    Replies: 55
    Last Post: 09-06-2005, 03:05 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