Try something like this...=mode(range) will return the most repetative number in a range.
=INDEX(range,MODE(MATCH(range,range,0))) will return the most repetative string in a range EXCEPT it breaks if there is an empty cell.
Anyone know how to correct this?
Thanks
Try this array formula**:Is there a way to apply this to filtered rows only? What is the string mode of the filtered rows?
Thanks guys, this works perfectly in a cell. Can this work as a conditional formula? (arrays) Because I am trying to change the cell color if the cell doesn't equal the mode
Try this array formula**:
=INDEX(B6:B21,MODE(IF(SUBTOTAL(3,OFFSET(B6,ROW(B6:B21)-ROW(B6),0)),MATCH(B6:B21,B6:B21,0))))
** array formulas need to be entered using the key
combination of CTRL,SHIFT,ENTER (not just ENTER).
Hold down both the CTRL key and the SHIFT key
then hit ENTER.
Adjust the range to suit.
Try this...This is great, now the same for if it is a value???