Taking the mode based on Cell value

S

sip8316

I am trying to take the Mode of a column, which I now how to do, but if the
Mode=0 I want to only take the mode of the non zero values. Is there a way
to do this...I have this so far and it takes the mode fine :

=IF(MODE(A1:A100)<>0,MODE(A1:A200))

Any Help would be great.
 
D

Domenic

Try...

=MODE(IF(A1:A100<>0,A1:A100))

....confirmed with CONTROL+SHIFT+ENTER, not just ENTER.

Hope this helps!
 
P

Peo Sjoblom

Yes, try


=MODE(IF(A1:A100<>0,A1:A100))

enter the formula with ctrl + shift & enter
 
B

Bob Phillips

=MODE(IF(A1:A100<>0,A1:A100))

which is an array formula, so commit with Ctrl-Shift-Enter

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
S

sip8316

Thanks, that did it great.

Scott

Domenic said:
Try...

=MODE(IF(A1:A100<>0,A1:A100))

....confirmed with CONTROL+SHIFT+ENTER, not just ENTER.

Hope this helps!
 
Top