Rolling 90 day average on filtered table

Eoughphily

New Member
Joined
Mar 1, 2020
Messages
6
Office Version
  1. 365
Platform
  1. Windows
I'm trying to find the rolling last number of day average from a table of data with filtered cells. I originally had my formulas setup with raw data and not in a table format. The formulas worked beautifully until I changed it up and created tables from a master list of data for multiple types of queries. Once I did this I ran into hidden/filtered cells giving me inaccurate results. I have columns of dates and a column of numbers which are gathered from the difference between two dates. I'm looking for the average from the last any number of days. Here is the original formula I was using =AVERAGEIFS(C2:C21,A2:A21,">="&TODAY ()-90) where column C Has the data and column A has the dates. I believe I need to incorporate subtotal and offset into my formula to ignore hidden cells, but I can't seem to get it to work with the rolling average criteria. =SUBTOTAL (1, (IFS (A2:A21,C2:C21,">="&TODAY ()-90,OFFSET (H2:H21,0,-5)))) Is one of many variations i have tried but it just gives me the filtered average and night the rolling average. I know my columns are reversed on the second formula, when I put c first then a I get the average of dates which is a number the the thousands. I have spent all day searching Google to point me in the right direction but I cannot get it to work. Can somebody please assist? Thank you
 
thank you @jasonb75 and @Fluff !! both formulas worked beautifully and i was able to figure out the rest of my formulas with. them this thread is solved
 
Upvote 0

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).

Forum statistics

Threads
1,214,655
Messages
6,120,760
Members
448,991
Latest member
Hanakoro

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