#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 96
Default Find Oldest Date

I need to fiind the oldest date of an entry depending on the status of the
case.

A B C
Canada Open 6/25/07
Mexico Open 6/16/07
Brazil Open 6/1/07
Canada Open 6/19/07
Canada Closed 6/2/07

I need to be able find the oldest open date for Canada which would be 6/19/07
according to this example.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Find Oldest Date

=MIN(IF((A1:A5="Canada")*(B1:B5="Open"),C1:C5))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.
Excel will automatically enclose the formula in braces (curly brackets), do
not try to do this manually.
When editing the formula, it must again be array-entered.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Qaspec" wrote in message
...
I need to fiind the oldest date of an entry depending on the status of the
case.

A B C
Canada Open 6/25/07
Mexico Open 6/16/07
Brazil Open 6/1/07
Canada Open 6/19/07
Canada Closed 6/2/07

I need to be able find the oldest open date for Canada which would be
6/19/07
according to this example.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Find Oldest Date

Try this array formula** :

=MIN(IF((A1:A5="Canada")*(B1:B5="Open"),C1:C5))

Format as DATE

Better to use cells to hold the criteria:

E1 = Canada
F1 = Open

=MIN(IF((A1:A5=E1)*(B1:B5=F1),C1:C5))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"Qaspec" wrote in message
...
I need to fiind the oldest date of an entry depending on the status of the
case.

A B C
Canada Open 6/25/07
Mexico Open 6/16/07
Brazil Open 6/1/07
Canada Open 6/19/07
Canada Closed 6/2/07

I need to be able find the oldest open date for Canada which would be
6/19/07
according to this example.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 96
Default Find Oldest Date

The formula works except for the fact that unfortunately some of the records
have null values in the date field. How do I ignore those and find the oldest
entered date?
I'm assuming I keep returning 1/0/1900 because of the blank records.



"Bob Phillips" wrote:

=MIN(IF((A1:A5="Canada")*(B1:B5="Open"),C1:C5))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.
Excel will automatically enclose the formula in braces (curly brackets), do
not try to do this manually.
When editing the formula, it must again be array-entered.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Qaspec" wrote in message
...
I need to fiind the oldest date of an entry depending on the status of the
case.

A B C
Canada Open 6/25/07
Mexico Open 6/16/07
Brazil Open 6/1/07
Canada Open 6/19/07
Canada Closed 6/2/07

I need to be able find the oldest open date for Canada which would be
6/19/07
according to this example.




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Find Oldest Date

try:

=MIN(IF((A1:A8="Canada")*(B1:B8="Open")*ISNUMBER(C 1:C8),C1:C8))

"Qaspec" wrote:

The formula works except for the fact that unfortunately some of the records
have null values in the date field. How do I ignore those and find the oldest
entered date?
I'm assuming I keep returning 1/0/1900 because of the blank records.



"Bob Phillips" wrote:

=MIN(IF((A1:A5="Canada")*(B1:B5="Open"),C1:C5))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.
Excel will automatically enclose the formula in braces (curly brackets), do
not try to do this manually.
When editing the formula, it must again be array-entered.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Qaspec" wrote in message
...
I need to fiind the oldest date of an entry depending on the status of the
case.

A B C
Canada Open 6/25/07
Mexico Open 6/16/07
Brazil Open 6/1/07
Canada Open 6/19/07
Canada Closed 6/2/07

I need to be able find the oldest open date for Canada which would be
6/19/07
according to this example.






  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 96
Default Find Oldest Date

I tried each of the suggestions and I'm still returning a 0 value. Could
there be something wrong with the formatting of the date in the referenced
cell?

"T. Valko" wrote:

Try this array formula** :

=MIN(IF((A1:A5="Canada")*(B1:B5="Open"),C1:C5))

Format as DATE

Better to use cells to hold the criteria:

E1 = Canada
F1 = Open

=MIN(IF((A1:A5=E1)*(B1:B5=F1),C1:C5))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"Qaspec" wrote in message
...
I need to fiind the oldest date of an entry depending on the status of the
case.

A B C
Canada Open 6/25/07
Mexico Open 6/16/07
Brazil Open 6/1/07
Canada Open 6/19/07
Canada Closed 6/2/07

I need to be able find the oldest open date for Canada which would be
6/19/07
according to this example.




  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Find Oldest Date

Check the dates are true DATES and not TEXT.

"Qaspec" wrote:

I tried each of the suggestions and I'm still returning a 0 value. Could
there be something wrong with the formatting of the date in the referenced
cell?

"T. Valko" wrote:

Try this array formula** :

=MIN(IF((A1:A5="Canada")*(B1:B5="Open"),C1:C5))

Format as DATE

Better to use cells to hold the criteria:

E1 = Canada
F1 = Open

=MIN(IF((A1:A5=E1)*(B1:B5=F1),C1:C5))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"Qaspec" wrote in message
...
I need to fiind the oldest date of an entry depending on the status of the
case.

A B C
Canada Open 6/25/07
Mexico Open 6/16/07
Brazil Open 6/1/07
Canada Open 6/19/07
Canada Closed 6/2/07

I need to be able find the oldest open date for Canada which would be
6/19/07
according to this example.




  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Find Oldest Date

=MIN(IF((A1:A5="Canada")*(B1:B5="Open")*(C1:C5<"" ),C1:C5))


--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Qaspec" wrote in message
...
I tried each of the suggestions and I'm still returning a 0 value. Could
there be something wrong with the formatting of the date in the referenced
cell?

"T. Valko" wrote:

Try this array formula** :

=MIN(IF((A1:A5="Canada")*(B1:B5="Open"),C1:C5))

Format as DATE

Better to use cells to hold the criteria:

E1 = Canada
F1 = Open

=MIN(IF((A1:A5=E1)*(B1:B5=F1),C1:C5))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"Qaspec" wrote in message
...
I need to fiind the oldest date of an entry depending on the status of
the
case.

A B C
Canada Open 6/25/07
Mexico Open 6/16/07
Brazil Open 6/1/07
Canada Open 6/19/07
Canada Closed 6/2/07

I need to be able find the oldest open date for Canada which would be
6/19/07
according to this example.






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
oldest date not completed Dreamstar_1961 Excel Worksheet Functions 7 April 2nd 07 01:46 PM
Special sort for oldest and newest date DTTODGG Excel Discussion (Misc queries) 1 October 11th 06 05:17 PM
Lookup Oldest date from previously selected Group Data Jim May Excel Worksheet Functions 8 May 14th 05 07:29 PM
Need to find oldest date in ever changing list. Alan Anderson via OfficeKB.com Excel Worksheet Functions 5 February 20th 05 04:09 AM
Detecting Oldest Date On Spreadsheet Keiron James Keeble Excel Discussion (Misc queries) 3 January 19th 05 01:09 AM


All times are GMT +1. The time now is 09:31 PM.

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"