Ignoring N/As (excel 2010)

rtiongson

New Member
Joined
Oct 14, 2013
Messages
1
Hi Guys,

I have the following data, basically A+B = C, D+E = F, and G+H = J. I will then need to average all total columns (C,F and I) but will need to ignore the one's that does not have data (on this example is colum G and H). Please help. This is for Excel 2010.

I have the =SUMIF(A1:B1,"<>N/A") for column C which works
I have the =AVERAGE(C1,F1,I1) for column J but it does not ignore the "0" which is there because of the N/A'.

Please help, I'm not the best at excel validation.

Thanks

ABCDEFGHIJ
totaltotaltotalAverage
155105510N/AN/A0should be 10
2101020101020N/AN/A0should be 20
3

<TBODY>
</TBODY>
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Why not set up C1, F1, I1 as =A1+B1, =D1+E1, etc and then just set iferror = ""...so for C1 formula you would have =IfError(A1+B1,""), the 0 will cause it to be included in the average but the "" will keep it from averaging.
 
Upvote 0
Try this:

=SUM(CHOOSE({1,2,3},C1,F1,I1))/COUNT(IF(CHOOSE({1,2,3},C1,F1,I1)<>0,CHOOSE({1,2,3},C1,F1,I1)))

Since this is an array formula, you need to confirm with Ctrl+Shift+Enter instead of just enter.
 
Upvote 0
Hi Guys,

I have the following data, basically A+B = C, D+E = F, and G+H = J. I will then need to average all total columns (C,F and I) but will need to ignore the one's that does not have data (on this example is colum G and H). Please help. This is for Excel 2010.

I have the =SUMIF(A1:B1,"<>N/A") for column C which works
I have the =AVERAGE(C1,F1,I1) for column J but it does not ignore the "0" which is there because of the N/A'.

Please help, I'm not the best at excel validation.

Thanks

A
B
C
D
E
F
G
H
I
J
total
total
total
Average
1
5
5
10
5
5
10
N/A
N/A
should be 10
2
10
10
20
10
10
20
N/A
N/A
should be 20
3

<TBODY>
</TBODY>

J1, just enter and copy down:

=SUM(C1,F1,I1)/INDEX(FREQUENCY((C1,F1,I1),0),2)
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,550
Members
449,088
Latest member
davidcom

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