ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Conditional Column Average (https://www.excelbanter.com/excel-worksheet-functions/156368-conditional-column-average.html)

Mike Dobony

Conditional Column Average
 
I want to average a column where the values of a different column is within
a certain range. How do I set this up? Thanks.

Mike D.



Max

Conditional Column Average
 
An example, in say C2, with formula array-entered**:

=AVERAGE(IF((A2:A10=2)*(A2:A10<=10),B2:B10))

returns the average of col B values
where col A values are between 2 and 10, inclusive

**Press CTRL+SHIFT+ENTER to confirm the formula

Adapt the ranges to suit. Ranges must be identically sized.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Mike Dobony" wrote in message
...
I want to average a column where the values of a different column is within
a certain range. How do I set this up? Thanks.

Mike D.





All times are GMT +1. The time now is 01:18 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com