I have a dataset consisting of concentrations of parameters (alpha and beta) at different locations over multiple years. I've included an example dataset here.
I need to calculate an average and standard deviation for each parameter that spans multiple locations and years (but not all locations and years).
Example 1: Calculate the average and standard deviation of alpha values from years 2009 to 2012 at locations A and C.
Answer should be: Average of {0.84, 0.47, 0.27, 0.14, 0.36, 0.65, 0.66, 0.85} is 0.53. Standard deviation of {0.84, 0.47, 0.27, 0.14, 0.36, 0.65, 0.66, 0.85} is 0.26.
The real dataset is large, including 7 different parameters and more than 30 locations. I need to perform these calculations for many parameters, so am looking for a formula (or array formula) that will do this in as little cells as possible. Can this be done by formula or will I need a macro?
Location Parameter 2008 2009 2010 2011 2012 2013 LocA alpha 0.24 0.84 0.47 0.27 0.14 0.33 LocA beta 4 9 9 8 2 9 LocB alpha 0.24 0.33 0.85 0.54 0.56 0.65 LocB beta 8 7 6 7 2 9 LocC alpha 0.24 0.36 0.65 0.66 0.85 0.92
Bookmarks