Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

convert text cells to date cells in Excel

Thread Tools
 
Search this Thread
 
Old 02 March 2006, 07:12 PM
  #1  
spectrum48k
Scooby Regular
Thread Starter
 
spectrum48k's Avatar
 
Join Date: Feb 2006
Posts: 2,519
Likes: 0
Received 0 Likes on 0 Posts
Default convert text cells to date cells in Excel

a column of 200 cells
each cell has date entered in the format dd.mm.yy eg. 31.06.05
problems stems from the cells being formatted as "text"

Is there any experienced Excel uses who can tell me how to convert these cells so they're formatted correctly eg. set to dd/mm/yyyy

I've tried selecting the column and manually setting format cells to "date" to no avail. No effect at all.

Any help would be appreciated
Old 02 March 2006, 07:50 PM
  #2  
HHxx
Scooby Regular
 
HHxx's Avatar
 
Join Date: Nov 2001
Posts: 2,576
Likes: 0
Received 0 Likes on 0 Posts
Default

Got me thinking, so I had a go. I'm normally crap at Excel.

Column A = formatted as text - current text formatted date.
Column B = formatted as date - =DATE("20"&RIGHT(A1,2),MID(A1,4,2),LEFT(A1,2))

That did it for me. The "20" part is because on my Excel it kept getting the year 1905.

Hopefully that works for you

H
Old 02 March 2006, 10:39 PM
  #3  
spectrum48k
Scooby Regular
Thread Starter
 
spectrum48k's Avatar
 
Join Date: Feb 2006
Posts: 2,519
Likes: 0
Received 0 Likes on 0 Posts
Default

You're a star H! Thanks so much!

Old 02 March 2006, 11:01 PM
  #4  
SPEN555
Scooby Regular
 
SPEN555's Avatar
 
Join Date: Dec 2000
Location: West Yorkshire
Posts: 3,828
Likes: 0
Received 0 Likes on 0 Posts
Default

Or Highlight the cells and cleck I think Edit then find and replace. Type in '.' (full stop) and in replace put '/' forward slash. Then do the same for '05' to '2005'. Leave the cells as text though as it will end up dividing it.
Old 03 March 2006, 12:03 AM
  #5  
spectrum48k
Scooby Regular
Thread Starter
 
spectrum48k's Avatar
 
Join Date: Feb 2006
Posts: 2,519
Likes: 0
Received 0 Likes on 0 Posts
Default

Good thinking Spen - dead simple, but I bet it works a treat also.
Old 03 March 2006, 08:31 AM
  #6  
Dracoro
Scooby Regular
 
Dracoro's Avatar
 
Join Date: Sep 2001
Location: A powerslide near you
Posts: 10,261
Likes: 0
Received 0 Likes on 0 Posts
Default

Originally Posted by HHxx
Got me thinking, so I had a go. I'm normally crap at Excel.

Column A = formatted as text - current text formatted date.
Column B = formatted as date - =DATE("20"&RIGHT(A1,2),MID(A1,4,2),LEFT(A1,2))

That did it for me. The "20" part is because on my Excel it kept getting the year 1905.

Hopefully that works for you

H
Careful though. Apart from dates being in the 19XX range. There's an Excel setting that you can set what year it goes from 20xx to 19xx, IIRC it's 32 (i.e. 31- = 2031, 32+ = 1932). Also you've asked for TWO digits, this is fine if the date is 12/10/94 but what about if the numbers are single values 1/9/94?
Old 03 March 2006, 07:30 PM
  #7  
spectrum48k
Scooby Regular
Thread Starter
 
spectrum48k's Avatar
 
Join Date: Feb 2006
Posts: 2,519
Likes: 0
Received 0 Likes on 0 Posts
Default

Dracoro, I was fortunate that all numbers were of the format dd.mm.yy

...so there wasn't anything like 1/9/94
Old 03 March 2006, 07:58 PM
  #8  
HHxx
Scooby Regular
 
HHxx's Avatar
 
Join Date: Nov 2001
Posts: 2,576
Likes: 0
Received 0 Likes on 0 Posts
Wink

Glad it worked for you

Next time I better ask for a requirements documents to cover all bases
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Mattybr5@MB Developments
Full Cars Breaking For Spares
28
28 December 2015 11:07 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
12
18 November 2015 07:03 AM
ally d
ScoobyNet General
6
01 October 2015 09:22 PM
makkink
General Technical
10
01 October 2015 05:41 PM
alcazar
Computer & Technology Related
2
29 September 2015 07:18 PM



Quick Reply: convert text cells to date cells in Excel



All times are GMT +1. The time now is 04:19 AM.