ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Formatting Text to Numbers for Dates (https://www.excelbanter.com/excel-discussion-misc-queries/264561-formatting-text-numbers-dates.html)

Tommy

Formatting Text to Numbers for Dates
 
I'm currently working with a column of dates. Some of the dates are text and
some are numbers. The dates are in the following format 21/06/210
(mm/dd/yyyy). I used =isnumber() to verify cells. Half of the coulmn
resulted in false values.

I'm unable to format the dates to other formats, since some are text. Is
there anyway to change the column so that all dates are numbers vs. text,
thus allowing me to format them to other date formats???

Tommy

Formatting Text to Numbers for Dates
 
Huber-

Thank you. One additional question-what if the date is 21/6/2010? How can
I change the formula you provided to use "/" "/" characters as dividers?

Thanks,

Tommy

"Huber57" wrote:

Tommy,

I assume the date you meant was 21/06/2010 and that the format is dd/mm/yyyy.

If so, use this formula to turn it into a date:

=DATE(RIGHT(A1,4),MID(A1,4,2),LEFT(A1,2))

This should return a number. Then format the cell as a date.

HTH.

"Tommy" wrote:

I'm currently working with a column of dates. Some of the dates are text and
some are numbers. The dates are in the following format 21/06/210
(mm/dd/yyyy). I used =isnumber() to verify cells. Half of the coulmn
resulted in false values.

I'm unable to format the dates to other formats, since some are text. Is
there anyway to change the column so that all dates are numbers vs. text,
thus allowing me to format them to other date formats???


Tommy

Formatting Text to Numbers for Dates
 
Huber-

any suggestions if the date is 21/6/2010 or 6/12/2013 (day/month/year)?

"Huber57" wrote:

Tommy,

I assume the date you meant was 21/06/2010 and that the format is dd/mm/yyyy.

If so, use this formula to turn it into a date:

=DATE(RIGHT(A1,4),MID(A1,4,2),LEFT(A1,2))

This should return a number. Then format the cell as a date.

HTH.

"Tommy" wrote:

I'm currently working with a column of dates. Some of the dates are text and
some are numbers. The dates are in the following format 21/06/210
(mm/dd/yyyy). I used =isnumber() to verify cells. Half of the coulmn
resulted in false values.

I'm unable to format the dates to other formats, since some are text. Is
there anyway to change the column so that all dates are numbers vs. text,
thus allowing me to format them to other date formats???



All times are GMT +1. The time now is 08:14 PM.

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