+ Reply to Thread
Results 1 to 4 of 4

Getting rid of #num error when blank cell included in formula

Hybrid View

  1. #1
    Registered User
    Join Date
    10-16-2009
    Location
    South Carolina, USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Angry Getting rid of #num error when blank cell included in formula

    I'm trying to format a cell so that it has the formula in it so when data is entered into the referenced cells it will calculate. It's an if statement and also using the duration formula for the value if false, however in the duration formula is where it is referencing blank cells and it shows the #num error. Is there anyway around this inconvience whether it be by formula or another way to write it or whatever. My current formula for the cell is:
    =IF(E9="","",DURATION(39448,(39448+(E9*365)),F9,H9,1,))

    If I knew how to take a screen shot and upload it on here I would so what I'm doing can be seen.

    I hope my question is understandable and I'd appreciate any help on this. Thanks!

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Getting rid of #num error when blank cell included in formula

    Hi moorelm
    I think this is what you need
    IF(iserror(DURATION(39448,(39448+(E9*365)),F9,H9,1,))),"",DURATION(39448,(39448+(E9*365)),F9,H9,1,))
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Getting rid of #num error when blank cell included in formula

    If you're using XL2007 you can utilise the new IFERROR function thereby avoiding need to double evaluate

    =IFERROR(DURATION(39448,(39448+(E9*365)),F9,H9,1,),"")

  4. #4
    Registered User
    Join Date
    10-16-2009
    Location
    South Carolina, USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Getting rid of #num error when blank cell included in formula

    Thank you so much! That definitely helped and it cleared everything out for me! Appreciate it!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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