+ Reply to Thread
Results 1 to 5 of 5

#Value

  1. #1
    Robbyn
    Guest

    #Value

    =IF(OR(D2>0, E2>0),(Lists!E2+SUM(D2))-SUM(E2),"")

    How do I avoid the #value error when Lists!e2 is blank?

  2. #2
    Forum Contributor
    Join Date
    06-10-2004
    Location
    India
    Posts
    1,066
    Use:
    =if(ISBLANK(Lists!E2),0,IF(OR(D2>0, E2>0),(Lists!E2+SUM(D2))-SUM(E2),""))
    This places a 0 when Lists!E2 is blank. If you want a blank instead of 0, the use "" instead of 0 in the above formula.

    - Mangesh

  3. #3
    Max
    Guest

    Re: #Value

    Try this revised formula instead:

    =IF(OR(D2>0, E2>0),SUM(Lists!E2,D2)-E2,"")

    SUM(..) will ignore text

    Think it was likely to be a stray space entry (made with spacebar) in
    Lists!E2 which caused the error, rather than the cell being blank
    --
    Rgds
    Max
    xl 97
    ---
    GMT+8, 1° 22' N 103° 45' E
    xdemechanik <at>yahoo<dot>com
    ----
    "Robbyn" <[email protected]> wrote in message
    news:[email protected]...
    > =IF(OR(D2>0, E2>0),(Lists!E2+SUM(D2))-SUM(E2),"")
    >
    > How do I avoid the #value error when Lists!e2 is blank?




  4. #4
    Robbyn
    Guest

    Re: #Value

    Thanks much Max!

    "Max" wrote:

    > Try this revised formula instead:
    >
    > =IF(OR(D2>0, E2>0),SUM(Lists!E2,D2)-E2,"")
    >
    > SUM(..) will ignore text
    >
    > Think it was likely to be a stray space entry (made with spacebar) in
    > Lists!E2 which caused the error, rather than the cell being blank
    > --
    > Rgds
    > Max
    > xl 97
    > ---
    > GMT+8, 1° 22' N 103° 45' E
    > xdemechanik <at>yahoo<dot>com
    > ----
    > "Robbyn" <[email protected]> wrote in message
    > news:[email protected]...
    > > =IF(OR(D2>0, E2>0),(Lists!E2+SUM(D2))-SUM(E2),"")
    > >
    > > How do I avoid the #value error when Lists!e2 is blank?

    >
    >
    >


  5. #5
    Max
    Guest

    Re: #Value

    You're welcome !
    Thanks for the feedback
    --
    Rgds
    Max
    xl 97
    ---
    GMT+8, 1° 22' N 103° 45' E
    xdemechanik <at>yahoo<dot>com
    ----
    "Robbyn" <[email protected]> wrote in message
    news:[email protected]...
    > Thanks much Max!




+ 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