Forum Discussion
How to find the max value corresponding to a date range
- Mar 18, 2022
Let's say your data is in Sheet1 (e.g Column A and B).
And the formula you want to write is "B1" in the sheet below and your formula is calculated based on the 1st day of the month. If so, you can try as below.
A B
1 1/2/2022 =MAXIFS(Sheet1!B:B, Sheet1!A:A,">="&A1, Sheet1!A:A,
"<="&eomonth(A1,0)
2 1/3/2022 drag down formula above
3 1/4/2022 drag down formula above
Or, do you want the max of exactly the first date occured in the month?
For e.g if there are 5/2/2022, 16/2/2022 and 20/2/2022 in Feb 2022, what you want is max of 5/2/2022. Please let me know.
Dear Kaddrik,
What you want is maximum value for the whole month, then please see my previous reply.
It is for the whole month.
For individual date in the month, you can use your formula. Thanks
Hello Starrysky1988 ,
Sorry for the late reply.
I just tested what you explain and it works ! 🙂
Thanks a lot for your time !!