Retrieving data based on most recent date

C

cdoch

I have two sheets. On one sheet I have products and inventory taken on
different days:

A1 B1 C1
05/08/07 Product1 1300
05/08/07 Product2 560
30/08/07 Product1 685
30/08/07 Product3 1513
05/09/07 Product3 669
05/09/07 Product1 1754
05/09/07 Product2 555

On sheet two I want to retrieve the most recent inventory for each product
as well as the corresponding date.

A1 B1 C1
Product1 1754 05/09/07
Product2 555 05/09/07
Product3 669 05/09/07

Does anyone know what formulas I would use to do this? I'm using Excel 2000.
 
T

Teethless mama

Sheet 2:
C2: =SUMPRODUCT(--(MAX((Sheet1!$B$2:$B$8=A2),Sheet1!$A$2:$A$8)))
copy down

B2:
=SUMPRODUCT(--(Sheet1!$B$2:$B$8=A2),--(Sheet1!$A$2:$A$8=C2),Sheet1!$C$2:$C$8)
copy down
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top