Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-03-2018, 11:26 AM
Begadoc Begadoc is offline Convert and split date fields Windows 10 Convert and split date fields Office 2016
Novice
Convert and split date fields
 
Join Date: Nov 2013
Location: NW England
Posts: 20
Begadoc is on a distinguished road
Default Convert and split date fields

I have a database of some 6000 plus church burial records. These have been recorded as a date field for day and month (e.g. 22-Jan) and a second field for year (e.g 1775) All this data, plus data in a lot of other fields, is being transferred to a new program, for which the data needs to be in 4 fields - field 1 = date in the format of DD/MM/YYYY, field 2 = DD, field 3 = MM and field 4 = YYYY.

For starters I tried using search and replace to change all( for example) -Feb to /02, but that fails to find any. I also tried to convert the date fields to text but that resulted in dates such as 17-Feb becoming 43148. Once I get past this issue I hope that search and replace and concatenating will allow me to create the other filelds.



Any pointers as to how to achieve this?
Reply With Quote
  #2  
Old 05-07-2018, 12:49 PM
gebobs gebobs is offline Convert and split date fields Windows 7 64bit Convert and split date fields Office 2010 64bit
Expert
 
Join Date: Mar 2014
Location: Atlanta
Posts: 837
gebobs has a spectacular aura aboutgebobs has a spectacular aura about
Default

Are the dates (e.g. 22-Jan) date formatted? My guess is they are and are actually 20th or 21st century dates (thus the need for the year field since Excel can't handle dates prior to 1/1/1900 as it does dates thereafter).

If that's the case, then Field 2 can be populated with the Day function and Field 3 can be populated with the Month function. Obviously, Field 4 can be directly populated. Field 1 is then just a concatenation of these.

At any rate, if you post a sample of your sheet, it would make it easier to see how it needs to be done.
Reply With Quote
  #3  
Old 05-07-2018, 01:39 PM
Begadoc Begadoc is offline Convert and split date fields Windows 10 Convert and split date fields Office 2016
Novice
Convert and split date fields
 
Join Date: Nov 2013
Location: NW England
Posts: 20
Begadoc is on a distinguished road
Default

Thanks for the reply. In the meantime I found a way round this - a bit laborious but it worked. I copied the columns to a Word table, and converted the table to text. Once in Word I was able to use search and replace to change the months to a numeric representation (eg 22-Feb to 22 02), then split the date into the DD and MM. The YYYY I already had so I was easily able to produce a table with the 4 columns in Word. That was then pasted back into the Excel database.
Reply With Quote
  #4  
Old 05-07-2018, 11:16 PM
ArviLaanemets ArviLaanemets is offline Convert and split date fields Windows 8 Convert and split date fields Office 2016
Expert
 
Join Date: May 2017
Posts: 873
ArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud of
Default

Access allows to enter dates starting from January 1st 100.
Reply With Quote
  #5  
Old 05-08-2018, 07:53 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Convert and split date fields Windows 7 64bit Convert and split date fields Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,779
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Quote:
Originally Posted by Begadoc View Post
Thanks for the reply. In the meantime I found a way round this - a bit laborious but it worked. I copied the columns to a Word table, and converted the table to text. Once in Word I was able to use search and replace to change the months to a numeric representation (eg 22-Feb to 22 02), then split the date into the DD and MM. The YYYY I already had so I was easily able to produce a table with the 4 columns in Word. That was then pasted back into the Excel database.

Nice solution !
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
subtract date and time and convert to decimal hours ? DBenz Excel 5 01-26-2017 05:38 AM
Convert and split date fields Copying DNA from web and need to convert column date to ex: 11-15 JacMUr2 Excel 2 01-22-2016 03:36 AM
Convert csv document to excel, format date coba Excel Programming 3 01-07-2016 04:18 AM
Convert and split date fields Convert text to date format klllmmm Excel 5 11-16-2015 07:02 AM
Non-printing button to convert a date field to text Greengecko Word VBA 1 09-09-2014 09:40 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:13 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft