+ Reply to Thread
Results 1 to 15 of 15

Date Errors

  1. #1
    Registered User
    Join Date
    01-09-2007
    Posts
    8

    Date Errors

    I'm trying to have a fixed date entered into column B when data is entered into column D. Here's the formula in column B:

    =IF(D3="", IF(B3=";", FixedDate(),B3))

    When I enter data into cell D, I get the following result in B:

    0-Jan-00

    Taking this a step further, even if I do a "control + ;" I still get a value of
    0-Jan-00 in the cell but the formula bar shows me "=1/9/2007'. ??

    I've gone through all of the options but cannot fix this error. I have two spreadsheets using this formula. The first one worked fine last year but now I have this error in it. I also started to create a new sheet and still have the same error.

    Any thoughts?

    Thanks!

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Not sure I understand the question fully, but does this help - if not can you explain more

    =IF(AND(B3="",D3=""),TEXT(39091,"mm/dd/yy"),B3)
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Registered User
    Join Date
    01-09-2007
    Posts
    8
    Thanks for the reply! I pasted your formula into a blank sheet and I still get a returned date value of: 01/00/00.

    Something is either missing or wrong with my Excel but this did work last year for me. What I'm looking to do is when data is entered into cell D3, that days date appears in cell B3. Now, If I open the sheet tomorrow, I still have yesterday's date in cell B3. If new data is entered into cell D4, I get that date in cell B4.

    Thanks!!

  4. #4
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    What you need is a macro to record the date each time the data changes in cell D4, take a look at this link

    http://www.cpearson.com/excel/events.htm

    Hopefully someone with more vba knowledge than me will right the code for you

  5. #5
    Registered User
    Join Date
    01-09-2007
    Posts
    8
    I attached a snap shot of what I get when I run the "control+;" command. I should get 01/09/2007 in the cell but I only get 0-Jan-00

    Attached Images Attached Images

  6. #6
    Registered User
    Join Date
    01-09-2007
    Posts
    8
    I also tried this equation:

    =IF(ISBLANK(D1),"",IF(B1="",FixedDate(),B1))

    D = driving value. Once data is entered here, a fixed date is placed in B

    B values are still returning at 0-Jan-00.

    I used this FixedDate command from September 06 to Dec 06 without any issues. Once we got into Jan 07, it no longer works.

  7. #7
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Is it possible to post a zipped spreadsheet (remove sensitive data) so that someone can see exactly what you mean?

    If you go to My Documents or wherever you keep your file, right-click on it and Sent to > Compressed file, then post that.

  8. #8
    Registered User
    Join Date
    01-09-2007
    Posts
    8
    OK, here's a copy of what I'm working with. I really appreciate the support as I cannot figure this out. I still think it might be a problem within the settings because even a =NOW() or CTRL+; function returns 0-Jan-00.
    Attached Files Attached Files

  9. #9
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    When you open the zip file you get a circular reference error

    Extract for help file
    When a formula refers back to its own cell, either directly or indirectly, it is called a circular reference. Microsoft Excel cannot automatically calculate all open workbooks when one of them contains a circular reference. You can remove a circular reference, or you can have Excel calculate each cell involved in the circular reference once by using the results of the previous iteration. Unless you change the default settings for iteration, Excel stops calculating after 100 iterations or after all values in the circular reference change by less than 0.001 between iterations, whichever comes first.

  10. #10
    Registered User
    Join Date
    01-09-2007
    Posts
    8
    Yeah, I saw that, so I checked the iteration command under options. The thing I cannot figure out is that I did not get this error last year. The sheet worked fine from Sept.-Dec. 2006.

    Even if you use just =NOW() you get the wrong value.

    Thank you!!

  11. #11
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    When you say it worked Sept 06 - Dec 06, is this now another workbook? Have you made a copy?

  12. #12
    Registered User
    Join Date
    01-09-2007
    Posts
    8
    Yes and no, I noticed in the original sheet that the date function stopped working as of 01-01-2007. So I created an exact duplicate and entered the same formula into the sheet.

    Something is really weird here, I just went back to the original sheet and made a new entry, when I do this, I get a date value of 10-Jan-
    07.

    Yesterday this was not possible. The formula and option settings in this original exactly match the one I zipped in this forum. So how can one work and not the other? I attached a working copy of this sheet. password is set to: temp
    Attached Files Attached Files

  13. #13
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Thought this what is was, you have a macro that does the FixedDate function. You can see it by right-clicking on the xl icon to the left of File, it's under Module 1, you need to copy this to your new workbook

  14. #14
    Registered User
    Join Date
    01-09-2007
    Posts
    8
    You found it! Thanks for all your help, I would not have fixed this without you.

  15. #15
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Glad your OK now - thanks for the feedback.

+ 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