Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Retrieving data based on most recent date

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.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Retrieving data based on most recent date

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

"cdoch" wrote:

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.

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
Retrieving data based on more than 1 criteria TP Excel Worksheet Functions 5 October 30th 07 10:35 AM
Sumproduct based which also weights data based on date ExcelMonkey Excel Worksheet Functions 6 February 4th 07 08:51 AM
How to find the most recent date in a column based on other column Veretax Excel Worksheet Functions 7 October 18th 06 05:01 PM
Retrieving value from list based on dynamic condition rz6657 Excel Discussion (Misc queries) 3 August 19th 06 01:10 PM
Compare multiple dates, can enumerate cell based on most recent date Brian Excel Worksheet Functions 7 May 9th 06 11:02 PM


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