alternately, you could sort your data by invoice#,date (descending)
then do a vlookup.
It would pick the first date, which would be the most recent.

I like Dave's suggestion...
It's interesting because it takes advantage of the fact that
using (Othersheet!A2:A100=A2) is a logical test that
returns 1=true, 0=false
then, since excel stores dates as numbers 
(today, 9/15/2010 is 40436 days since 1/1/1900)

"false" * 40436 = 0 * 40436 = 0
 "true"  * 40436 = 1 * 40436 = 40436, when formatted as a date = "9/15/2010"

I like it...

Paul

>
>From: Dave Bonallack <davebonall...@hotmail.com>
>To: "excel-macros@googlegroups.com" <excel-macros@googlegroups.com>
>Sent: Wed, September 15, 2010 12:39:40 AM
>Subject: RE: $$Excel-Macros$$ Need most recent date
>
>Hi,
>I am assuming that your first unique invoice numberis in A2.
>Format B2 of the same sheet as Date, then enter the following:
>=Sumproduct(Max((OtherSheet!A2:A100=A2)*(OtherSheet!B2:B100)))
>Then copy down to the end of your unique data.
>If you can't get this to work, post again with a sample workbook.
>Regards - Dave.
> 
>________________________________
Date: Tue, 14 Sep 2010 17:33:44 -0700
>From: n8dine4ma...@yahoo.com
>Subject: $$Excel-Macros$$ Need most recent date
>To: excel-macros@googlegroups.com
>
>
>I have a list of dates in one sheet.
>Col A = Invoice Number
>Col B = Payment Date
>
>There will be multiple rows for the same invoice number as payments are made 
>against it until it is paid in full.
>Some of these rows will contain dates and some won't.
>
>The next sheet has the unique list of invoice numbers (meaning they don't 
>repeat).  I need a formula that will look at the first sheet and give me the 
>most recent date if there is one.  
>
>
>This is in Excel 2003.  Thanks so much.
>
>
>-- 
>----------------------------------------------------------------------------------
>
>Some important links for excel users:
>1. Follow us on TWITTER for tips tricks and links : 
>http://twitter.com/exceldailytip
>2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
>3. Excel tutorials at http://www.excel-macros.blogspot.com/
>4. Learn VBA Macros at http://www.quickvba.blogspot.com/
>5. Excel Tips and Tricks at http://exceldailytip.blogspot.com/
>
>To post to this group, send email to excel-macros@googlegroups.com
> 
><><><><><><><><><><><><><><><><><><><><><><>
>HELP US GROW !!
> 
>We reach over 7000 subscribers worldwide and receive many nice notes about the 
>learning and support from the group.Let friends and co-workers know they can 
>subscribe to group at http://groups.google.com/group/excel-macros/subscribe
>-- 
>----------------------------------------------------------------------------------
>
>Some important links for excel users:
>1. Follow us on TWITTER for tips tricks and links : 
>http://twitter.com/exceldailytip
>2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
>3. Excel tutorials at http://www.excel-macros.blogspot.com
>4. Learn VBA Macros at http://www.quickvba.blogspot.com
>5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
>
>To post to this group, send email to excel-macros@googlegroups.com
> 
><><><><><><><><><><><><><><><><><><><><><><>
>HELP US GROW !!
> 
>We reach over 7000 subscribers worldwide and receive many nice notes about the 
>learning and support from the group.Let friends and co-workers know they can 
>subscribe to group at http://groups.google.com/group/excel-macros/subscribe
>

-- 
----------------------------------------------------------------------------------
Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links : 
http://twitter.com/exceldailytip
2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 
To post to this group, send email to excel-macros@googlegroups.com

<><><><><><><><><><><><><><><><><><><><><><>
HELP US GROW !!

We reach over 7000 subscribers worldwide and receive many nice notes about the 
learning and support from the group.Let friends and co-workers know they can 
subscribe to group at http://groups.google.com/group/excel-macros/subscribe

Reply via email to