Reputation: 103
Suppose I have below data
1,2,2,2,2,2,3,3,4,5
I want to split it into different groups based on their occurrence count.
Range, occurrence count
0-1 = 1
1-3=5
3-5=2
Upvotes: 0
Views: 56
Reputation: 444
You can make use of FREQUENCY
function in excel. Select all the cells where you want the range to be displayed. Press F2 to go into edit mode and enter the following formula and then press Ctrl+Shift+Enter
=FREQUENCY(G8:G17,RIGHT(H8:H10,1)+0)
Here G8:G17
is the data array and H8:H10
is the bin array or range array. Let me know if you want any further explanation.
Here is my solution snapshot.
.
Upvotes: 2