Date of associated max value

Tikey

Board Regular
Joined
Jan 30, 2014
Messages
148
Office Version
  1. 2021
Platform
  1. Windows
I have a range of dates and associated data. I would like to find the date of the maximum value for each month, the following simple table hopefully shows this:

07/01/1992​
1​
08/01/1992​
5​
09/01/1992​
1​
10/01/1992​
1​
07/02/1992​
1​
08/02/1992​
1​
09/02/1992​
2​
10/02/1992​
1​
20/03/1992​
1​
21/03/1992​
1​
22/03/1992​
4​
23/03/1992​
3​
01/04/1992​
1​
02/04/1992​
1​
03/04/1992​
4​
04/04/1992​
1​


So, assuming I wanted the date of the max value for March, the answer I require is 22/03/1992.

Can anyone offer a solution. Thank you.
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
How about
+Fluff 1.xlsm
IJKLM
1
201/07/1992101/03/199222/03/1992
301/08/19925
401/09/19921
501/10/19921
602/07/19921
702/08/19921
802/09/19922
902/10/19921
1020/03/19921
1121/03/19921
1222/03/19924
1323/03/19923
1404/01/19921
1504/02/19921
1604/03/19924
1704/04/19921
18
Primary
Cell Formulas
RangeFormula
M2M2=INDEX(SORT(FILTER(I2:J17,TEXT(I2:I17,"mmmyyyy")=TEXT(L2,"mmmyyyy")),2,-1),1,1)
 
Upvote 0
That certainly works, thank you. Is there a way of doing it without having to add the date in cell L2 ?
 
Upvote 0
Yup, like
Excel Formula:
=INDEX(SORT(FILTER(I2:J17,TEXT(I2:I17,"mmmyyyy")="Mar1992"),2,-1),1,1)
 
Upvote 0
Taking this a stage further. As I am only interested in the month and the formula will be used over a number of different years and I don't wish to have to edit the formula to suit the year, is there a way of doing that ?
 
Upvote 0
Why didn't you say that last time?
Are there any other changes you want to make?
 
Upvote 0
I'm sorry, no more changes. The question did't come to me until I saw your answer.
 
Upvote 0
Ok, how about
Excel Formula:
=INDEX(SORT(FILTER(I2:J17,MONTH(I2:I17)=3),2,-1),1,1)
 
Upvote 0
That works great, thank you very much. Apologies that I caused you more work.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,733
Members
448,987
Latest member
marion_davis

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top