=INDEX(COLLECT({Nature of Issue}, {Nature of Issue Count}, MAX({Nature of Issue Count}, 1), {Site Name Helper}, Site@row), 1)
Hello, community. I am trying to solve following.
I want my formula (above) to return the nature of issue that has the most common nature of issue count for each site {Site name helper}.
It is not returning the correct answer. For example, the most common nature of issue for London is 'fire awareness' and the most common nature of issue for Bristol is 'mechanical' - but the formula above returns 'fire awareness' for every site even when it is not the most common issue at that location.
{Nature of Issue Count} in the source sheet is COUNTIFS([Nature of Issue]:[Nature of Issue], [Nature of Issue]@row, [Site Name Helper]:[Site Name Helper], [Site Name Helper]@row
Please help!