Hi Max,
This works great! However, there is one issue I am running into. Whenever
there are more empty cells than there are values it is returning the empty
cell. How should this function be modified to ignore blank cells?
Thank you for your help, it is much appreciated!
"Max" wrote:
One way
Assuming data in row1
Put in A2, array-enter the formula by pressing CTRL+SHIFT+ENTER:
=INDEX(1:1,MATCH(MAX(COUNTIF(1:1,1:1)),COUNTIF(1:1 ,1:1),0))
In the event of any ties in the max occurences,
only the "leftmost" item in row1 will be returned
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"AdamE" wrote:
Good Afternoon,
I'm having trouble trying to write a function that returns the value in a
given row that exists more than all other values in that same range. Please
see the below example.
A1 = Apple
B1 = Banana
C1 = Orange
D1 = Apple
E1 (Formula) = This cell should return Apple because Apple is listed in more
cells than all other fruits.
Thank you,
Adam