Try in say, C1: =STDEV(IF(A1:A40<>0,B1:B40))
Array-enter the formula, i.e. press CTRL+SHIFT+ENTER
instead of just pressing ENTER
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"Carlos" <Carlos@discussions.microsoft.com> wrote in message
news:03706C20-0ADD-403F-B84E-38D907C35E71@microsoft.com...
> Hi,
>
> Could someone please advise.
>
> I want to get the standard deviation based on criteria. It looks like
this.
> Criteria is 40 consecutive values ignoring 0 in Column A.
> A B
> 1 50
> 2 20
> 3 10
> 0 20
> 4 10
> 5 20
> ...
> ...
> nth
>
> I use manual selection (e.g. =STDEV(B1:B3, B5:B6, etc...) that covers the
40
> consecutive rows. B4 here is zero so I did not select it.
>
> My rows is getting bigger and bigger, how could I formulate this?
>
> Thanks in advance
>
> Carlos
>
>
Bookmarks