ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   AVERAGE, STDEV, SEM with criteria (https://www.excelbanter.com/excel-programming/398355-average-stdev-sem-criteria.html)

robotman

AVERAGE, STDEV, SEM with criteria
 
I have a table with several columns. One of the columns is the group
number and another has volumes of each item.

Example:

Group Vol ... etc
1 20
1 22
1 24
2 24
2 30
2 28


How can I calculate the Average, Stdev, and SEM for each group. I
need some sort of AverageIf, Stdevif, SEMif ..etc. I could write a
macro to go through each line and check for a group match, but if
there's a way to do the calculations with a one-liner, that would be
great.

Note: SEM is not a std XL function, but is calcuated: =STDEV()/
SQRT(COUNT())

Thanks for any ideas.

John



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

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