Need an average of a range.

Ryan1996

Board Regular
Joined
Jun 4, 2018
Messages
55
I need to create an average of the range below into the top box however due to the cells being both numbers and text it doesn't seem to let me use =AVERAGE()

Can anyone help me get the average of my range to show into the top box. See below for range and cells.
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]H[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD](Formula to go here)[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][TABLE="width: 132"]
<tbody>[TR]
[TD]1 - Very Inadequate / Major Non-Conformity[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][TABLE="width: 132"]
<tbody>[TR]
[TD]2 - Inadequate / Minor Non-Conformity (high severity)[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][TABLE="width: 132"]
<tbody>[TR]
[TD]3 - Partially adequate / Minor Non-Conformity (low severity)[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD][TABLE="width: 132"]
<tbody>[TR]
[TD]3 - Partially adequate / Minor Non-Conformity (low severity)[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD][TABLE="width: 132"]
<tbody>[TR]
[TD]3 - Partially adequate / Minor Non-Conformity (low severity)[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
Obviously the average is 3 here however i need to a formula to automatically do this for the whole column based on specific cells. If someone could help me with the first one i can set it up for the rest.
 
modification:
Code:
=SUM(IFERROR(--MID(H$2:H$1000,1,IFERROR(SEARCH(" ",H$2:H1000),0)-1),0))/COUNTA(H$2:H$1000)
CSE (array) entered
 
Last edited:
Upvote 0

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

Forum statistics

Threads
1,223,911
Messages
6,175,333
Members
452,636
Latest member
laura12345

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