+ Reply to Thread
Results 1 to 4 of 4

Formula doesn't work when copied

  1. #1
    Registered User
    Join Date
    06-26-2015
    Location
    Manila, Philippines
    MS-Off Ver
    2010
    Posts
    7

    Formula doesn't work when copied

    Hi everyone! I hope someone can help me out. I found a sample sheet online which in a way does what I wanted it to do. My problem is, the moment you edit the formula it no longer works as it should!

    If you can see the image below, what I wanted to do is have the time/date appear in Column J whenever an employee enters his/her employee code in column B for his clock in and have the the time of his clock out appear in column K whenever he enters his/her code in column D.

    Sample sheet.jpg

    Below are the formulas I'm using

    Original Formulas

    (This formula is in column J of the workbook)
    =IF(C5<>"",IF(J5="",NOW(),J5),"")

    (This formula is in column C)
    =IF(B5="","",IF(LEN(B5)>6,VALUE(LEFT(B5,LEN(B5)-1)),B5))

    The iteration box is also ticked, but if I go to the formula bar and do something simple like place the cursor there and hit enter (even if I virtually DID NOTHING to change the formula) it will not work anymore! Why is that?

    If I copy the formula down it works (as long as I am not copying it by highlighting the formula from the formula bar), but if I copy the formula and paste to a different workbook or worksheet it no longer works! Instead of showing the actual date and time it shows 12:00 AM and 01/00/00.

    I hope somebody can help me.

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Formula doesn't work when copied

    that sounds like it is an array formula. If you put your cursor in the formula bar, before you leave it you have to hit control shift and enter to make it work. While it worked did it have {} at the front and end of the formula?
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    06-26-2015
    Location
    Manila, Philippines
    MS-Off Ver
    2010
    Posts
    7

    Re: Formula doesn't work when copied

    Hi Sambo Kid,

    No, the formula is not enclosed in {} but I just tried your tip, hitting the ctrl shift enter keys and it worked! Thank you!

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Formula doesn't work when copied

    Great! Don't forget to mark your post as solved (using the thread tools dropdown at the top of the post) if that takes care of your issue.

+ 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. Index formula does not work when copied to other Columns?
    By Herr Rommel in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-22-2015, 08:05 AM
  2. [SOLVED] When data is copied to another workbook, hyperlinks as not copied or they don't work
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-17-2014, 06:46 AM
  3. [SOLVED] I've copied a code directly from YouTube but it doesn't work for me
    By PistachioPedro in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-31-2013, 12:52 AM
  4. [SOLVED] RANK formula won't work when copied from PowerPivot
    By dcdeez in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-16-2013, 04:01 PM
  5. formula copied or updated does now work! (sum if in this case)
    By joe pt in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-28-2013, 11:12 AM
  6. Copying a webpage - it doesn´t work as just fractions get copied
    By brecki in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-14-2012, 05:26 PM
  7. Excel 2007 : copied formula doesn't display correct result
    By frustratedinWA in forum Excel General
    Replies: 2
    Last Post: 03-05-2009, 02:56 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