I may be over complicating this request as I know there is a way to get this value but I'm not an expert at excel or sheets. Here is my problem:
Basically I want to compare inputted values/numbers against each other and get the most frequent. Thanks
Column A |
---|
Apples |
Apples |
Oranges |
-------- |
Apples |
Column B |
---|
-------- |
"no inputs" |
Column C |
---|
1 |
2 |
1 |
-------- |
1 |
I have tried a multitude of things like VLOOKUP, XLOOKUP, MATCH and COUNTIF. The closest I got it to work was using the following cell formula =XLOOKUP(H3,$H$3:$H$5,$H$3:$H$5,"")
The following formula tackles points 1, 3, and 4, using column A as an example:
=IF(COUNTBLANK(A1:A3)>0, "no inputs", INDEX(A1:A3,MODE(MATCH(A1:A3,A1:A3,0))))
Notes:
>0
criterion for the COUNTBLANK
.Conditional formatting can be used to tackle point 2. The cell will turn a different color if the formula like the one below is true. Again using Column A as an example, where a full list is assumed to be 3 inputs long and A5
is the cell where the most frequent input is:
=COUNTIF(A1:A3,A5)<3