Average before whilst filtering .

Sunline

Well-known Member
Joined
Oct 6, 2007
Messages
675
Hello all ,

I wanting to get the results I havr in col E .

They are simply averaging col B .

Result in cell E11 comes from averaging cells B2:B10
Result in cell E10 comes from averaging cells B2:B9
Result in cell E9 comes from averaging cells B2:B8 and so on .

Also I need to filter three or four cols and am needing to average only those cells
that are filtered .

Thanks .
Excel Workbook
BE
1DlstWDlst%
2100
31510
417512.5
52066.6
61555
71747
84942
917543
102959.5
113156.1
Sheet1
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

AhoyNC

Well-known Member
Joined
Oct 10, 2011
Messages
4,883
Office Version
  1. 365
Platform
  1. Windows
If you only want to average filtered cells try:
=SUBTOTAL(1,$B$2:B2)


<colgroup><col width="172"></colgroup><tbody>
</tbody>
 

Sunline

Well-known Member
Joined
Oct 6, 2007
Messages
675

ADVERTISEMENT

Thanks for those , but the functions don’t match my results .

For example average cells B2:B10 , result is 56.1 but I need it to go into cell
E11 . Then if I was to filter say 2 x cols it would only average what I filtered

Thanks .
 

AhoyNC

Well-known Member
Joined
Oct 10, 2011
Messages
4,883
Office Version
  1. 365
Platform
  1. Windows
Should work if you start the formula in cell E3.
Excel Workbook
ABCDE
1DlstWDlst%
2100
31510
417512.5
52066.66667
61555
71747
84942
917543
102959.5
113156.11111
Sheet
 
Learn Excel from Bill Jelen

Understanding data is crucial, and the easiest place to start is with Microsoft Excel.

Forum statistics

Threads
1,151,576
Messages
5,765,196
Members
425,266
Latest member
CPAgirl

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
Top