+ Reply to Thread
Results 1 to 4 of 4

return an EMPTY cell in an IF formula

  1. #1
    JJN
    Guest

    return an EMPTY cell in an IF formula

    I want the following formula to return an empty cell. (not a cell with ""
    text in it). Everything I tried to put in either gives me a "text" or "0". or
    I do have a macro that deletes the cell content, but how do you run a macro
    where the ??? are.
    =IF(ISBLANK(E9)=FALSE,E9,???)


  2. #2
    Forum Contributor EdMac's Avatar
    Join Date
    01-23-2006
    Location
    Exeter, UK
    MS-Off Ver
    2003
    Posts
    1,264
    Hi JJn,

    I don't see what you are trying to achieve - can you explain a bit more?

    Ed

  3. #3
    Dave Peterson
    Guest

    Re: return an EMPTY cell in an IF formula

    Maybe you can use:

    =if(isblank(e9)=false,e9,na())

    Then you can select that range (a single column)
    edit|goto|special
    formulas
    Only errors
    hit the delete key

    You can record a macro if you want code.

    Remember that the formula will be gone--so if E9 changes, that cell won't
    update.

    JJN wrote:
    >
    > I want the following formula to return an empty cell. (not a cell with ""
    > text in it). Everything I tried to put in either gives me a "text" or "0". or
    > I do have a macro that deletes the cell content, but how do you run a macro
    > where the ??? are.
    > =IF(ISBLANK(E9)=FALSE,E9,???)


    --

    Dave Peterson

  4. #4
    Chip Pearson
    Guest

    Re: return an EMPTY cell in an IF formula

    Try

    =IF(ISBLANK(E9)=FALSE,E9,"")

    But it seems that you don't need the IF statement at all. You
    could simply use

    =E9



    --
    Cordially,
    Chip Pearson
    Microsoft MVP - Excel
    Pearson Software Consulting, LLC
    www.cpearson.com



    "JJN" <[email protected]> wrote in message
    news:[email protected]...
    >I want the following formula to return an empty cell. (not a
    >cell with ""
    > text in it). Everything I tried to put in either gives me a
    > "text" or "0". or
    > I do have a macro that deletes the cell content, but how do you
    > run a macro
    > where the ??? are.
    > =IF(ISBLANK(E9)=FALSE,E9,???)
    >




+ 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