How can I specify the frequency / occurrence of repeating values that need to be found in a column or across different columns?
For example, if a column had 1,2,3,3,4,4,4, I want Excel to only find values that repeat 3 times, and the answer should be 4.
Someone gave a very good tip on how to count duplicate values, but it's lacking the 'specify frequency' part, as the 'Mode' includes both 3 & 2 occurrences.
<tbody>
[TD="bgcolor: #CACACA, align: center"]1[/TD]
[TD="align: center"]Values[/TD]
[TD="align: center"]Mode[/TD]
[TD="bgcolor: #CACACA, align: center"]2[/TD]
[TD="align: center"]12[/TD]
[TD="align: center"]12[/TD]
[TD="bgcolor: #CACACA, align: center"]3[/TD]
[TD="align: center"]12[/TD]
[TD="align: center"]14[/TD]
[TD="bgcolor: #CACACA, align: center"]4[/TD]
[TD="align: center"]12[/TD]
[TD="align: center"]15[/TD]
[TD="bgcolor: #CACACA, align: center"]5[/TD]
[TD="align: center"]14[/TD]
[TD="align: center"]11[/TD]
[TD="bgcolor: #CACACA, align: center"]6[/TD]
[TD="align: center"]14[/TD]
[TD="align: center"]13[/TD]
[TD="bgcolor: #CACACA, align: center"]7[/TD]
[TD="align: center"]14[/TD]
[TD="align: center"]18[/TD]
[TD="bgcolor: #CACACA, align: center"]8[/TD]
[TD="align: center"]15[/TD]
[TD="bgcolor: #CACACA, align: center"]9[/TD]
[TD="align: center"]15[/TD]
[TD="bgcolor: #CACACA, align: center"]10[/TD]
[TD="align: center"]15[/TD]
[TD="bgcolor: #CACACA, align: center"]11[/TD]
[TD="align: center"]11[/TD]
[TD="bgcolor: #CACACA, align: center"]12[/TD]
[TD="align: center"]11[/TD]
[TD="bgcolor: #CACACA, align: center"]13[/TD]
[TD="align: center"]13[/TD]
[TD="bgcolor: #CACACA, align: center"]14[/TD]
[TD="align: center"]13[/TD]
[TD="bgcolor: #CACACA, align: center"]15[/TD]
[TD="align: center"]18[/TD]
[TD="bgcolor: #CACACA, align: center"]16[/TD]
[TD="align: center"]18[/TD]
[TD="bgcolor: #CACACA, align: center"]17[/TD]
[TD="align: center"]10[/TD]
[TD="bgcolor: #CACACA, align: center"]18[/TD]
[TD="align: center"]16[/TD]
[TD="bgcolor: #CACACA, align: center"]19[/TD]
[TD="align: center"]19[/TD]
[TD="bgcolor: #CACACA, align: center"]20[/TD]
[TD="align: center"]20[/TD]
</tbody>"I sorted column A just so it'd be easier to see whcih values should be returned.
Enter this formula in C2:
=IFERROR(MODE(A2:A20),"")
Enter this array formua** in C3 and copy down as needed:
=IFERROR(MODE(IF(COUNTIF(C$2:C2,A$2:A$20)=0,A$2:A$20)),"")
** array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT key then hit ENTER."
I hope I'm making sense! Help appreciated!
For example, if a column had 1,2,3,3,4,4,4, I want Excel to only find values that repeat 3 times, and the answer should be 4.
Someone gave a very good tip on how to count duplicate values, but it's lacking the 'specify frequency' part, as the 'Mode' includes both 3 & 2 occurrences.
A | B | C | |
<tbody>
[TD="bgcolor: #CACACA, align: center"]1[/TD]
[TD="align: center"]Values[/TD]
[TD="align: center"]Mode[/TD]
[TD="bgcolor: #CACACA, align: center"]2[/TD]
[TD="align: center"]12[/TD]
[TD="align: center"]12[/TD]
[TD="bgcolor: #CACACA, align: center"]3[/TD]
[TD="align: center"]12[/TD]
[TD="align: center"]14[/TD]
[TD="bgcolor: #CACACA, align: center"]4[/TD]
[TD="align: center"]12[/TD]
[TD="align: center"]15[/TD]
[TD="bgcolor: #CACACA, align: center"]5[/TD]
[TD="align: center"]14[/TD]
[TD="align: center"]11[/TD]
[TD="bgcolor: #CACACA, align: center"]6[/TD]
[TD="align: center"]14[/TD]
[TD="align: center"]13[/TD]
[TD="bgcolor: #CACACA, align: center"]7[/TD]
[TD="align: center"]14[/TD]
[TD="align: center"]18[/TD]
[TD="bgcolor: #CACACA, align: center"]8[/TD]
[TD="align: center"]15[/TD]
[TD="bgcolor: #CACACA, align: center"]9[/TD]
[TD="align: center"]15[/TD]
[TD="bgcolor: #CACACA, align: center"]10[/TD]
[TD="align: center"]15[/TD]
[TD="bgcolor: #CACACA, align: center"]11[/TD]
[TD="align: center"]11[/TD]
[TD="bgcolor: #CACACA, align: center"]12[/TD]
[TD="align: center"]11[/TD]
[TD="bgcolor: #CACACA, align: center"]13[/TD]
[TD="align: center"]13[/TD]
[TD="bgcolor: #CACACA, align: center"]14[/TD]
[TD="align: center"]13[/TD]
[TD="bgcolor: #CACACA, align: center"]15[/TD]
[TD="align: center"]18[/TD]
[TD="bgcolor: #CACACA, align: center"]16[/TD]
[TD="align: center"]18[/TD]
[TD="bgcolor: #CACACA, align: center"]17[/TD]
[TD="align: center"]10[/TD]
[TD="bgcolor: #CACACA, align: center"]18[/TD]
[TD="align: center"]16[/TD]
[TD="bgcolor: #CACACA, align: center"]19[/TD]
[TD="align: center"]19[/TD]
[TD="bgcolor: #CACACA, align: center"]20[/TD]
[TD="align: center"]20[/TD]
</tbody>
Enter this formula in C2:
=IFERROR(MODE(A2:A20),"")
Enter this array formua** in C3 and copy down as needed:
=IFERROR(MODE(IF(COUNTIF(C$2:C2,A$2:A$20)=0,A$2:A$20)),"")
** array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT key then hit ENTER."
I hope I'm making sense! Help appreciated!
Last edited: