# Average before whilst filtering .

#### Sunline

##### Well-known Member
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.

#### FDibbins

##### Well-known Member
Try this...
=AVERAGE(\$B\$2:B2)
copied down

#### AhoyNC

##### Well-known Member
If you only want to average filtered cells try:
 =SUBTOTAL(1,\$B\$2:B2)

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

#### FDibbins

##### Well-known Member
If you only want to average filtered cells try:
 =SUBTOTAL(1,\$B\$2:B2)

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

oops missed the "need to filter" part, apologies

#### Sunline

##### Well-known Member

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
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

#### Sunline

##### Well-known Member
Great thanks

Replies
3
Views
308
Replies
2
Views
239
Replies
5
Views
361
Replies
4
Views
252
Replies
29
Views
601

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

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.

### Which adblocker are you using?

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

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