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

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
=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,214,832
Messages
6,121,854
Members
449,051
Latest member
excelquestion515

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