Hi, I have a spreadsheet that multiple users will be pasting data into and depending on the analytical company it will vary from blank (no analysis) or <value (below detection limits) or >value (above detection limits). I am trying to calculate the standard deviation of an array with specific criteria and the cell has a numerical value.
For example I have a spreadsheet that contains: column A with Company X and Company Y, Column B with numerical data, blank cells and text value (e.g. <0.03 or >10000).
I am using Shift+Ctrl+Enter to get the {}
If I calculate the standard deviation of Company X by sorting Column A and Column B =STDEV(B2:B9) I get a value of 10 which is the correct value
I have tried {=STDEV(IF(AND(A2:A21="Company X",B2:B21<>0),B2:B21))} I get a Standard deviation of #DIV/0!
I have tried {=STDEV(A2:A21="Company X"),B2:B21)} I get a Standard deviation of 251 which calculates blank and text cells as 0
If I use {=STDEV(IF(A2:A21="Company Y",B2:B21))} that does not have blanks or text the standard deviation is calculated correctly
Any help would be greatly appreciated.
Thanks
For example I have a spreadsheet that contains: column A with Company X and Company Y, Column B with numerical data, blank cells and text value (e.g. <0.03 or >10000).
I am using Shift+Ctrl+Enter to get the {}
If I calculate the standard deviation of Company X by sorting Column A and Column B =STDEV(B2:B9) I get a value of 10 which is the correct value
I have tried {=STDEV(IF(AND(A2:A21="Company X",B2:B21<>0),B2:B21))} I get a Standard deviation of #DIV/0!
I have tried {=STDEV(A2:A21="Company X"),B2:B21)} I get a Standard deviation of 251 which calculates blank and text cells as 0
If I use {=STDEV(IF(A2:A21="Company Y",B2:B21))} that does not have blanks or text the standard deviation is calculated correctly
Any help would be greatly appreciated.
Thanks