Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Taking the mode based on Cell value
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. |
#2
|
|||
|
|||
Try...
=MODE(IF(A1:A100<0,A1:A100)) ....confirmed with CONTROL+SHIFT+ENTER, not just ENTER. Hope this helps! In article , "sip8316" wrote: 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. |
#3
|
|||
|
|||
Yes, try
=MODE(IF(A1:A100<0,A1:A100)) enter the formula with ctrl + shift & enter -- Regards, Peo Sjoblom "sip8316" wrote in message ... 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. |
#4
|
|||
|
|||
=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) "sip8316" wrote in message ... 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. |
#5
|
|||
|
|||
Thanks, that did it great.
Scott "Domenic" wrote: Try... =MODE(IF(A1:A100<0,A1:A100)) ....confirmed with CONTROL+SHIFT+ENTER, not just ENTER. Hope this helps! In article , "sip8316" wrote: 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. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Copy cell format to cell on another worksht and update automatical | Excel Worksheet Functions | |||
up to 7 functions? | Excel Worksheet Functions | |||
formula to return the value of a cell based on a looked up true reference | Excel Worksheet Functions | |||
make a cell empty based on condition | Charts and Charting in Excel | |||
Returning a Value to a Cell Based on a Range of Uncertain Size | Excel Worksheet Functions |