Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default Date from text - clarified

Dates are formated as text (i.e. "031597" for March 15, 1997 or "040806" for
January 8, 2006) in a row - let's say in columns B and C. I need the oldest
date from the row.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Date from text - clarified

I am sorry I did not make myself clear. To find the oldest date, we need to
know how to interpret the year.

If the formula sees:

111140

It can either interpret this as November 11 1940 or November 11 2040.


If the formula sees:

122550

It can either interpret this as December 25 1950 or December 25 2050.


If you (the human) look at a piece of data, you determine the correct
century by applying some "rule".

The formula must be designed with the rule in mind!
--
Gary''s Student - gsnu200783


"joeb" wrote:

Dates are formated as text (i.e. "031597" for March 15, 1997 or "040806" for
January 8, 2006) in a row - let's say in columns B and C. I need the oldest
date from the row.

  #3   Report Post  
Posted to microsoft.public.excel.misc
JMJ JMJ is offline
external usenet poster
 
Posts: 11
Default Date from text - clarified



"joeb" wrote:

Dates are formated as text (i.e. "031597" for March 15, 1997 or "040806" for
January 8, 2006) in a row - let's say in columns B and C. I need the oldest
date from the row.

Why don't you format the column as date and then get the MIN of the column?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Date from text - clarified

Try this:

=MIN(INDEX(--TEXT(B1:C1,"00\/00\/00"),,1))

Format as DATE

Years 00 to 29 will be evaluated as century 20.

Years 30 to 99 will be evaluated as century 19.


--
Biff
Microsoft Excel MVP


"joeb" wrote in message
...
Dates are formated as text (i.e. "031597" for March 15, 1997 or "040806"
for
January 8, 2006) in a row - let's say in columns B and C. I need the
oldest
date from the row.



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
date in text format as a real date Mortir Excel Worksheet Functions 2 November 26th 07 06:03 PM
how do i convert text to date (mm/yy text to mm/dd/yyyy date)? lindsey Excel Discussion (Misc queries) 1 July 27th 07 10:05 PM
Concatenating a Text and a Date without losing orginal Date Format Hi_no_Tori Excel Discussion (Misc queries) 5 September 17th 06 06:35 PM
If/Or Clarified Excel neophyte Excel Worksheet Functions 2 August 17th 06 04:46 PM
Help: How do I convert a text date into a real date format japorms Excel Worksheet Functions 4 August 2nd 06 06:36 PM


All times are GMT +1. The time now is 03:54 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"