ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Harmonize date format (https://www.excelbanter.com/excel-programming/341426-harmonize-date-format.html)

[email protected]

Harmonize date format
 
Hi,

I export from an application csv reports for treatment in Excel.
However, the dates appearing in the CSV have can have several different
format, e.g.:

mm/dd/yyyy hh:mm
mm.dd.yyyy hh:mm

Is there a way to programmatically harmonize the date formats in a
selected range?

Thanks.

Raph


Dave Peterson

Harmonize date format
 
Maybe you could record a macro when you try to get all the variations into one
category.

Select the range to fix
and edit|replace
what: . (dot)
with: / (slash)
replace all

Maybe a few mass changes would make all your entries consistent.

You may find that this actually changed the cells to dates and times.

(And if the original entries with slashes are text, just
edit|replace
what: / (slash)
with: / (slash)
replace all.

wrote:

Hi,

I export from an application csv reports for treatment in Excel.
However, the dates appearing in the CSV have can have several different
format, e.g.:

mm/dd/yyyy hh:mm
mm.dd.yyyy hh:mm

Is there a way to programmatically harmonize the date formats in a
selected range?

Thanks.

Raph


--

Dave Peterson

Dave Peterson

Harmonize date format
 
Ooooh. And all that assumed that your windows short date was mm/dd/yyyy.

wrote:

Hi,

I export from an application csv reports for treatment in Excel.
However, the dates appearing in the CSV have can have several different
format, e.g.:

mm/dd/yyyy hh:mm
mm.dd.yyyy hh:mm

Is there a way to programmatically harmonize the date formats in a
selected range?

Thanks.

Raph


--

Dave Peterson


All times are GMT +1. The time now is 05:13 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com