Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Find latest date from list and corresponding info

Hi,

I have a list like the below and am trying to:

A) Find most recent date of each color group (ColC)
B) Then, from that date, find corresponding number code (ColA)

ColA ColB ColC
1001 9/1/10 Red
1002 4/1/05 Red
1003 8/1/09 Blue
1004 9/1/08 Blue
1005 1/1/10 Blue

Thanks for your help!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Find latest date from list and corresponding info

Try these...

Data in the range A2:C6

E2 = Red

Formula in F2 array entered** for the max date:

=MAX(IF(C2:C6=E2,B2:B6))

Formula in G2 array entered** for the code:

=INDEX(A2:A6,MATCH(1,IF(C2:C6=E2,IF(B2:B6=F2,1)),0 ))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

--
Biff
Microsoft Excel MVP


"MCRH" wrote in message
...
Hi,

I have a list like the below and am trying to:

A) Find most recent date of each color group (ColC)
B) Then, from that date, find corresponding number code (ColA)

ColA ColB ColC
1001 9/1/10 Red
1002 4/1/05 Red
1003 8/1/09 Blue
1004 9/1/08 Blue
1005 1/1/10 Blue

Thanks for your help!



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Find latest date from list and corresponding info

Assuming your unit color in D2 and down

In E2:
=INDEX($A$2:$A$6,MATCH(1,($B$2:$B$6=MAX(($C$2:$C$6 =D2)*$B$2:$B$6))*($C$2:$C$6=D2),))

ctrl+shift+enter, not just enter
copy down


"MCRH" wrote:

Hi,

I have a list like the below and am trying to:

A) Find most recent date of each color group (ColC)
B) Then, from that date, find corresponding number code (ColA)

ColA ColB ColC
1001 9/1/10 Red
1002 4/1/05 Red
1003 8/1/09 Blue
1004 9/1/08 Blue
1005 1/1/10 Blue

Thanks for your help!

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
How to find the latest date? lalann Excel Discussion (Misc queries) 2 July 9th 09 11:18 AM
How to find a row with latest date and its values MSSailor Excel Discussion (Misc queries) 1 March 12th 09 02:16 AM
find latest date in a row, when dates have apostrophes in it brakbek Excel Discussion (Misc queries) 3 January 19th 07 09:14 PM
Need help to find a date (latest date) from a column Max Excel Worksheet Functions 0 March 20th 06 02:49 PM
code not unique find latest date Barbara Wiseman Excel Discussion (Misc queries) 3 December 11th 05 08:50 AM


All times are GMT +1. The time now is 05:02 AM.

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"