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

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
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))
 
Upvote 0
Solution
Thank you!!! I now see the logic...very ingenious...worked perfectly!
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

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