Help with STDEV IF formula

El Ruck

New Member
Joined
Nov 4, 2014
Messages
2
Hey y'all,

I'm trying to get the STDEV of AF2:AF2401 IF T2:T2401 is > 100 AND T2:T2401 is < 201, and IF W2:W2041=BV1.

This formula works, confirmed with CTRL SHFT ENTR:
=STDEV(IF($T$2:$T$2041<201, IF($W$2:$W$2041=$BV$1, $AF$2:$AF$2041)))

And this one works:
=STDEV(IF($T$2:$T$2041>100, IF($W$2:$W$2041=$BV$1, $AF$2:$AF$2041)))

I just can't figure out how to combine them, to effectively search T2:T2401 for values that are >100 and <201. I don't think you can use AND for arrays, so I've tried multiple IFs:
=STDEV(IF($T$2:$T$2041>100, IF($T2:$T$2401<201, IF($W$2:$W$2041=$BV$1,$AF$2:$AF$2041)))) CTRL SHFT ENTR
but I get an N/A error.

Halp! I've been stuck here for a day!
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Although you cannot use the AND function like you stated, the multiplication operator works often as a good stand-in.

i.e.
TRUE*TRUE = 1*1 = 1 = TRUE
FALSE*TRUE = 0*1 = 0 = FALSE
TRUE*FALSE = 1*0 = 0 = FALSE
FALSE*FALSE = 0*0 = 0 = FALSE

It's not entirely intuitive, but I believe this formula does what you are asking...
=STDEV(IF(($T$2:$T$2041>100)*($T$2:$T$2041<201), IF($W$2:$W$2041=$BV$1, $AF$2:$AF$2041)))
 
Upvote 0
Genius indeed, just not my genius. I once had the same question myself a while back. :laugh:
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,875
Members
452,363
Latest member
merico17

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