Formula to get AVERAGE

RSEKAR

Board Regular
Joined
Oct 18, 2010
Messages
172
Dear Sir,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
In both G and O column contain numerical data. Range (G10:G950) and (O10:O950)<o:p></o:p>
Both columns contain 0 Values also. O column contains both > 0 and < 0 values.<o:p></o:p>
The formula should display the Average value for the data > 0 in (O10:O950) for the data > 0 in (G10:G950)<o:p></o:p>
I use Excel 2002 version and OS XP.
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
One possibility

Code:
=sumif(O10:O950,">0")/countif(O10:O950,">0")
 
Last edited:
Upvote 0
Dear Sir,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
In both G and O column contain numerical data. Range (G10:G950) and (O10:O950)<o:p></o:p>
Both columns contain 0 Values also. O column contains both > 0 and < 0 values.<o:p></o:p>
The formula should display the Average value for the data > 0 in (O10:O950) for the data > 0 in (G10:G950)<o:p></o:p>
I use Excel 2002 version and OS XP.

Try...

Control+shift+enter, not just enter:
Code:
=AVERAGE(
     IF(ISNUMBER(G10:G950),
     IF(G10:G950>0,
     IF(ISNUMBER(O10:O950),
     IF(O10:O950>0,O10:O950)))))
 
Upvote 0
Dear Mr.Aladin Akyurek<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
Your array formula is working well displaying correct AVERAGE Values.<o:p></o:p>
Thank you very much.<o:p></o:p>
 
Upvote 0
Dear Mr.Aladin Akyurek<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
Your array formula is working well displaying correct AVERAGE Values.<o:p></o:p>
Thank you very much.<o:p></o:p>

Great. Thanks for providing feedback.
 
Upvote 0
Dear Sir,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
In both G and O column contain numerical data. Range (G10:G950) and (O10:O950)<o:p></o:p>
Both columns contain 0 Values also. O column contains both > 0 and < 0 values.<o:p></o:p>
The formula should display the Average value for the data > 0 in (O10:O950) for the data > 0 in (G10:G950)<o:p></o:p>
I use Excel 2002 version and OS XP.
If you're using Excel 2007 or later...

=AVERAGEIFS(O10:O950,G10:G950,">0",O10:O950,">0")
 
Upvote 0

Forum statistics

Threads
1,224,531
Messages
6,179,384
Members
452,908
Latest member
MTDelphis

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