STDEV, IF, AND instead of STDEVIFS

Nanaia

Active Member
Joined
Jan 11, 2018
Messages
306
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Based on the posts I've reviewed I'm not the only one looking for a STDEVIFS function in Excel.

I'm trying to get along without it by using IF and AND. There are two criteria that need to be matched and if they match I want the STDEV. I am trying to get Excel to calculate STDEV for a specified flavour for each person. I've tried nesting AND inside an IF function but got a !VALUE error [ =STDEV(IF(AND($O$3:$O$1000=G14,$N$3:$N$1000=F14),$P$3:$P$1000,"")) ] I used Ctrl+Shift+Enter but it still didn't work. Can any of you assist?

Column F has the reference names for each grouping and column G has the Flavour sub-grouping. Here is a sample of the data I'm pulling from:

[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Col N
[/TD]
[TD]Col O
[/TD]
[TD]Col P
[/TD]
[/TR]
[TR]
[TD]Name
[/TD]
[TD]Flavour
[/TD]
[TD]Grams
[/TD]
[/TR]
[TR]
[TD]BB
[/TD]
[TD]Plain
[/TD]
[TD]13.3
[/TD]
[/TR]
[TR]
[TD]BB
[/TD]
[TD]Caramel
[/TD]
[TD]14.1
[/TD]
[/TR]
[TR]
[TD]NA
[/TD]
[TD]Plain
[/TD]
[TD]13.6
[/TD]
[/TR]
[TR]
[TD]NA
[/TD]
[TD]PB
[/TD]
[TD]15.7
[/TD]
[/TR]
[TR]
[TD]CS
[/TD]
[TD]PB
[/TD]
[TD]16.3
[/TD]
[/TR]
[TR]
[TD]CS
[/TD]
[TD]Caramel
[/TD]
[TD]17.4
[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Your problem is AND will not produce an array of results. Try a nested if maybe:

=STDEV(IF($O$3:$O$1000=G14,IF($N$3:$N$1000=F14,$P$3:$P$1000)))
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,162
Members
453,021
Latest member
Justyna P

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