+ Reply to Thread
Results 1 to 8 of 8

CDate

  1. #1
    Registered User
    Join Date
    01-17-2012
    Location
    america
    MS-Off Ver
    Excel 2010
    Posts
    4

    CDate

    Hi

    i have a column in an excel workbook titled cdate and the values under it are 5 digits (for example,14869, 14873 all the way to 15056). I have no idea how to convert these values to a date format. it is not through simply using the date function or converting the format to date. the values might be in stata format. could someone please help convert these values to dates?


    much appreciated

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Cdate help

    Hi, and welcome to the forum.
    Assuming they are stata dates based on 1/1/1960 = 0 then
    =A1+7047

    Format the resultant number as a date.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    01-17-2012
    Location
    america
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Cdate help

    thanks for the reply, but these dates correspond to prices of electronics at online retaliers, so they cannot be in the 1960's. do u know any other way to get the solution?

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,700

    Re: Cdate help

    Quote Originally Posted by blademaster3090 View Post
    for example,14869, 14873 all the way to 15056
    Do you know which dates those examples represent exactly?

    Quote Originally Posted by Richard Buttrey View Post
    =A1+7047
    Why 7047 Richard? In Excel 1/1/1960 = 21916 so wouldn't you need to add that value?
    Audere est facere

  5. #5
    Registered User
    Join Date
    01-17-2012
    Location
    america
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Cdate help

    hese dates correspond to prices of electronics at online retaliers

  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,700

    Re: Cdate help

    Yes, but do you know exactly which date 14869 represents? If you don't it's going to be difficult for anybody here to reliably convert your numbers....or for you to check that any method suggested is accurate.......

  7. #7
    Registered User
    Join Date
    01-17-2012
    Location
    america
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Cdate help

    ur right, its supposed to start from 2000, thanks for the help.

  8. #8
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Cdate help

    Hi ddl,

    Thanks for the correction, you are quite right. I'd used the 14869 number the OP first mentioned as the base date. No don't ask.

    So to clarify, on the basis that the stata dates are all 1/1/1960 zero based the required formula is indeed

    =A1+21916

    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