CSE PROBLEM: Taking the average if #N/A is present

the_mitten

New Member
Joined
Feb 4, 2004
Messages
12
Hi all,

I am using a CSE (Control-Shift-Enter) formula to calculate the average of 3 cells. {=AVERAGE(IF(($BK7:$BM7)<>0,$BK7:$BM7))}

My formula is great since I left a cell in my range blank if there were no values. HOWEVER, when I plotted my averages in a line graph, the blank values plummeted to zero. SO, I modified my formulas to produce an #N/A so that the zero values would not show up. Problem is, now my CSE formula will not recognize a #N/A when it tries to take the average.

Any ideas guys?

:oops:
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

fairwinds

MrExcel MVP
Joined
May 15, 2003
Messages
8,638
Hi,
If you cannot get rid of #N/A you could:

=AVERAGE(IF(ISNUMBER($BK7:$BM7),IF($BK7:$BM7<>0,$BK7:$BM7)))

(Array enter!)
 
Master Excel Bundle

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.

Forum statistics

Threads
1,151,891
Messages
5,766,966
Members
425,391
Latest member
Alono23

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
Top