+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    03-18-2010
    Location
    Nashville, TN
    MS-Off Ver
    Excel 2007
    Posts
    2

    copying from other worksheet

    I have 2 tabs in this excel file and the format is hh:mm AM/PM. I am asking the fields in the 1st tab to copy the field of the same in the 2nd tab. Problem is that when there is no time in a field the copy field shows 12:00 AM when I really want the field to be blank. Please Help!!!

    Thanks,

  2. #2
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    18,225

    Re: copying from other worksheet

    If you just use a formula like:

    =Sheet2!A1


    ...then you will get zero results if the cell is empty. So you have to test for that.

    =IF(Sheet2!A2=0, "", Sheet2!A2)
    _________________
    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!)

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.2.0