Left() When Extracting Dates in Excel/CSV

H7H12

New Member
Joined
Aug 6, 2010
Messages
28
Hi there,

Hope you can help me out with the following, it should hopefully be simple and I'm just missing something!

OS: Windows XP
Excel version: 2007

I have an excel worksheet with the following column:

|Date|
|01/01/2012 00:01|

However, for my work, I only need to extract the date, not the time. So, I've been simply using =left(cell,characters) to extract what I need to a new column (called, say 'Edited Date').

This has worked perfectly, up until the file type I download was switched from .xlsx to .csv. Now, when I try and extract just the date using the left() method, it outputs a number that isn't recognisable as a date, but is apparently already formatted as a date. So, to carry on the example...

|Date|
|01/01/2012 00:01|

becomes

|Edited Date|
40909.0006

When I try and use left().

I've already tried saving the csv as an excel workbook, but it still happens even when the csv is resaved as a workbook. Just wondering where I'm going wrong?
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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