Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How do I change dates input as 20080426 to date format in Excel?

We have data downloaded to Excel from our AS400 server.
However the date format is YYYYMMDD without slashes to separate.
Therefore, Excel does not recognize this as a date format and is unable to
perform calculations properly.
I'm looking for a formula or process that will make this recognized as a
date format in Excel so dates can be compared.
We are currently using Microsoft Office Excel 2003.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default How do I change dates input as 20080426 to date format in Excel?

hi
if the dates all have the same number of characters, you might be able to
use this in a helper column added next to the data.

=MID(A2,5,2)&"/"&RIGHT(A2,2)&"/"&LEFT(A2,4)

the above assume data is in the A column. adjust if needed.
you can copy the formula and paste special values to turn them into dates
delete the as400 dates if needed.

regards
FSt1

"Judy CS" wrote:

We have data downloaded to Excel from our AS400 server.
However the date format is YYYYMMDD without slashes to separate.
Therefore, Excel does not recognize this as a date format and is unable to
perform calculations properly.
I'm looking for a formula or process that will make this recognized as a
date format in Excel so dates can be compared.
We are currently using Microsoft Office Excel 2003.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 553
Default How do I change dates input as 20080426 to date format in Excel?

A1 = YYYYMMDD

Then

=date(left(A1,4),left(right(a1,4),2,right(a1,2))

--

Best Regards,
FARAZ A. QURESHI


"Judy CS" wrote:

We have data downloaded to Excel from our AS400 server.
However the date format is YYYYMMDD without slashes to separate.
Therefore, Excel does not recognize this as a date format and is unable to
perform calculations properly.
I'm looking for a formula or process that will make this recognized as a
date format in Excel so dates can be compared.
We are currently using Microsoft Office Excel 2003.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 553
Default How do I change dates input as 20080426 to date format in Exce

Sorry,

Try:

=date(left(A1,4),left(right(a1,4),2),right(a1,2))

--

Best Regards,
FARAZ A. QURESHI


"FARAZ QURESHI" wrote:

A1 = YYYYMMDD

Then

=date(left(A1,4),left(right(a1,4),2,right(a1,2))

--

Best Regards,
FARAZ A. QURESHI


"Judy CS" wrote:

We have data downloaded to Excel from our AS400 server.
However the date format is YYYYMMDD without slashes to separate.
Therefore, Excel does not recognize this as a date format and is unable to
perform calculations properly.
I'm looking for a formula or process that will make this recognized as a
date format in Excel so dates can be compared.
We are currently using Microsoft Office Excel 2003.



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default How do I change dates input as 20080426 to date format in Exce

Dear FSt1

Yes, the input is all the same length of characters and structure. Based on
that, I figured there HAD to be a way of putting in the forward slahes for
date recognition.

So your suggestion worked great. Thanks for the assist. I'll be keeping
this for future reference and can modify if as needed.

This was a great help.
Thanks
Judy CS

"FSt1" wrote:

hi
if the dates all have the same number of characters, you might be able to
use this in a helper column added next to the data.

=MID(A2,5,2)&"/"&RIGHT(A2,2)&"/"&LEFT(A2,4)

the above assume data is in the A column. adjust if needed.
you can copy the formula and paste special values to turn them into dates
delete the as400 dates if needed.

regards
FSt1

"Judy CS" wrote:

We have data downloaded to Excel from our AS400 server.
However the date format is YYYYMMDD without slashes to separate.
Therefore, Excel does not recognize this as a date format and is unable to
perform calculations properly.
I'm looking for a formula or process that will make this recognized as a
date format in Excel so dates can be compared.
We are currently using Microsoft Office Excel 2003.

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default How do I change dates input as 20080426 to date format in Exce

Dear Faraz

Thanks for the input. This worked too. I now have two solutions for future
reference. I'll be keeping this to refer to.

Thanks
Judy CS

"FARAZ QURESHI" wrote:

Sorry,

Try:

=date(left(A1,4),left(right(a1,4),2),right(a1,2))

--

Best Regards,
FARAZ A. QURESHI


"FARAZ QURESHI" wrote:

A1 = YYYYMMDD

Then

=date(left(A1,4),left(right(a1,4),2,right(a1,2))

--

Best Regards,
FARAZ A. QURESHI


"Judy CS" wrote:

We have data downloaded to Excel from our AS400 server.
However the date format is YYYYMMDD without slashes to separate.
Therefore, Excel does not recognize this as a date format and is unable to
perform calculations properly.
I'm looking for a formula or process that will make this recognized as a
date format in Excel so dates can be compared.
We are currently using Microsoft Office Excel 2003.

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,118
Default How do I change dates input as 20080426 to date format in Excel?

A bit late to this thread...but...

try this:

B1: =--TEXT(A1,"0000-00-00")

(format B1 as a date)

Is that something you can work with?

--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)


"Judy CS" <Judy wrote in message
...
We have data downloaded to Excel from our AS400 server.
However the date format is YYYYMMDD without slashes to separate.
Therefore, Excel does not recognize this as a date format and is unable to
perform calculations properly.
I'm looking for a formula or process that will make this recognized as a
date format in Excel so dates can be compared.
We are currently using Microsoft Office Excel 2003.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change satellite julian date format YYYYDDDHHMMSS to excel date ti putley Excel Discussion (Misc queries) 1 January 11th 08 06:12 PM
how to change format of several dates entered in an Excel column ilyaz New Users to Excel 2 August 1st 06 05:34 AM
access dates in excel, how to change format? dccoffin Excel Discussion (Misc queries) 1 February 21st 06 10:17 PM
Why does Excel change the dates I input? DonnaD Excel Worksheet Functions 2 January 10th 06 09:25 PM
How do I change the format of a cell based on what I input? Husker87 Excel Worksheet Functions 8 August 19th 05 10:45 PM


All times are GMT +1. The time now is 03:24 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"