+ Reply to Thread
Results 1 to 5 of 5

rearranging dates

  1. #1
    Registered User
    Join Date
    06-09-2021
    Location
    Hexham, England
    MS-Off Ver
    Excel for Office 365
    Posts
    3

    rearranging dates

    Hi,
    I have inherited a spreadsheet in which has columns for two dates. A year column and a month and day column. The "year" column is simply yyyy so 1721. The "date" column has been written Mar-23, Aug-17, Dec-03 meaning 23rd March 1721, 17th August 1721, December 3rd 1721. Excel returns 01/03/2021 and so on for the "date" column. How can I convert/extract/undo(?) the date formatting so that I can extract the correct day and month from the "Month and day" column?
    Any help much appreciated as I have from 1721 to 1981 to sort out!

    excel year date.png

  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: rearranging dates

    Hi,

    Excel doesn't hold date numbers prior to 1st January 1900, so you couldn't perform any data arithmetic in the normal way.
    You could create strings of text that look like dates.

    What are you trying to do. If it's the number of days/weeks..etc between two dates then you could start by adding say 200 years to both the start and end year number and then creating a proper date number.

    However upload a workbook or a representative cut down copy, anonymised if necessary. It is always easier to advise if we can see your request in its context.

    Show a before and after situation with manually calculated results, explaining which information is data and which is results, and if it's not blindingly obvious how you have arrived at your results some explanatory notes as well.

    To upload a file click the Go Advanced button at the foot of your post, look underneath the post area for the Manage Attachments section and take it from there.
    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
    06-09-2021
    Location
    Hexham, England
    MS-Off Ver
    Excel for Office 365
    Posts
    3

    Re: rearranging dates

    Hi Richard,

    thanks for taking the time to reply.

    I've put some notes on the workbook. These are pages of a Burial Index I have inherited. As you will see the columns in blue are the original data as I get it. What I need is in the yellow column. In essence, the two blue columns joined up to give the correct date of the entry. So 2nd January 1832 instead of 1832 and 1st January 2002.

    Thanks.
    Attached Files Attached Files

  4. #4
    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: rearranging dates

    Hi,

    This uses a new helper column A with A2 = C2 and A3 copied down
    =IF(C3="",A2,C3)



    In new E2 copied down enter

    =IF(AND($C1<>"Year",$C2<>""),"",RIGHT(YEAR($D2),2)&" "&TEXT(MONTH($D2)*28,"mmm")&" "&$A2)

    See attached
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    06-09-2021
    Location
    Hexham, England
    MS-Off Ver
    Excel for Office 365
    Posts
    3

    Re: rearranging dates

    Richard thank you so very much. I'm not sure I understand fully how it works - but it does and that's the important thing. This will save me so much time.

    Thank you.

    Jeremy

+ 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. Rearranging Whole Row Together
    By ruuu in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-20-2014, 05:05 AM
  2. Rearranging Production Data According to Dates
    By weelongtanwl in forum Excel General
    Replies: 1
    Last Post: 09-12-2012, 09:53 AM
  3. [SOLVED] Rearranging an time series with missing dates
    By bafuncio in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-09-2012, 04:29 PM
  4. Need help on rearranging data
    By psatkar in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-05-2006, 02:15 PM
  5. rearranging ?
    By gvjonswim in forum Excel General
    Replies: 1
    Last Post: 09-18-2006, 03:30 PM
  6. Rearranging aTable
    By PT in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 12-05-2005, 01:40 PM
  7. [SOLVED] Rearranging Data Help...
    By Jambruins in forum Excel General
    Replies: 0
    Last Post: 02-22-2005, 12:06 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