+ Reply to Thread
Results 1 to 4 of 4

Linked cell display issue.

  1. #1
    Registered User
    Join Date
    09-26-2009
    Location
    ontario canada
    MS-Off Ver
    Excel 2003
    Posts
    64

    Linked cell display issue.

    Hello Excel experts;
    I have a worksheet in one workbook that has cells linked to another worksheet in a different workbook. If there is no data in the primary cell the default display is "0". How can I have the linked cell remain empty if there is no information. This is a real problem for cells that contain dates. For example, the cell linked to ='[TEST CREW 2.xls]T-0'!$BJ$366, displays 1/0/1900 if there is nothing in [TEST CREW 2.xls]T-0'!$BJ$366.
    Thanks in advance for your help.
    Last edited by pdmkh; 01-08-2011 at 10:25 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Linked cell display issue.

    You can double evaluate the formula eg:

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

    but note that with dates/numbers this means some cells will contain numbers (the date) whereas others will contain text (Null)

    The downside to this approach is that you're processing the link/formula potentially twice over - depending upon the efficiency of what you're doubling up on this could be bad news.

    If it's an aesthetic issue then you can use a Custom Format, eg for Date cells: m/d/yyyy;;;@

    this will "mask" the 0 so it appears as blank and does not print, however, the 0 will remain as the underlying cell value.

    Extending the format notion further...

    If zeroes are never valid anywhere on your sheet you can toggle the "show a zero in cells that have a zero" option in Excel Options but if you ever need to display a 0 this will not be viable.

  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: Linked cell display issue.

    =if('[TEST CREW 2.xls]T-0'!$BJ$366,'[TEST CREW 2.xls]T-0'!$BJ$366,"")
    or turn of the display zero in excel options
    or custom format the cells
    0;-0;;@
    or conditional format white text if cell = 0
    "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
    09-26-2009
    Location
    ontario canada
    MS-Off Ver
    Excel 2003
    Posts
    64

    Re: Linked cell display issue.

    Thank you very much. Turning off the zero display was the simplest solution to use.

+ 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