ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Date inconsistent help please :) (https://www.excelbanter.com/excel-worksheet-functions/264731-date-inconsistent-help-please.html)

Daisy

Date inconsistent help please :)
 
Is it possible to clean up a date field where someone was keeping an excel
sheet but the date field is a mess

For example he has
1998
2/2005
1/1/2010

We need all dates to be mm/dd/yyyy?

Is there a formula or update I could run against this so he's not going thru
3000 rows of data?

Thank you!

--
Thank you in advance!!!!

Noodnutt @ Work

Date inconsistent help please :)
 
Hi Daisy

It would depend greatly on how the cells in question have been originally
formatted, eg "TEXT", "GENERAL", or otherwise, that said, if the entire
column has been formatted as "DATE", then maybe not so bad.

Try this:

Select the entire column.

Format|Cells|Numbers|Custom

Select from list, or create your own.

Now, on the off chance the column has been formatted other than "DATE", then
you may need to wait for another of the more knowledeable guru's as that
would be beyond my knowing.

HTH

Regards
Mark.





"daisy" wrote in message
...
Is it possible to clean up a date field where someone was keeping an excel
sheet but the date field is a mess

For example he has
1998
2/2005
1/1/2010

We need all dates to be mm/dd/yyyy?

Is there a formula or update I could run against this so he's not going
thru
3000 rows of data?

Thank you!

--
Thank you in advance!!!!





Fred Smith[_4_]

Date inconsistent help please :)
 
Something like this:
=--if(len(a1)<=4,"1/1/"&a1,if(len(a1)<8,"1/"&a1,a1)

Regards,
Fred

"daisy" wrote in message
...
Is it possible to clean up a date field where someone was keeping an excel
sheet but the date field is a mess

For example he has
1998
2/2005
1/1/2010

We need all dates to be mm/dd/yyyy?

Is there a formula or update I could run against this so he's not going
thru
3000 rows of data?

Thank you!

--
Thank you in advance!!!!



Daisy

Date inconsistent help please :)
 
Thank you both - I'll find out and give these a try :)
--
Thank you in advance!!!!


"Fred Smith" wrote:

Something like this:
=--if(len(a1)<=4,"1/1/"&a1,if(len(a1)<8,"1/"&a1,a1)

Regards,
Fred

"daisy" wrote in message
...
Is it possible to clean up a date field where someone was keeping an excel
sheet but the date field is a mess

For example he has
1998
2/2005
1/1/2010

We need all dates to be mm/dd/yyyy?

Is there a formula or update I could run against this so he's not going
thru
3000 rows of data?

Thank you!

--
Thank you in advance!!!!


.



All times are GMT +1. The time now is 10:26 PM.

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