Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default convert 80521 to 05/21/08

Is there a formula that would convert 80521 to a date, 05/21/08?

Or convert a text of 080521 to a date format 05/21/08?

thx, k
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 751
Default convert 80521 to 05/21/08

=DATE(--LEFT(A1,1+(LEN(A1)=6),--MID(A1,3,2),--RIGHT(A1,2))

HTH
Kostis Vezerides

On Jul 3, 5:54 pm, KKay wrote:
Is there a formula that would convert 80521 to a date, 05/21/08?

Or convert a text of 080521 to a date format 05/21/08?

thx, k


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default convert 80521 to 05/21/08

If all your dates will be on or after the year 2000, try this formula...

=--TEXT(A1,"2000-00-00")

Rick


"KKay" wrote in message
...
Is there a formula that would convert 80521 to a date, 05/21/08?

Or convert a text of 080521 to a date format 05/21/08?

thx, k


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default convert 80521 to 05/21/08


You should be consistent, as well as keep the value in this century:

=DATE(2000+(--LEFT(A1,1+(LEN(A1)=6))),--MID(A1,2+(LEN(A1)=6),2),--RIGHT(A1,2))

HTH,
Bernie
MS Excel MVP


"vezerid" wrote in message
...
=DATE(--LEFT(A1,1+(LEN(A1)=6),--MID(A1,3,2),--RIGHT(A1,2))

HTH
Kostis Vezerides

On Jul 3, 5:54 pm, KKay wrote:
Is there a formula that would convert 80521 to a date, 05/21/08?

Or convert a text of 080521 to a date format 05/21/08?

thx, k




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 751
Default convert 80521 to 05/21/08

Right on Bernie, thanks for the pointer.

Regards,
Kostis

On Jul 3, 6:13 pm, "Bernie Deitrick" <deitbe @ consumer dot org
wrote:
You should be consistent, as well as keep the value in this century:

=DATE(2000+(--LEFT(A1,1+(LEN(A1)=6))),--MID(A1,2+(LEN(A1)=6),2),--RIGHT(A1,2))

HTH,
Bernie
MS Excel MVP

"vezerid" wrote in message

...

=DATE(--LEFT(A1,1+(LEN(A1)=6),--MID(A1,3,2),--RIGHT(A1,2))


HTH
Kostis Vezerides


On Jul 3, 5:54 pm, KKay wrote:
Is there a formula that would convert 80521 to a date, 05/21/08?


Or convert a text of 080521 to a date format 05/21/08?


thx, k




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default convert 80521 to 05/21/08

Thanks to all! worked like a charm...and saved me time.

"Rick Rothstein (MVP - VB)" wrote:

If all your dates will be on or after the year 2000, try this formula...

=--TEXT(A1,"2000-00-00")

Rick


"KKay" wrote in message
...
Is there a formula that would convert 80521 to a date, 05/21/08?

Or convert a text of 080521 to a date format 05/21/08?

thx, k



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
can the "convert" function in excel convert to UK gallons? JR Excel Discussion (Misc queries) 2 April 24th 08 04:55 PM
how will i convert 05.01.2007 convert 05.Jan.2007 format? lady_like New Users to Excel 17 February 9th 07 12:43 PM
convert value in word. For Exampe Rs.115.00 convert into word as . Shakti Excel Discussion (Misc queries) 1 May 10th 05 12:00 PM
convert decimal number to time : convert 1,59 (minutes, dec) to m agenda9533 Excel Discussion (Misc queries) 8 January 20th 05 10:24 PM
Convert Time...!convert tenths of a second Pape Excel Discussion (Misc queries) 2 December 16th 04 10:17 AM


All times are GMT +1. The time now is 10:16 AM.

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

About Us

"It's about Microsoft Excel"