Table not filtering % results

Blake0920

Board Regular
Joined
Jan 2, 2022
Messages
60
Office Version
  1. 2016
Platform
  1. Windows
Trying to filter my results in my table but for some reason when I filter by month all of my % columns give me the total not the individual month total.

This is the formula for the TOTAL column. =AVERAGEIF(J4:J15,"<>0")

When I filter by month I just want to have the total of the month not the entire year. Any suggestions?
 

Attachments

  • Screenshot 2022-02-07 170122.png
    Screenshot 2022-02-07 170122.png
    4.6 KB · Views: 8

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
How about adding a new column to your table with this formula
Excel Formula:
=SUBTOTAL(3,A2)
changing the A2 to a column that will always have data. you can then use
Excel Formula:
=AVERAGEIFS(J4:J15,J4:J15,"<>0",M4:M15,1)
changing M4:M15 to the column with the subtotal formula
 
Upvote 0
Hi again, having a hard time working the formal into the chart as it would not be ideal to have an extra column.

Is there another way where I can keep the existing formula but have it filter properly?
 
Upvote 0
You could use
Excel Formula:
=SUMPRODUCT((J4:J15<>0)*(SUBTOTAL(3,OFFSET(J4,ROW(J4:J15)-ROW(J4),0))),J4:J15)/SUMPRODUCT((J4:J15<>0)*(SUBTOTAL(3,OFFSET(J4,ROW(J4:J15)-ROW(J4),0))))
but it's volatile so will re-calculate far more often than is needed.
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,279
Members
449,075
Latest member
staticfluids

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