+ Reply to Thread
Results 1 to 7 of 7

Reporting of Empty Cells

  1. #1
    Dennis
    Guest

    Reporting of Empty Cells

    I have created a formula that requires reference cells to not report back "0"
    unless an entry is made into the cell, including "0". I attempted to use the
    #N/A function, but since there are four or more cells that contribute to the
    formula, nothing is returned until all cells have received an entry.

    The formula I am using is:

    =IF(H26=O26,"1",IF(H26>O26,"0",IF(H26<O26,"0")))

    If the cell is read as "0" for both H26 and O26, the result is "1". What I
    need is the result to be "0", until an actual entry is made in H26 & O26
    since the entry could be "0" as well as a whole number.

    Is there any way to reset the reference cell so that "0" is not read in the
    formula unless entered?

  2. #2
    Forum Contributor
    Join Date
    11-29-2003
    Posts
    1,203
    Try this:

    =IF(H26<>"", IF(O26<>"",IF(H26=O26,1,0), 0),0)

    - Pete

  3. #3
    Biff
    Guest

    Reporting of Empty Cells

    Hi!

    Not sure of what you're asking but here's some
    observations on your formula:

    >=IF(H26=O26,"1",IF(H26>O26,"0",IF(H26<O26,"0")))


    "1" and "0" will be treated as TEXT, not numbers. If you
    actually mean for those values to be NUMBERS leave out the
    quotes. You only want to quote TEXT. (although there are
    cases when you just might want numbers as TEXT)

    >IF(H26>O26,"0",IF(H26<O26,"0")))


    This is somewhat contradictory but if it's intentionally
    set to be that way you can express that in this manner:

    H26<>O26

    Maybe this is what you're after:

    =IF(AND(ISBLANK(H26),ISBLANK(O26)),"",IF(H26<>O26,0,1))

    Biff

    >-----Original Message-----
    >I have created a formula that requires reference cells to

    not report back "0"
    >unless an entry is made into the cell, including "0". I

    attempted to use the
    >#N/A function, but since there are four or more cells

    that contribute to the
    >formula, nothing is returned until all cells have

    received an entry.
    >
    >The formula I am using is:
    >
    >=IF(H26=O26,"1",IF(H26>O26,"0",IF(H26<O26,"0")))
    >
    >If the cell is read as "0" for both H26 and O26, the

    result is "1". What I
    >need is the result to be "0", until an actual entry is

    made in H26 & O26
    >since the entry could be "0" as well as a whole number.
    >
    >Is there any way to reset the reference cell so that "0"

    is not read in the
    >formula unless entered?
    >.
    >


  4. #4
    Biff
    Guest

    Reporting of Empty Cells

    Hmmm...

    Maybe this is better now that I've tinkered with it:

    =IF(OR(ISBLANK(H26),ISBLANK(O26)),"",IF(H26<>O26,0,1))

    Biff

    >-----Original Message-----
    >Hi!
    >
    >Not sure of what you're asking but here's some
    >observations on your formula:
    >
    >>=IF(H26=O26,"1",IF(H26>O26,"0",IF(H26<O26,"0")))

    >
    >"1" and "0" will be treated as TEXT, not numbers. If you
    >actually mean for those values to be NUMBERS leave out

    the
    >quotes. You only want to quote TEXT. (although there are
    >cases when you just might want numbers as TEXT)
    >
    >>IF(H26>O26,"0",IF(H26<O26,"0")))

    >
    >This is somewhat contradictory but if it's intentionally
    >set to be that way you can express that in this manner:
    >
    >H26<>O26
    >
    >Maybe this is what you're after:
    >
    >=IF(AND(ISBLANK(H26),ISBLANK(O26)),"",IF(H26<>O26,0,1))
    >
    >Biff
    >
    >>-----Original Message-----
    >>I have created a formula that requires reference cells

    to
    >not report back "0"
    >>unless an entry is made into the cell, including "0". I

    >attempted to use the
    >>#N/A function, but since there are four or more cells

    >that contribute to the
    >>formula, nothing is returned until all cells have

    >received an entry.
    >>
    >>The formula I am using is:
    >>
    >>=IF(H26=O26,"1",IF(H26>O26,"0",IF(H26<O26,"0")))
    >>
    >>If the cell is read as "0" for both H26 and O26, the

    >result is "1". What I
    >>need is the result to be "0", until an actual entry is

    >made in H26 & O26
    >>since the entry could be "0" as well as a whole number.
    >>
    >>Is there any way to reset the reference cell so that "0"

    >is not read in the
    >>formula unless entered?
    >>.
    >>

    >.
    >


  5. #5
    Ragdyer
    Guest

    Re: Reporting of Empty Cells

    If I understand what you're looking for, try this:

    =IF(OR(H26<>O26,AND(H26="",O26="")),0,1)
    --
    HTH,

    RD

    ---------------------------------------------------------------------------
    Please keep all correspondence within the NewsGroup, so all may benefit !
    ---------------------------------------------------------------------------

    "Dennis" <[email protected]> wrote in message
    news:[email protected]...
    > I have created a formula that requires reference cells to not report back

    "0"
    > unless an entry is made into the cell, including "0". I attempted to use

    the
    > #N/A function, but since there are four or more cells that contribute to

    the
    > formula, nothing is returned until all cells have received an entry.
    >
    > The formula I am using is:
    >
    > =IF(H26=O26,"1",IF(H26>O26,"0",IF(H26<O26,"0")))
    >
    > If the cell is read as "0" for both H26 and O26, the result is "1". What

    I
    > need is the result to be "0", until an actual entry is made in H26 & O26
    > since the entry could be "0" as well as a whole number.
    >
    > Is there any way to reset the reference cell so that "0" is not read in

    the
    > formula unless entered?



  6. #6
    Dennis
    Guest

    Re: Reporting of Empty Cells

    Yes, this seems to work perfectly and the cells report exactly what I am
    looking for.

    Thank you for your assistance!

    Dennis

    "Ragdyer" wrote:

    > If I understand what you're looking for, try this:
    >
    > =IF(OR(H26<>O26,AND(H26="",O26="")),0,1)
    > --
    > HTH,
    >
    > RD
    >
    > ---------------------------------------------------------------------------
    > Please keep all correspondence within the NewsGroup, so all may benefit !
    > ---------------------------------------------------------------------------
    >
    > "Dennis" <[email protected]> wrote in message
    > news:[email protected]...
    > > I have created a formula that requires reference cells to not report back

    > "0"
    > > unless an entry is made into the cell, including "0". I attempted to use

    > the
    > > #N/A function, but since there are four or more cells that contribute to

    > the
    > > formula, nothing is returned until all cells have received an entry.
    > >
    > > The formula I am using is:
    > >
    > > =IF(H26=O26,"1",IF(H26>O26,"0",IF(H26<O26,"0")))
    > >
    > > If the cell is read as "0" for both H26 and O26, the result is "1". What

    > I
    > > need is the result to be "0", until an actual entry is made in H26 & O26
    > > since the entry could be "0" as well as a whole number.
    > >
    > > Is there any way to reset the reference cell so that "0" is not read in

    > the
    > > formula unless entered?

    >
    >


  7. #7
    Ragdyer
    Guest

    Re: Reporting of Empty Cells

    Thanks for the feed-back.
    --
    Regards,

    RD

    ---------------------------------------------------------------------------
    Please keep all correspondence within the NewsGroup, so all may benefit !
    ---------------------------------------------------------------------------
    "Dennis" <[email protected]> wrote in message
    news:[email protected]...
    > Yes, this seems to work perfectly and the cells report exactly what I am
    > looking for.
    >
    > Thank you for your assistance!
    >
    > Dennis
    >
    > "Ragdyer" wrote:
    >
    > > If I understand what you're looking for, try this:
    > >
    > > =IF(OR(H26<>O26,AND(H26="",O26="")),0,1)
    > > --
    > > HTH,
    > >
    > > RD
    > >

    >
    > --------------------------------------------------------------------------

    -
    > > Please keep all correspondence within the NewsGroup, so all may benefit

    !
    >
    > --------------------------------------------------------------------------

    -
    > >
    > > "Dennis" <[email protected]> wrote in message
    > > news:[email protected]...
    > > > I have created a formula that requires reference cells to not report

    back
    > > "0"
    > > > unless an entry is made into the cell, including "0". I attempted to

    use
    > > the
    > > > #N/A function, but since there are four or more cells that contribute

    to
    > > the
    > > > formula, nothing is returned until all cells have received an entry.
    > > >
    > > > The formula I am using is:
    > > >
    > > > =IF(H26=O26,"1",IF(H26>O26,"0",IF(H26<O26,"0")))
    > > >
    > > > If the cell is read as "0" for both H26 and O26, the result is "1".

    What
    > > I
    > > > need is the result to be "0", until an actual entry is made in H26 &

    O26
    > > > since the entry could be "0" as well as a whole number.
    > > >
    > > > Is there any way to reset the reference cell so that "0" is not read

    in
    > > the
    > > > formula unless entered?

    > >
    > >



+ 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