+ Reply to Thread
Results 1 to 5 of 5

error message ISBLANK

  1. #1
    Hans
    Guest

    error message ISBLANK

    Hello

    Im using the following formula for date calculation:

    =IF(ISBLANK(C38),"",IF(C38=38807,"",(EOMONTH(C38,0))))

    If C38 is blank or contains the date 31-mar-06 (38807) it returns a blank,
    otherwise it should enter the last day of the month mentioned in C38.

    It works OK if it refers to a real blank cell (with no formula) or to a cell
    that contains a date. However, when it refers to a cell that contains above
    formula (and returned a blank) I get a #VALUE error message. For example, if
    above formula would be in Cell C39 and would return a blank, i would get an
    error message if I copied the formula to Cell C40 (referring to Cell C39).

    Does anyone know how to solve this? I want to copy this formula down without
    getting error message.

    Thanks in advance.
    Hans



  2. #2
    Arvi Laanemets
    Guest

    Re: error message ISBLANK

    Hi

    Try
    =IF(OR(C38="",C38=38807),"",EOMONTH(C38,0))

    --
    When sending mail, use address arvil<at>tarkon.ee
    Arvi Laanemets


    "Hans" <Hans@discussions.microsoft.com> wrote in message
    news:81C15E51-3998-4D7F-B3E9-2C87BA77702A@microsoft.com...
    > Hello
    >
    > Im using the following formula for date calculation:
    >
    > =IF(ISBLANK(C38),"",IF(C38=38807,"",(EOMONTH(C38,0))))
    >
    > If C38 is blank or contains the date 31-mar-06 (38807) it returns a blank,
    > otherwise it should enter the last day of the month mentioned in C38.
    >
    > It works OK if it refers to a real blank cell (with no formula) or to a

    cell
    > that contains a date. However, when it refers to a cell that contains

    above
    > formula (and returned a blank) I get a #VALUE error message. For example,

    if
    > above formula would be in Cell C39 and would return a blank, i would get

    an
    > error message if I copied the formula to Cell C40 (referring to Cell C39).
    >
    > Does anyone know how to solve this? I want to copy this formula down

    without
    > getting error message.
    >
    > Thanks in advance.
    > Hans
    >
    >




  3. #3
    Hans
    Guest

    Re: error message ISBLANK

    Hi Arvi

    It helped (Do you know why?)

    Thanks!


    Hans


    "Arvi Laanemets" wrote:

    > Hi
    >
    > Try
    > =IF(OR(C38="",C38=38807),"",EOMONTH(C38,0))
    >
    > --
    > When sending mail, use address arvil<at>tarkon.ee
    > Arvi Laanemets
    >
    >
    > "Hans" <Hans@discussions.microsoft.com> wrote in message
    > news:81C15E51-3998-4D7F-B3E9-2C87BA77702A@microsoft.com...
    > > Hello
    > >
    > > Im using the following formula for date calculation:
    > >
    > > =IF(ISBLANK(C38),"",IF(C38=38807,"",(EOMONTH(C38,0))))
    > >
    > > If C38 is blank or contains the date 31-mar-06 (38807) it returns a blank,
    > > otherwise it should enter the last day of the month mentioned in C38.
    > >
    > > It works OK if it refers to a real blank cell (with no formula) or to a

    > cell
    > > that contains a date. However, when it refers to a cell that contains

    > above
    > > formula (and returned a blank) I get a #VALUE error message. For example,

    > if
    > > above formula would be in Cell C39 and would return a blank, i would get

    > an
    > > error message if I copied the formula to Cell C40 (referring to Cell C39).
    > >
    > > Does anyone know how to solve this? I want to copy this formula down

    > without
    > > getting error message.
    > >
    > > Thanks in advance.
    > > Hans
    > >
    > >

    >
    >
    >


  4. #4
    Arvi Laanemets
    Guest

    Re: error message ISBLANK

    Hi


    "Hans" <Hans@discussions.microsoft.com> wrote in message
    news:2F5C2756-B5B7-4969-9EC9-D1AFE0AC4002@microsoft.com...
    > Hi Arvi
    >
    > It helped (Do you know why?)


    When there is formula in cell, then the cell isn't blank. Logically your
    formula tried to calculate EOMONTH("",0) which returned an error.
    In my formula, when there is a formula in C38, the value returned by formula
    is checked. When formula in C38 returns "", then IF returns "".
    When there isn't anything in C38 - i.e. cell is empty, then in condition
    check Excel iterprets it as empty string, and logically IF again returns "".
    But you get an error, when C38 contains p.e. "xxxx". You can consider the
    need for further checks, p.e.
    =IF(OR(C38="",ISTEXT(C38),C38=38807,C38<0,C38>2957978),"",EOMONTH(C38,0))
    Last 2 conditions are checking for negative dates (not allowed when 1900
    date system is used) and for numbers too big to be converted to dates by
    EOMONTH function.


    --
    When sending mail, use address arvil<at>tarkon.ee
    Arvi Laanemets



  5. #5
    Hans
    Guest

    RE: error message ISBLANK

    Hello

    Thanks for your explanation; makes things a bit more easier to understand.

    Regards
    Hans

    "Hans" wrote:

    > Hello
    >
    > Im using the following formula for date calculation:
    >
    > =IF(ISBLANK(C38),"",IF(C38=38807,"",(EOMONTH(C38,0))))
    >
    > If C38 is blank or contains the date 31-mar-06 (38807) it returns a blank,
    > otherwise it should enter the last day of the month mentioned in C38.
    >
    > It works OK if it refers to a real blank cell (with no formula) or to a cell
    > that contains a date. However, when it refers to a cell that contains above
    > formula (and returned a blank) I get a #VALUE error message. For example, if
    > above formula would be in Cell C39 and would return a blank, i would get an
    > error message if I copied the formula to Cell C40 (referring to Cell C39).
    >
    > Does anyone know how to solve this? I want to copy this formula down without
    > getting error message.
    >
    > Thanks in advance.
    > Hans
    >
    >


+ 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