+ Reply to Thread
Results 1 to 5 of 5

Same Date two different data bases ....actual date numbers different....why?

  1. #1
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,662

    Same Date two different data bases ....actual date numbers different....why?

    Enclosed is an excel file.

    This file has two cols of data. ColA and ColB.
    ColA has two dates in it...one in row1 and one in row4. If you check to see if the dates in A1 and A4 are equal (see cell A6) you will see that they are not. Its not until you format colA as a number that you see the "last" number is diff between A1 and A4. But if you format colA as a date with time ....they appear equal.........so why arent the numbers equal?
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,367

    Re: Same Date two different data bases ....actual date numbers different....why?

    Has one of these dates been calculated? Look:

    AliGW on MS365 Beta Channel (Windows 11) 64 bit

    A
    1
    44215.3661362268
    2
    3
    4
    44215.3661362269
    Sheet: Sheet1
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,146

    Re: Same Date two different data bases ....actual date numbers different....why?

    as numbers

    A1=44215.3661342593

    A4==44215.3661362269

    Hence the FALSE result which reflected how Excel holds dates as floating-point numbers

    Formatting cells as dd/mm/yyyy hh:mm.ss.000 (000= milliseconds) will show the difference.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  4. #4
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,662

    Re: Same Date two different data bases ....actual date numbers different....why?

    hi all,

    when i format the cells per your suggestion i still see no difference. even the seconds in mine are exactly the same. so i must be doing something wrong.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,367

    Re: Same Date two different data bases ....actual date numbers different....why?

    The table in my post is taken from YOUR file! Did you increase the number of decimal places to see the issue?
    Attached Files Attached Files

+ 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. Convert numbers appearing as a date into actual date in order to sort data
    By Santa1986 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-06-2015, 12:56 PM
  2. Date Difference Bases on Cell Value
    By swisha in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-28-2015, 07:30 AM
  3. [SOLVED] How to change text date (eg. July) to actual date format?
    By kellyfirth in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-10-2015, 09:49 AM
  4. Replies: 4
    Last Post: 09-19-2014, 11:26 AM
  5. Replies: 9
    Last Post: 06-14-2013, 04:38 AM
  6. Color Code Actual Date versus Due Date ( Red, Yellow, Green )
    By Bfisher74 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-28-2013, 10:10 AM
  7. Change date serial to actual date numbers
    By thompssc in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-03-2012, 12:47 PM

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