Date Extract Issue - Formatting

Russ At Index

Well-known Member
Joined
Sep 23, 2002
Messages
704
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. MacOS
Hi Excel Guru's

I have a data extraction ( sounds painful , but isn't )
from a piece of electrical testing software.

Have downloaded from csv file into workable spreadsheet.

My problem is with the "test date " & "re test date" columns.

Data comes into Excel as 20050905 , i would like to convert
to 05/09/2005.

I have tried text to columns , but for some strange reason
it extends the result over three colomns !!!!!

Any help on this date conversion would be grately appreciated.

Keep up the good work

Russ.
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

AgentSmith

Well-known Member
Joined
Mar 8, 2004
Messages
575
You can convert it using a formula, if that's any good:
Code:
=DATE(VALUE(LEFT(cell,4)),VALUE(MID(cell,5,2)),VALUE(RIGHT(cell,2)))
That cuts it down to 2 columns, I guess.
 
Upvote 0

BrianB

Well-known Member
Joined
Feb 17, 2003
Messages
8,127
With AgentSmith's formula I think this is a good way to go.

I nowadays import everything as text and convert afterwards because Excel can sometimes convert imported dates into different formats in the same column.
 
Upvote 0

Russ At Index

Well-known Member
Joined
Sep 23, 2002
Messages
704
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. MacOS
AgentSmith , BrianB,

Thank you very much , works like a dream !!!

Keep On Excelling !!!! :biggrin:

Russ
 
Upvote 0

Forum statistics

Threads
1,195,594
Messages
6,010,625
Members
441,558
Latest member
lambierules

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top