+ Reply to Thread
Results 1 to 3 of 3

Display a hyphen in cells that link to BLANK cells

  1. #1
    Registered User
    Join Date
    07-15-2010
    Location
    NYC
    MS-Off Ver
    Excel 2002
    Posts
    2

    Question Display a hyphen in cells that link to BLANK cells

    I'm having the hardest time with this:

    I have two worksheets in an excel file: I'll call them Tab1 and Tab2.

    Cells in Tab2 link to cells in Tab1.

    I want the cells in Tab2 to display a hyphen "-" when the referenced cell in Tab1 is BLANK/completely empty.

    If the referenced cell in Tab1 has any data whatsoever (1, 2, a 0/zero), it should carry over into Tab2.

    Any help is greatly appreciated.




    .

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Display a hyphen in cells that link to BLANK cells

    Change the formula to add a test:

    =if(tab2!A1="", "-", tab2!A1)

    Excel functions can't distinguish between a blank cell and a cell with a formula that returns a null string.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    07-15-2010
    Location
    NYC
    MS-Off Ver
    Excel 2002
    Posts
    2

    Re: Display a hyphen in cells that link to BLANK cells

    Ahhhhh - What a great way to end the day. Many edits to make, but it works. Thank You so much! - N

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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