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

#### the_mitten

##### New Member
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?

### 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
Hi,
If you cannot get rid of #N/A you could:

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

(Array enter!)

#### the_mitten

##### New Member
Fairwinds,

Great tip. It worked.

Thanks

ray:

Replies
3
Views
494
Replies
2
Views
323
Replies
7
Views
289
Replies
3
Views
1K
Replies
1
Views
542

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.

### Which adblocker are you using?

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

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