+ Reply to Thread
Results 1 to 6 of 6

How do I set a result of an "if" function to NULL; not 0 or ""?

Hybrid View

  1. #1
    mbrockhaus
    Guest

    How do I set a result of an "if" function to NULL; not 0 or ""?

    I'm using an "if" statement and I want to set the TRUE condition results to
    NULL rather than "0" or "". Is there a way to do this?

  2. #2
    Don Guillett
    Guest

    Re: How do I set a result of an "if" function to NULL; not 0 or ""?

    Do you mean
    =if(a1=2,"",4)

    --
    Don Guillett
    SalesAid Software
    donaldb@281.com
    "mbrockhaus" <mbrockhaus@discussions.microsoft.com> wrote in message
    news:287A5BE4-55F6-4791-95BE-8ECD51D0BA83@microsoft.com...
    > I'm using an "if" statement and I want to set the TRUE condition results

    to
    > NULL rather than "0" or "". Is there a way to do this?




  3. #3
    mbrockhaus
    Guest

    Re: How do I set a result of an "if" function to NULL; not 0 or ""

    Did that. I need to concatentate the results and so, if something "failed"
    the if check, I need the results to be NULL (or blank), without Excel
    thinking something is really in the cell (like a space; even "" seems to not
    be the same thing). I think I really need a WHEN function more than an IF.

    "Don Guillett" wrote:

    > Do you mean
    > =if(a1=2,"",4)
    >
    > --
    > Don Guillett
    > SalesAid Software
    > donaldb@281.com
    > "mbrockhaus" <mbrockhaus@discussions.microsoft.com> wrote in message
    > news:287A5BE4-55F6-4791-95BE-8ECD51D0BA83@microsoft.com...
    > > I'm using an "if" statement and I want to set the TRUE condition results

    > to
    > > NULL rather than "0" or "". Is there a way to do this?

    >
    >
    >


  4. #4
    bj
    Guest

    RE: How do I set a result of an "if" function to NULL; not 0 or ""?

    What do you mean by "NULL"?
    and why don't you want ""?

    "mbrockhaus" wrote:

    > I'm using an "if" statement and I want to set the TRUE condition results to
    > NULL rather than "0" or "". Is there a way to do this?


  5. #5
    mbrockhaus
    Guest

    RE: How do I set a result of an "if" function to NULL; not 0 or ""

    I need to concatentate the results and so, if something "failed" the if
    check, I need the results to be NULL (or blank), without Excel thinking
    something is really in the cell (like a space; even "" seems to not be the
    same thing). Probably need something like a WHEN more than an IF.

    "bj" wrote:

    > What do you mean by "NULL"?
    > and why don't you want ""?
    >
    > "mbrockhaus" wrote:
    >
    > > I'm using an "if" statement and I want to set the TRUE condition results to
    > > NULL rather than "0" or "". Is there a way to do this?


  6. #6
    bj
    Guest

    RE: How do I set a result of an "if" function to NULL; not 0 or ""

    You will need to have a macro to do this.
    You cannot have a Blank in a cell as the result of an equation in that cell.
    the macro which would be needed, depends on how the data is organized.

    there are ways to get around the concatination of blank cells depending on
    what you want to do.

    "mbrockhaus" wrote:

    > I need to concatentate the results and so, if something "failed" the if
    > check, I need the results to be NULL (or blank), without Excel thinking
    > something is really in the cell (like a space; even "" seems to not be the
    > same thing). Probably need something like a WHEN more than an IF.
    >
    > "bj" wrote:
    >
    > > What do you mean by "NULL"?
    > > and why don't you want ""?
    > >
    > > "mbrockhaus" wrote:
    > >
    > > > I'm using an "if" statement and I want to set the TRUE condition results to
    > > > NULL rather than "0" or "". Is there a way to do this?


+ 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