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

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

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!)
 
Upvote 0

Forum statistics

Threads
1,186,371
Messages
5,957,463
Members
438,306
Latest member
Crystal_Blue

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