+ Reply to Thread
Results 1 to 3 of 3

Remove or hide time when copy is blank

  1. #1
    Registered User
    Join Date
    06-08-2009
    Location
    Annapolis, Maryland
    MS-Off Ver
    Excel 2007
    Posts
    85

    Remove or hide time when copy is blank

    Hello all.

    I have two worksheets - Managers and Employees - for tracking employees' time and tips while providing a printout of their weekly schedule. The times plugged into the Managers worksheet copy to the Employees worksheet. Times are formatted as h:mm AM/PM.

    On the Managers sheet, A1 may have 10:00 AM and B1 may have 5:30 PM. But if the word OFF is in A1, then B1 is blank.

    Problem: On the Employees worksheet, A1 will show the word OFF, but B1 will show 12:00 AM.

    How can I get rid of worksheet showing 12:00 AM? I just want it to be blank unless it's an actual time.

    Thanks for your help! Oh, I don't want to use macros unless it's unavoidable.
    Last edited by debbiesh; 03-07-2011 at 02:21 PM. Reason: Forgot a line.

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Remove or hide time when copy is blank

    Add a test to the formula by using an IF() function

    like

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

    replace ref cell with actual cell address being referenced

  3. #3
    Registered User
    Join Date
    06-08-2009
    Location
    Annapolis, Maryland
    MS-Off Ver
    Excel 2007
    Posts
    85

    Re: Remove or hide time when copy is blank

    Thanks! That's exactly what I needed.

+ 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