+ Reply to Thread
Results 1 to 4 of 4

Getting #value error

  1. #1
    Registered User
    Join Date
    02-22-2006
    Posts
    28

    Getting #value error

    Hi,

    In the cell B9 the value is 01/09/2006
    In the cell C9 i enter the formula
    =IF(ISBLANK(B9),"",DATE(YEAR(B9),MONTH(B9)+1,DAY(B9)))
    In the cell D9 i enter the same formula
    =IF(ISBLANK(C9),"",DATE(YEAR(C9),MONTH(C9)+1,DAY(C9)))

    It works fine. But if i delete the value in B9, cell c9 displays blank. But cell D9 displays #value error.

    Is there any way to supress this error and display balnk value in D9.

    Any help appreciated.

    Suresh

  2. #2
    Dave Peterson
    Guest

    re: Getting #value error

    Maybe you should just check to see if the cell looks blank:

    =if(b9="","",...
    =if(c9="","",...

    =isblank() returns true only if the cell is really empty--no value and no
    formula.



    mtpsuresh wrote:
    >
    > Hi,
    >
    > In the cell B9 the value is 01/09/2006
    > In the cell C9 i enter the formula
    > =IF(ISBLANK(B9),"",DATE(YEAR(B9),MONTH(B9)+1,DAY(B9)))
    > In the cell D9 i enter the same formula
    > =IF(ISBLANK(C9),"",DATE(YEAR(C9),MONTH(C9)+1,DAY(C9)))
    >
    > It works fine. But if i delete the value in B9, cell c9 displays blank.
    > But cell D9 displays #value error.
    >
    > Is there any way to supress this error and display balnk value in D9.
    >
    > Any help appreciated.
    >
    > Suresh
    >
    > --
    > mtpsuresh
    > ------------------------------------------------------------------------
    > mtpsuresh's Profile: http://www.excelforum.com/member.php...o&userid=31817
    > View this thread: http://www.excelforum.com/showthread...hreadid=546758


    --

    Dave Peterson

  3. #3

    re: Getting #value error

    Try pasting in cell "D9"

    =IF(ISBLANK(B9),"",DATE(YEAR(C9),MONTH(C9)+1,DAY(C9)))


  4. #4
    Registered User
    Join Date
    02-22-2006
    Posts
    28
    Quote Originally Posted by Dave Peterson
    Maybe you should just check to see if the cell looks blank:

    =if(b9="","",...
    =if(c9="","",...

    =isblank() returns true only if the cell is really empty--no value and no
    formula.



    mtpsuresh wrote:
    >
    > Hi,
    >
    > In the cell B9 the value is 01/09/2006
    > In the cell C9 i enter the formula
    > =IF(ISBLANK(B9),"",DATE(YEAR(B9),MONTH(B9)+1,DAY(B9)))
    > In the cell D9 i enter the same formula
    > =IF(ISBLANK(C9),"",DATE(YEAR(C9),MONTH(C9)+1,DAY(C9)))
    >
    > It works fine. But if i delete the value in B9, cell c9 displays blank.
    > But cell D9 displays #value error.
    >
    > Is there any way to supress this error and display balnk value in D9.
    >
    > Any help appreciated.
    >
    > Suresh
    >
    > --
    > mtpsuresh
    > ------------------------------------------------------------------------
    > mtpsuresh's Profile: http://www.excelforum.com/member.php...o&userid=31817
    > View this thread: http://www.excelforum.com/showthread...hreadid=546758


    --

    Dave Peterson
    Thanks Dave, it works as i expected. Thanks for your time and efforts

    Suresh

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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