How to output the most common value and the number of occurrences of that value in spreadsheet?

后端 未结 3 1171
再見小時候
再見小時候 2020-12-31 06:16

There is a column Values with a number of Strings, then show below the most common value and the number of occurrences of that value (i.e. mode of

3条回答
  •  伪装坚强ぢ
    2020-12-31 06:35

    To get this working in Google Spreadsheet the above didn't work, returning an Out of Range Error instead. I had to modify the formatting a little. This is what worked;

    =index(G14:ZZ14;;(MATCH(MAX(COUNTIF(G14:ZZ14,G14:ZZ14)),COUNTIF(G14:ZZ14,G14:ZZ14),0)))
    

    Replace the 5 references to G14:ZZ14 with your range.

提交回复
热议问题