Sum or Avg all cells in range that are not N/A

Cerestes

Board Regular
Joined
Jan 31, 2004
Messages
185
Is there a simple formula to 'skip' cells that are "N/A" when using SUM and AVERAGE?

I need to sum (and average) across a large range, and want to ignore any cells in the range that are NA().

If the range has values of 2, 2, N/A, 2, N/A ,2 - then AVERAGE(range) = 2 and SUM(range) = 8.

Any easy solution?
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
If your range is A1:A10 you could use this for sum

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

and this for average

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

both confirmed with CTRL+SHIFT+ENTER
 
Upvote 0

Forum statistics

Threads
1,214,789
Messages
6,121,590
Members
449,039
Latest member
Arbind kumar

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