No delimitations

brncao

Board Regular
Joined
Apr 28, 2015
Messages
149
I'm trying to import a csv file into a database. However, Date does not have any delimitations. It looks like 06042015 (that's 06/04/2015). Any workaround?
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
If you're using Data.From_Text...
• Check: Delimited.......Click: Next
• Check: Comma..........Click: Next
• Select your "date" column...Check: Date MDY
...Click: Finish

Does that help?
 
Upvote 0
If it will always be that length, you could use the Len function to get the first two and append "/". Then get the second pair with the Mid function and append "/", and lastly the Right function to get the last part. Then concatenate the 3 parts. If you need to worry about the data type, use CDate to convert the value to a date.
 
Upvote 0

Forum statistics

Threads
1,221,860
Messages
6,162,479
Members
451,769
Latest member
adyapratama

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
Back
Top