+ Reply to Thread
Results 1 to 17 of 17

dates on/after 09/01/2011 are removing date from other cells

  1. #1
    Registered User
    Join Date
    01-08-2011
    Location
    Tyne & Wear, England
    MS-Off Ver
    Excel 2000
    Posts
    7

    dates on/after 09/01/2011 are removing date from other cells

    Hi

    Please forgive the length as I'm quite new to this.

    I'm using a timesheet workbook for working flexi hours. It shows how many hours needed to work that day, you enter start and finish times and it shows if you are plus or minus for that day and every day for a four week period. The dates are changed by the following formula
    =DATE(2010,12,20) (in cell H3) you just alter the date here then each subsequent date cell is changed by =H$3+1
    =H$3+2
    =H$3+3 etc.
    The hours to be worked and credit/debit results use the following:-
    =IF(B34>NOW(),"",TRUNC(B!H31/60)+(B!H31/60-TRUNC(B!H31/60))*0.6)
    =IF(B34>NOW(),"",TRUNC(B!I31/60)+(B!I31/60-TRUNC(B!I31/60))*0.6)
    These use data from a second sheet.

    This has worked fine for a number of years but now for some reason whenever the date in any cell reaches 09/01/2011 or any date after that, data from the daily hours and credit/debit cells is being removed and leaves blank cells not only on the main sheet but also the second sheet from which the time data is being obtained..

    Can anyone help?
    Last edited by SnowblindMonkey; 01-09-2011 at 05:48 PM. Reason: Solved

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: dates on/after 09/01/2011 are removing date from other cells

    post a workbook i cant reproduce that
    "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

  3. #3
    Registered User
    Join Date
    01-08-2011
    Location
    Tyne & Wear, England
    MS-Off Ver
    Excel 2000
    Posts
    7

    Re: dates on/after 09/01/2011 are removing date from other cells

    Hope this worked.

    Mondays and Tuesdays are meant to be blank as the person its for is only part time.

    To illustrate the problem I have amended the date formula in the last week of the month so you can see what happens on 09/01. It has never happened before.

    (There were two macros running, one for printing the sheet and another for clearing your entered times but I have removed them for the post)
    Attached Files Attached Files
    Last edited by SnowblindMonkey; 01-08-2011 at 10:22 AM.

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: dates on/after 09/01/2011 are removing date from other cells

    edit or make a new post click advanced then use the paperclip icon to attach a sample workbook

  5. #5
    Registered User
    Join Date
    01-08-2011
    Location
    Tyne & Wear, England
    MS-Off Ver
    Excel 2000
    Posts
    7

    Re: dates on/after 09/01/2011 are removing date from other cells

    edited and attached above

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: dates on/after 09/01/2011 are removing date from other cells

    your formula in j42 says
    =IF(B42>NOW(),"",TRUNC(B!H39/60)+(B!H39/60-TRUNC(B!H39/60))*0.6)
    this bit
    =IF(B42>NOW(),""
    as today is the 8th and b42 the 9th then that formula will give blank

  7. #7
    Registered User
    Join Date
    01-08-2011
    Location
    Tyne & Wear, England
    MS-Off Ver
    Excel 2000
    Posts
    7

    Re: dates on/after 09/01/2011 are removing date from other cells

    Thanks, but I don't think that is the problem as the date it removes the date from is always 09/01/2011 the error first occured on the 20/12/2010 when I first entered the start date at the top as 20/12/2010.
    The workbook has always worked showing four weeks in advance since it was created in 2002 and only when a date from 09/01/2011 is in a cell, does the error occur

  8. #8
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: dates on/after 09/01/2011 are removing date from other cells

    highlite the cells that are wrong and repost
    but it wont alter the fact that any date greater than now() or today() will be blank with that formula
    there is something strange with this workbook tho,why are the transition formula entry and evaluation boxes checked in options
    also i don't understand this
    =IF(B!L34<"","",+B!L34) less than "" ?????
    Last edited by martindwilson; 01-08-2011 at 12:32 PM.

  9. #9
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: dates on/after 09/01/2011 are removing date from other cells

    ah i did some reading looks like this was written in lotus notes and then used in excel.. now i have no idea how lotus notes work
    When the Transition Formula Entry check box is selected, Microsoft Excel allows you to enter and evaluate formulas in a manner more consistent with the behavior of Lotus 1-2-3.

    The Transition Formula Entry option allows you to open Lotus 1-2-3 files without losing or changing information. Note that whenever a Lotus 1-2-3 file is opened in Microsoft Excel, these options are automatically turned on

  10. #10
    Registered User
    Join Date
    01-08-2011
    Location
    Tyne & Wear, England
    MS-Off Ver
    Excel 2000
    Posts
    7

    Re: dates on/after 09/01/2011 are removing date from other cells

    I think I see what you mean so it will remain blank until that date. Then it will show the correct data. But why then is there data showing in cells J45 and K45 (highlighted in yellow on attached original sheet) with the same formula?

    =IF(B!L34<"","",+B!L34) less than "" ?????

    I didn't write this line or the sheet I'm just trying to fix it. The original creator is no longer around and I am not expertienced in excel...as you can probably tell lol
    Attached Files Attached Files
    Last edited by SnowblindMonkey; 01-08-2011 at 12:49 PM.

  11. #11
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: dates on/after 09/01/2011 are removing date from other cells

    its something to do with lotus b45 in excel would =0 but its showing as null this whole thing needs reworking into excel

  12. #12
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: dates on/after 09/01/2011 are removing date from other cells

    formulas should be like this but i suspect your macro re-writes in lotus format it probably needs fixing for excel
    Attached Files Attached Files

  13. #13
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: dates on/after 09/01/2011 are removing date from other cells

    This may have nothing to do with the current status of this thread, but earlier I tried to enter a time value in Column C, like 8:00, and I got an error that puzzled me.

    The formula you have typed contains an error......

    Copying the data to a new sheet removed this problem, nothing else seemed to work, but I didn't follow this route up.

    Please ignore this if that has been resolved.

  14. #14
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: dates on/after 09/01/2011 are removing date from other cells

    thats what puzzled me i tried using ctrl+; to put todays date in a cell and an it came out as
    "=08/01/2011" displayed in formula bar instead of just "08/01/2011"
    formatted cell as date and it gave a 1900 date.its all down to this lotus thing i wonder of lotus doesn't go beyond 2010?

  15. #15
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: dates on/after 09/01/2011 are removing date from other cells

    I don't profess to know, but I get a gut feeling that this missing macro might help
    (There were two macros running, one for printing the sheet and another for clearing your entered times but I have removed them for the post)

  16. #16
    Registered User
    Join Date
    01-08-2011
    Location
    Tyne & Wear, England
    MS-Off Ver
    Excel 2000
    Posts
    7

    Re: dates on/after 09/01/2011 are removing date from other cells

    Martin.

    The dates now all show as 1900 but thanks for finding out about the Lotus issue I will play around and see if I can alter the formulas to work

    Marcol - the first original file had the macros on and all they do is print out the sheet and clear the entered in and out times but the error was still there. I only removed them from the upload as they didn't seem necessary.

  17. #17
    Registered User
    Join Date
    01-08-2011
    Location
    Tyne & Wear, England
    MS-Off Ver
    Excel 2000
    Posts
    7

    Re: dates on/after 09/01/2011 are removing date from other cells

    I appear to have fixed it!!

    I have removed the =IF >NOW() from every cell it was in and everything appears to work fine now

    Thanks

+ 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