+ Reply to Thread
Results 1 to 6 of 6

formula =Cell returns 0 if cell is empty - can it be blank?

  1. #1
    Registered User
    Join Date
    11-05-2013
    Location
    NL
    MS-Off Ver
    Excel 2007
    Posts
    1

    formula =Cell returns 0 if cell is empty - can it be blank?

    Hi all,

    I would like a cell to give the value of another cell and remain blank if the reference cell is blank. The formula ='cell' (where 'cell' is the reference cell) works well, except when the reference cell is empty - in that case it returns 0 (zero).

    What can I do to make the formula return a blank when the reference cell is blank?

    Thanks

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,088

    Re: formula =Cell returns 0 if cell is empty - can it be blank?

    You can use something like:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    or, if the data is always alphanumeric, you can use:

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    If you use the second one with a numeric value, it will make it a text field. That is, it will still look like a number but it will be left aligned and some numeric calculations won't work.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: formula =Cell returns 0 if cell is empty - can it be blank?

    =IF( ISBLANK(cell), "", cell)

    That will fill the cell with an empty (zero characters) text string. So it's not technically blank (for example, ISBLANK("") returns FALSE), but it looks that's the typical way to deliver what you're after.

  4. #4
    Forum Contributor
    Join Date
    08-14-2013
    Location
    Here and there
    MS-Off Ver
    Excel 2010
    Posts
    376

    Re: formula =Cell returns 0 if cell is empty - can it be blank?

    Let's say A1 = 100, A2 = (blank), A3 = 200. In cell B1 use the IF function i.e. something like this =IF(A1="","",A1) and drag it down to B3 and now B1 = 100, B2 = blank, B3 = 200

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,088

    Re: formula =Cell returns 0 if cell is empty - can it be blank?

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,088

    Re: formula =Cell returns 0 if cell is empty - can it be blank?

    @jowes: thank you for marking the thread as solved. It is considered good etiquette and practice to provide feedback, possibly a thank you, to those who have helped you solve your problem ... especially, so quickly: three (3) answers and explanations within seven (7) minutes of asking.

    A thank you and, ideally, positive reputation points might just encourage those people to consider helping you again in the future. Then again, ...

    Regards, TMS

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] need formula that finds phone #, if true, returns empty cell
    By jessexcel in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-23-2013, 11:44 PM
  2. Replies: 6
    Last Post: 08-16-2011, 07:45 PM
  3. Replies: 6
    Last Post: 09-16-2010, 05:19 AM
  4. Formula returns #Value! empty cell value
    By ingineu in forum Excel General
    Replies: 4
    Last Post: 10-02-2006, 05:49 AM
  5. Replies: 2
    Last Post: 10-21-2005, 12:05 PM

Tags for this Thread

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