LRATOZ
Board Regular
- Joined
- Aug 17, 2014
- Messages
- 59
- Office Version
- 2016
- Platform
- Windows
I am looking for an Excel formula that returns the date when the highest value happened for a particular month.
I have weather data going back over six years. All the data is in the same table on the "Data" tab. Column B (Starting from B3) has the date in the following format: 31-01-2020
(The dates start at 15-11-2015 and goes until today 07-09-2023)
Maybe this could be useful: I also got Column C which shows the year and column D which shows the month (Both derived from the date).
I created these columns to experiment but it would be nice if I could delete them once I got a working formula.
Column K (Starting from K3) has all max temperature values for each date.
To put it simply: I want to find out what the date was when the maximum temperature occurred during the month of January over all these years.
If there are months of January with the same max value then select the oldest date. Empty cells in column K should be ignored.
Obviously, I want to expand it for every month of the year but once I get the concept to work it out for January then I can do the same for the other months as well.
This has me puzzled for many months. I am using a formula as follows:
However, this works accurately for about 50% of the time. The problem is that if a max value is the same for different months then it might pick a date that correlates to a different month.
I've done some reading and it seems that the MAXIFS would be a more suitable formula.
Can somebody please put me on the right way?
Thank you very much in advance!
Luke
I have weather data going back over six years. All the data is in the same table on the "Data" tab. Column B (Starting from B3) has the date in the following format: 31-01-2020
(The dates start at 15-11-2015 and goes until today 07-09-2023)
Maybe this could be useful: I also got Column C which shows the year and column D which shows the month (Both derived from the date).
I created these columns to experiment but it would be nice if I could delete them once I got a working formula.
Column K (Starting from K3) has all max temperature values for each date.
To put it simply: I want to find out what the date was when the maximum temperature occurred during the month of January over all these years.
If there are months of January with the same max value then select the oldest date. Empty cells in column K should be ignored.
Obviously, I want to expand it for every month of the year but once I get the concept to work it out for January then I can do the same for the other months as well.
This has me puzzled for many months. I am using a formula as follows:
=INDEX(Data!$B$3:$B$2855,MATCH(D5,Data!$K$3:$K$2855,0),1) |
However, this works accurately for about 50% of the time. The problem is that if a max value is the same for different months then it might pick a date that correlates to a different month.
I've done some reading and it seems that the MAXIFS would be a more suitable formula.
Can somebody please put me on the right way?
Thank you very much in advance!
Luke