Group By Values

RyanWi

New Member
Joined
May 15, 2013
Messages
22
Hi,
I have a Column 'A' with the following (sample) values:

0
0
0
0
0
0
0
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
7
7
7
7
7
7
7
7
7
7
7
7
7
10
10
10
10
10
10
12
12
12
12
12
12
12


I need to group these data by:

0-2= ????
3-4= ????
5-6= ????
7-8= ????
...etc and goes on till 1000

How do i make this.... ?

i have already got the group Values created on Column 'B' as:
0-2
3-4
5-6
7-8

TIA.
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
If you create a pivottable on your data you should be able to group that field with a step-size of 2
 
Upvote 0
A​
B​
C​
D​
1​
Value
Value
Count
2​
0​
2​
7​
C2:C9: {=FREQUENCY(A2:A51, B2:B8)}
3​
0​
4​
17​
4​
0​
6​
0​
5​
0​
8​
13​
6​
0​
10​
6​
7​
0​
12​
7​
8​
0​
14​
0​
9​
4​
0​
10​
4​
11​
4​
12​
4​
13​
4​
14​
4​
15​
4​
16​
4​
17​
4​
18​
4​
19​
4​
20​
4​
21​
4​
22​
4​
23​
4​
24​
4​
25​
4​
26​
7​
27​
7​
28​
7​
29​
7​
30​
7​
31​
7​
32​
7​
33​
7​
34​
7​
35​
7​
36​
7​
37​
7​
38​
7​
39​
10​
40​
10​
41​
10​
42​
10​
43​
10​
44​
10​
45​
12​
46​
12​
47​
12​
48​
12​
49​
12​
50​
12​
51​
12​
 
Upvote 0

A​
B​
C​
D​
1​
Value
Value
Count
2​
0​
2​
7​
C2:C9: {=FREQUENCY(A2:A51, B2:B8)}
3​
0​
4​
17​
4​
0​
6​
0​
5​
0​
8​
13​
6​
0​
10​
6​
7​
0​
12​
7​
8​
0​
14​
0​
9​
4​
0​
10​
4​
11​
4​
12​
4​
13​
4​
14​
4​
15​
4​
16​
4​
17​
4​
18​
4​
19​
4​
20​
4​
21​
4​
22​
4​
23​
4​
24​
4​
25​
4​
26​
7​
27​
7​
28​
7​
29​
7​
30​
7​
31​
7​
32​
7​
33​
7​
34​
7​
35​
7​
36​
7​
37​
7​
38​
7​
39​
10​
40​
10​
41​
10​
42​
10​
43​
10​
44​
10​
45​
12​
46​
12​
47​
12​
48​
12​
49​
12​
50​
12​
51​
12​

Thank you so much..
I used this method:

=COUNTIFS(A1:A51,">=0",A1:A51,"<=2")
 
Upvote 0
Select your data, choose Insert, Pivot table. Drag the first field to the row area, drag that same field to the sigma area. In the pivot, right-click the numbers on the right and set it to Count instead of SUM. Right-click in the row area of the pivot, choose Group. IN the "On" box (the last box) enter 2.
 
Upvote 0

Forum statistics

Threads
1,215,339
Messages
6,124,370
Members
449,155
Latest member
ravioli44

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