+ Reply to Thread
Results 1 to 8 of 8

blank cell rather than 0

Hybrid View

  1. #1
    Registered User
    Join Date
    04-24-2009
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    20

    blank cell rather than 0

    i have some cells that refer to other cells

    i.e

    c4 =a1 until i enter something into a1 c4 gives a zero which inturn give other cells #N/A

    so what formula do i enter into c4 to return a blank if nothing has yet been entered into a1 but will give the value of a1 when something has been entered?


    thanks
    Last edited by puzzledpete; 04-24-2009 at 07:11 PM.

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,080

    Re: blank cell rather than 0

    Format C4 as a Custom
    and use type:

    0;-0;;@

    it will produce blank when there's nothing in A1 else it will show the value in A1
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: blank cell rather than 0

    underlying value will still be zero even if you cant see it. what formula has problem with c4=0?
    Last edited by martindwilson; 04-24-2009 at 07:18 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Registered User
    Join Date
    04-24-2009
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: blank cell rather than 0

    i tried that and it gave me a blank cell but still gave me #N/A in the other cells

    but i have solved it now with this

    =IF(A1 =0,"",A1)


    thanks anyway

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: blank cell rather than 0

    If that's all you need, you can just turn of ZERO VALUE for the whole sheet. (this isn't global, it just applies to the visible sheet).

    Go to TOOLS > OPTIONS > [ ] Zero Values and uncheck that. This is often better than all those extra IF evaluations.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  6. #6
    Registered User
    Join Date
    04-24-2009
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: blank cell rather than 0

    how do you do that in 2007 as there is not a tools tab?

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: blank cell rather than 0


  8. #8
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: blank cell rather than 0

    that will still leave 0 in cell but you cant see it.
    try in a1 =b1/c1 where b1 has no value you still get #div/0 error
    if however if c1 contains "" you get #value instead

+ 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