Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Latest date for each of the year

I have four columns - Product, Date, Year(based on date), Price. For each of
the product there will be price revisions occuring. I need to pick up the
latest price for each of the product in each of the year.

Say for example - Product A, the price details of that are 31st Jan'04 -
Rs.500, 5th Aug'04 - Rs.550, 20th Aug'05 - Rs.450, 15th Nov'05 - Rs.440, 30th
July'06 - 520

I need the answer to be Product A - Year 2004 Rs.550, Year 2005 Rs.440, Year
2006 Rs.520 (i.e I need the price for each of the year based on the lates
date of each of the year)
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default Latest date for each of the year

Try something like this

=VLOOKUP(MAX(--(A$2:A$6="Product A"),(B$2:B$6)),B$2:D$6,3)

A2:A6 is the range of data where you products are located
B$2:B$6 is the range of dates
B$2:D$6 is a table with the dates in the first column and the price in the
3rd column
the last 3 is to indicates the price is in the 3rd column ove rthe table
B$2:D$6

the MAX function will get the latest date that matches Product A. vlookup
looks up the latest date in the tqable and then returns the price associated
wiith the latest date from the 3rd column in the table..

"Sujatha" wrote:

I have four columns - Product, Date, Year(based on date), Price. For each of
the product there will be price revisions occuring. I need to pick up the
latest price for each of the product in each of the year.

Say for example - Product A, the price details of that are 31st Jan'04 -
Rs.500, 5th Aug'04 - Rs.550, 20th Aug'05 - Rs.450, 15th Nov'05 - Rs.440, 30th
July'06 - 520

I need the answer to be Product A - Year 2004 Rs.550, Year 2005 Rs.440, Year
2006 Rs.520 (i.e I need the price for each of the year based on the lates
date of each of the year)

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,646
Default Latest date for each of the year

=INDEX(D2:D5,MATCH(MAX(--(C2:C5=2004)*B2:B5),B2:B5,0))
Its an array formula, confirm it with Ctrl+Shift+Enter!
Adjust ranges and year!

Regards,
Stefi


€˛Sujatha€¯ ezt Ć*rta:

I have four columns - Product, Date, Year(based on date), Price. For each of
the product there will be price revisions occuring. I need to pick up the
latest price for each of the product in each of the year.

Say for example - Product A, the price details of that are 31st Jan'04 -
Rs.500, 5th Aug'04 - Rs.550, 20th Aug'05 - Rs.450, 15th Nov'05 - Rs.440, 30th
July'06 - 520

I need the answer to be Product A - Year 2004 Rs.550, Year 2005 Rs.440, Year
2006 Rs.520 (i.e I need the price for each of the year based on the lates
date of each of the year)

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,646
Default Latest date for each of the year

Sorry, I forgot to filter Product A:
=INDEX(D2:D5,MATCH(MAX(--(A2:A5="Product A")*--(C2:C5=2004)*B2:B5),B2:B5,0))
Its an array formula, confirm it with Ctrl+Shift+Enter!
Adjust product, ranges and year!

Stefi

€˛Stefi€¯ ezt Ć*rta:

=INDEX(D2:D5,MATCH(MAX(--(C2:C5=2004)*B2:B5),B2:B5,0))
Its an array formula, confirm it with Ctrl+Shift+Enter!
Adjust ranges and year!

Regards,
Stefi


€˛Sujatha€¯ ezt Ć*rta:

I have four columns - Product, Date, Year(based on date), Price. For each of
the product there will be price revisions occuring. I need to pick up the
latest price for each of the product in each of the year.

Say for example - Product A, the price details of that are 31st Jan'04 -
Rs.500, 5th Aug'04 - Rs.550, 20th Aug'05 - Rs.450, 15th Nov'05 - Rs.440, 30th
July'06 - 520

I need the answer to be Product A - Year 2004 Rs.550, Year 2005 Rs.440, Year
2006 Rs.520 (i.e I need the price for each of the year based on the lates
date of each of the year)

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
Help with pulling data based on latest date for a year Satish Excel Discussion (Misc queries) 2 September 12th 08 07:44 AM
Filter latest date from multiple date entries [email protected] Excel Worksheet Functions 1 July 4th 08 09:40 PM
X axis date - display beyond latest date. Dave F. Charts and Charting in Excel 1 January 3rd 07 03:17 AM
Need help to find a date (latest date) from a column CraigNowell Excel Worksheet Functions 4 March 20th 06 10:47 PM
Need help to find a date (latest date) from a column Max Excel Worksheet Functions 0 March 20th 06 02:49 PM


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