+ Reply to Thread
Results 1 to 3 of 3

If cell value equals zero

  1. #1
    Steve
    Guest

    If cell value equals zero

    Hello,

    I have a simple worksheet formula, "=IF(D17=0,"",(D11*1.38+D14)/D17)"
    located in D22.
    This works fine if D11 has a value in it, but there are a few instances
    where D11 is blank, then I get "#VALUE" in D22.
    How can I modify the formula to increment D11 to "1" if it is blank or equal
    to "0"?

    Thanks...

    ---
    Steve



  2. #2
    Biff
    Guest

    Re: If cell value equals zero

    Hi!

    >increment D11 to "1" if it is blank


    If you're getting #VALUE! when D11 is "blank", it must be a formula blank.

    Onr way:

    =IF(D17=0,"",(IF(OR(D11={"",0}),1,D11)*1.38+D14)/D17)

    Biff

    "Steve" <[email protected]> wrote in message
    news:[email protected]...
    > Hello,
    >
    > I have a simple worksheet formula, "=IF(D17=0,"",(D11*1.38+D14)/D17)"
    > located in D22.
    > This works fine if D11 has a value in it, but there are a few instances
    > where D11 is blank, then I get "#VALUE" in D22.
    > How can I modify the formula to increment D11 to "1" if it is blank or
    > equal to "0"?
    >
    > Thanks...
    >
    > ---
    > Steve
    >




  3. #3
    Ron Coderre
    Guest

    RE: If cell value equals zero

    See if this works for you:

    D22: =IF(D17=0,"",(IF(N(D11)=0,1,D11)*1.38+D14)/D17)

    Does that help?

    ***********
    Regards,
    Ron

    XL2002, WinXP-Pro


    "Steve" wrote:

    > Hello,
    >
    > I have a simple worksheet formula, "=IF(D17=0,"",(D11*1.38+D14)/D17)"
    > located in D22.
    > This works fine if D11 has a value in it, but there are a few instances
    > where D11 is blank, then I get "#VALUE" in D22.
    > How can I modify the formula to increment D11 to "1" if it is blank or equal
    > to "0"?
    >
    > Thanks...
    >
    > ---
    > Steve
    >
    >
    >


+ 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