Formula

BKG SPORTS

Board Regular
Joined
Jul 16, 2010
Messages
136
EXCEL 2007

I'm trying to average out a1-a10. The result in a11.I have results of
another formula in a1-a10, it won't average out. the result I get is
#n/a. What would make it average out

thanks for any help
BKG
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
EXCEL 2007

I'm trying to average out a1-a10. The result in a11.I have results of
another formula in a1-a10, it won't average out. the result I get is
#n/a. What would make it average out

thanks for any help
BKG

Do you have any #N/A in A1:A10? If so, try:

=AVERAGE(IF(ISNUMBER(A1:A10),A1:A10))

which needs to be confirmed with control+shift+enter, not just enter.

Anther option:

=SUM(SUMIF(A1:A10,{"<0",">0"}))/SUM(COUNTIF(A1:A10,{"<0",">=0"}))

which needs just enter.
 
Last edited:
Upvote 0
Hey Aladin, thanks much, that worked out well. Don't
understand about the cenral+shift+enter, but it worked great
 
Upvote 0
When its an array function need to enter it as ctrl+shift+enter
 
Upvote 0
Hey Aladin, thanks much, that worked out well.
Fine. Thanks for the feedback. The second formula does not need control+shift+enter (CSE) and that can be shortened to:

=SUM(SUMIF(A1:A10,{"<0",">0"}))/COUNT(A1:A10)

[quit]Don't
understand about the cenral+shift+enter, but it worked great

CSE is required in order to signal Excel that the formula in question needs to process array objects. See Help under "arrays".
 
Upvote 0

Forum statistics

Threads
1,224,606
Messages
6,179,866
Members
452,948
Latest member
UsmanAli786

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