Forum Discussion
bbilodeau
Apr 22, 2024Copper Contributor
Formula needed to calculate average over current day in year
I'm looking for a formula to calculate a year-to-date daily average using Excel that would automatically change the amount of days as time goes on. Is there a function that can use a YTD sales quanti...
Cookster
May 06, 2024Copper Contributor
Good Morning
The question asked regarding the YTD worked perfectly. How can this be done as a MTD format?
Thanks
Neil
HansVogelaar
May 07, 2024MVP
The number of days in the current month up to and including today is
TODAY()-EOMONTH(TODAY(), -1)
So you can use
=MTD_Quantity/(TODAY()-EOMONTH(TODAY(), -1))
This assumes that you have a named range MTD_Quantity.
- CooksterMay 07, 2024Copper Contributor
Thank you for the assistance - this should definitely work.