Standard Deviation limited by multiple criteria

JeffFinnan

New Member
Joined
Aug 12, 2020
Messages
47
Office Version
  1. 2019
Platform
  1. Windows
I already had assistance get standard deviations for multiple columns here:

https://www.mrexcel.com/board/threads/combined-standard-deviation-of-two-separate-columns-of-data.1244401/

Now, I would like to limit the data included based on a date from another column. This formula works fine:
Excel Formula:
 =STDEV(IF(A6:A2000="Cc",IF(ISNUMBER(D6:D2000),D6:D2000)),IF(K6:K2000="Cc",IF(ISNUMBER(I6:I2000),I6:I2000)))

Columns A and K contain text and blank cells. Columns D and I contain numbers and cells with #N/A if there is no number available in those particular cells. I use the #N/A for plotting purposes. Now I would like to limit the data further based on date. In this data set Column C contains dates and #N/A related to the numbers in Column D. I have a particular date in U45. If I use this array formula:
Excel Formula:
=STDEV(IF(AND(A6:A2000="Cc",C6:C2000>U45),IF(ISNUMBER(D6:D2000),D6:D2000)),IF(K6:K2000="Cc",IF(ISNUMBER(I6:I2000),I6:I2000)))
I get a #N/A. I presume that the problem is the presence of #N/A in Column C. I am not sure how to work an ISNUMBER for Column C.
How can I achieve limiting the data set based on date too? I will also eventually include the same date limitation to the data in Column I using a date Column H.
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Try it like this...

Excel Formula:
=STDEV(IF(A6:A2000="Cc",IF(ISNUMBER(C6:C2000),IF(C6:C2000>U45,IF(ISNUMBER(D6:D2000),D6:D2000)))),IF(K6:K2000="Cc",IF(ISNUMBER(H6:H2000),IF(H6:H2000>U45,IF(ISNUMBER(I6:I2000),I6:I2000)))))

Hope this helps!
 
Upvote 0
Solution
Thanks much. Works perfectly. And have replaced STDEV with AVERAGE and Count to get those numbers too.
 
Upvote 0

Forum statistics

Threads
1,215,086
Messages
6,123,031
Members
449,092
Latest member
ikke

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