+ Reply to Thread
Results 1 to 2 of 2

formula returns a #VALUE! error if no value in reference cell???

  1. #1
    Forum Contributor
    Join Date
    08-29-2011
    Location
    Wisbech England
    MS-Off Ver
    Excel 2010
    Posts
    308

    formula returns a #VALUE! error if no value in reference cell???

    Hi All
    I could use a bit of your help with the following please?
    =IF(C61-D61=0,"Completed within agreed time!",C61-D61)
    Problem is as you can see the formula takes the value from 2 cells, VALUE IN D61 is a close off date so it won't be inputted as the same time as the value in C61 which results in this Error #VALUE! haw can I modify it so that this error won't occour.

    Thanks for your Help :-)
    Dan

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: formula returns a #VALUE! error if no value in reference cell???

    Wrap the formula in IFERROR....
    =iferror(IF(C61-D61=0,"Completed within agreed time!",C61-D61),"")

    or just....
    =if(D61="","",IF(C61-D61=0,"Completed within agreed time!",C61-D61))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. [SOLVED] Cell Reference Returns #REF when data change
    By Hawk in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-01-2013, 07:57 PM
  2. Invalid or unqualified reference error when inserting a formula into a cell via VBA
    By AnthonyWB in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-11-2010, 10:06 AM
  3. Excel 2007 : Reference returns cell address - not data
    By Martin Snerl in forum Excel General
    Replies: 2
    Last Post: 01-15-2010, 05:23 AM
  4. formula cell reference updates when query returns more rows
    By reillyBoston in forum Excel General
    Replies: 3
    Last Post: 08-18-2009, 11:20 AM
  5. Formula to sum every 4th cell returns #DIV/0! error in some column
    By Brent in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-16-2006, 03:25 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