which number repeats and how many times?

excelNewbie22

Well-known Member
Joined
Aug 4, 2021
Messages
510
Office Version
  1. 365
Platform
  1. Windows
hi,
is there's a formula for finding which number in a range, say a1:a1000, repeat itself the most,
and how many times
?

example: (the actual data contains numbers only but longer)
1
2
1
2
1
3
4
5
6
2
3
1
3
2
2
2
1
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
if they are all numbers - then MODE() and countif()

Book1
ABCD
1ModeCount
2126
32
41
52
61
73
84
95
106
112
123
131
143
152
162
172
181
19
Sheet1
Cell Formulas
RangeFormula
C2C2=MODE(A2:A18)
D2D2=COUNTIF(A2:A18,C2)
 
Upvote 0
How about
Fluff.xlsm
ABC
11NumberCount
2226
31
42
51
63
74
85
96
102
113
121
133
142
152
162
177
181
193
203
21
Data
Cell Formulas
RangeFormula
B2B2=MODE(A1:A1000)
C2C2=COUNTIFS(A:A,B2)
 
Upvote 0
thank you both it doesn't work with my data,
test.xlsb
AW
1#N/A
211011111011111101
311111111111111111
401111101111110111
511110111110111010
611011111011111101
701011111111111111
811010110101011111
911111101111111111
1011011111011111101
1111011111110010010
1211111111001111111
1311111111111111111
1411011111011111101
1511111111110111111
1601011010110111110
1711011111111011011
1811100111101110111
1911111111111111111
2011101011111111111
test
Cell Formulas
RangeFormula
AW1AW1=MODE(AW2:AW21)
 
Upvote 0
That's because that is nothing like what you originally showed.
With over 90 threads to your name, you should know by now that if you post data that is nothing like the real data, any solution is not going to work, so why oh why do you still do it?
 
Upvote 0
i'm sorry, usually i'm trying to be precise as i can, and usually i'm posting data for example,
sometimes like now i didn't thought the need, and i was mistaken
 
Upvote 0
Copying your data directly and using the same function works on my end.
That's because xl will interpret the values as number & convert them, but the formula will not work with text, which is what the OP has.
 
Upvote 0
2 options for you, @excelNewbie22

Add a helper column with =[Cell]*1, Use =Mode(b1:b1000) off this new number column. ;)

Create a copy -> Remove Dups -> Countifs formula -> Sort Process. This is a worse solution but available to you.
 
Upvote 0
Try
Excel Formula:
=INDEX(AW2:AW20,MODE(MATCH(AW2:AW20,AW2:AW20,0)))
 
Upvote 0
Solution

Forum statistics

Threads
1,215,467
Messages
6,124,984
Members
449,201
Latest member
Lunzwe73

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top