Standard Deviation on Spilled Range with IF

Winston

New Member
Joined
Feb 25, 2021
Messages
2
Office Version
  1. 365
Platform
  1. MacOS
I currently have two spilled ranges of data starting in row 3 of column AH and AH as shown:
1614265977958.png


I wanted to determine the Average and Standard Deviation in scores for each reviewer in the spilled ranges. I created a list of Unique Reviewers (column AK) using the UNIQUE function that returned a spilled range in row 3, as expected. I then was able to use the AVERAGEIFS function to create the average score (column AL) for each unique reviewer, returning a spilled range using:

=AVERAGEIFS($AH$3#,$AG$3#,AK3#)

My challenge now is doing the same to calculate the Standard Deviation for each unique reviewer (Column AM). I was able to simply use the following and manually drag down into each row of column AM for this:

=STDEV(FILTER($AH$3#,AK3=$AG$3#))

but, this is not a spilled range and requires me to manually adjust the column length if there are any changes in the spilled range size of the other columns.

My Question: Is there a single formula I can use in cell AM3 that will result in a spilled range result of standard deviation for each unique reviewer, similarly to the AVERAGEIFS function?
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

StephenCrump

MrExcel MVP
Joined
Sep 18, 2013
Messages
4,400
Office Version
  1. 365
Platform
  1. Windows
Welcome to the Forum!

At the risk of embarrassment, I'll stick my neck out and say you can't do it in a single array formula using STDEV.

But with a bit of contrivance: =SQRT(TRANSPOSE(MMULT(SEQUENCE(,ROWS(AG3#),1,0),--IF(AG3#=TRANSPOSE(AK3#),(AH3#-TRANSPOSE(AL3#))^2)))/(COUNTIF(AG3#,AK3#)-1))
 
Solution

Winston

New Member
Joined
Feb 25, 2021
Messages
2
Office Version
  1. 365
Platform
  1. MacOS
Thank you!!! I now see the logic...very ingenious...worked perfectly!
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,152,386
Messages
5,769,788
Members
425,570
Latest member
sfoshay11

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
Top