Average ignoring non-numeric character and blanks?

bhodgman

New Member
Joined
Dec 31, 2016
Messages
7
A
1 ^4
2 (blank)
3 2
4 ^3
6 3
? (formula for average above = should return '3')


Need a formula for the average of values column A (ignoring any blanks, and reading ^4 as '4', ^3 as '3', etc)? Should return the average value of '3' for the example above.

I'm having trouble with the syntax, given some of the values are preceded by the '^' (which I unfortunately need to keep), as well as how to ignore that blank cell.

Think I need some combination of sumproduct, substitute, and isnumber, but just can't figure it out... Thanks!!
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Figured it out, so thought I'd post formula in case others run into same issue: array entered formula: =SUM(VALUE(SUBSTITUTE(A1:A6,"^",""))))/COUNTA(A1:A6)

:)
 
Upvote 0
My post didn't work. I see you've solved it. Good.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,213,552
Messages
6,114,278
Members
448,559
Latest member
MrPJ_Harper

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