Computing the average based on the last 90 days.

Mia Story

New Member
Joined
May 8, 2020
Messages
6
Office Version
  1. 365
Platform
  1. Windows
A formula that automatically computes the last 90 days based on today's date. Each day, a new deposit value is added, the column begins from the 1st of the year.
The formula should compute the average of =today()-90.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
=AVERAGEIF(C:C,">="&TODAY()-90,D:D)
where C is the column with dates
D is the column you want to average
so change those reference to match your data

=AVERAGEIF(Criteria Range,">="&TODAY()-90,Range to Average )
 
Upvote 0
=AVERAGEIF(C:C,">="&TODAY()-90,D:D)
where C is the column with dates
D is the column you want to average
so change those reference to match your data

=AVERAGEIF(Criteria Range,">="&TODAY()-90,Range to Average )

Hi Etaf,
Thank you for formula!!! I work with so many files and this formula will save a significant amount of time. :) Have a great day.
 
Upvote 0

Forum statistics

Threads
1,215,375
Messages
6,124,580
Members
449,174
Latest member
chandan4057

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