Working with filtered data and IFs

Thapelo

New Member
Joined
Jan 7, 2016
Messages
4
I want to use the AVERAGEIF, SUMIF AND COUNTIF functions but want them to only apply to the visible data on a filtered table. When i use AVERAGEIF it applies to all the data in the table even when the filter is applied to the table. How do i get it to only apply to the visible data on the table?
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
can you paste a screenshot of your spreadsheet or make some samples in here using tables
 
Upvote 0
Hi Thapelo and welcome to the board,
Look at SUBTOTAOL function and its arguments. this can help you to manipulate only filtererd cells by SUM, Average, or COUNT them.
All the best,
 
Upvote 0
Hi Thapelo and welcome to the board,
Look at SUBTOTAOL function and its arguments. this can help you to manipulate only filtererd cells by SUM, Average, or COUNT them.
All the best,

I find the SUBTOTAL function to be a bit limiting in this case. I want to be able to average, sum or count values that match multiple criteria in a filtered list. When i use AVERAGEIFS it will only average the values in the range that match ALL the criteria in the formula. However, it considers ALL the data in the table. I want it to only apply the AVERAGEIFS to the data in the table after i have filtered the table.
 
Upvote 0
OK
not sofisticated but effective: Copy the filtererd rows to another worksheet and work on them there.
 
Upvote 0
Why? :confused:

Table1 with columns Number and Value, both
Code:
=AGGREGATE(1,5,Table1[Value])
and 
=SUBTOTAL(101,Table1[Value])
give me the average of the fiiltered values.
 
Upvote 0

Forum statistics

Threads
1,215,986
Messages
6,128,115
Members
449,423
Latest member
Mike_AL

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