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

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
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,214,636
Messages
6,120,669
Members
448,977
Latest member
moonlight6

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