I currently use the following formula to find the most common word or number in a range:
=INDEX(E9:E18,MODE(MATCH(E9:E18,E9:E18,0)))
However, if there are any blank cells then the formula returns a blank cell as the mode. How can I modify this to find the most common word/number ignoring any blank cells?
Many thanks
Try the following User Defined Function:
To avoid VBA, pick a cell (say A1) and enter the array formula:
Array formulas must be entered with Ctrl + Shift + Enter rather than just the Enter key.
Here is an example: