# Average

#### cahickm2

##### Board Regular
I need help with an average function. I have 8 colums of data. column A cotains the name of the hardware, B-H contain values for the week. I need to average column b-h where it doesn't include the maximum and minimum value for each row.

### Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

#### LxQ

##### Well-known Member
do you want averages by each row?

#### lenze

##### Legend
A quick and dirty answer
Code:
``=(SUM(B2:H2)-MAX(B2:H2)-MIN(B2:H2))/5``

lenze

##### MrExcel MVP
i Need Help With An Average Function. I Have 8 Colums Of Data. Column A Cotains The Name Of The Hardware, B-h Contain Values For The Week. I Need To Average Column B-h Where It Doesn't Include The Maximum And Minimum Value For Each Row.

=trimmean(b2:h2,2/count(b2:h2))

#### LxQ

##### Well-known Member
or this:
=SUMPRODUCT(--(B1:H1<MAX(B1:H1)),--(B1:H1>MIN(B1:H1)),--(B1:H1))/5

#### cahickm2

##### Board Regular
Thanks!!!

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,164,626
Messages
5,838,431
Members
430,547
Latest member
jopshio

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

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