STDEV equivalent to AVERAGEIFS

Desoxyn

New Member
Joined
Oct 12, 2021
Messages
4
Office Version
  1. 365
Platform
  1. Windows
I have a data that I'm calculating the average for a group of numbers using code below. Column P is the average of column N corresponding to the number in column C. See attached image. How do I calculate the standard deviation equivalent?

AVERAGEIFS(N:N,C:C,C2,N:N,"<>"&"")
 

Attachments

  • Capture.PNG
    Capture.PNG
    26 KB · Views: 32

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Try:
Change ranges to match your data. It's usually best not to reference whole columns.
Book1
ABCMN
1St. Dev.Data
2124.7914500
34250
44300
55375
66400
74
84475
Sheet2
Cell Formulas
RangeFormula
A2A2=STDEV.S(IF(C2:C8=C2,IF(N2:N8<>"",N2:N8)))
 
Upvote 0
Try:
Change ranges to match your data. It's usually best not to reference whole columns.
Book1
ABCMN
1St. Dev.Data
2124.7914500
34250
44300
55375
66400
74
84475
Sheet2
Cell Formulas
RangeFormula
A2A2=STDEV.S(IF(C2:C8=C2,IF(N2:N8<>"",N2:N8)))

Hello,

Thanks for the suggestion. Unfortunately it didn't work, I narrowed the range to 10k but the stdev column should have one value for each cell corresponding to the average. :\
 

Attachments

  • Capture2.PNG
    Capture2.PNG
    42.7 KB · Views: 10
Upvote 0
Did you get an error msg. , wrong answer??
As you can see it worked in the above example. What is the formula you entered?
 
Upvote 0
Did you get an error msg. , wrong answer??
As you can see it worked in the above example. What is the formula you entered?
It's in my attached image.
=STDEV(IF(C2:C10000=C2,IF(N2:N10000<>"",N2:N10000)))

No error but the stdev column should have the same value for each cell corresponding to its data. For example, in that image, you can see that the Wafer ID (column C) is 117, the average of Loading (column N) is outputted in Average (column P) as 4.519293. It's repeated the same for the rest of the cells corresponding to the same Wafer ID. Column Q should have stdev the same corresponding to its average. The value changes with a new Wafer ID (in my case, 113).
 
Upvote 0
Upvote 0
Solution
Upvote 0

Forum statistics

Threads
1,214,834
Messages
6,121,873
Members
449,056
Latest member
ruhulaminappu

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