Sort numbers to groups

bullit_nl

Active Member
Joined
Jun 27, 2002
Messages
280
Hi,

I have a list with +/- 9.000 cells in 1 column filled with numbers.

Is it possible to sort this numbers in groups.

Example:

0 - 500 = 4.500
501 - 1.000 = 4.500
etc

or

0 - 500 = 50%
501 - 1.000 = 50%
etc


Thanks
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Have a look at the Frequency function, or summarize with a PivotTable.
 
Upvote 0
I tried this formula:

= COUNTIF(J2:J10000;">="&0)-COUNTIF(J2:J10000;">"&500)

but the only result i get is #NAME?
 
Upvote 0
I tried this formula:

= COUNTIF(J2:J10000;">="&0)-COUNTIF(J2:J10000;">"&500)

but the only result i get is #NAME?

Yeah well, that's neither of the things I suggested. Try a PivotTable,

Excel Workbook
ABCD
1DataCount of Data
2355DataTotal
35780-49914
456500-10006
566Grand Total20
6254
7796
8394
9762
10264
11610
1242
13893
14428
15261
16311
17178
18291
1992
20545
21210
Sheet12



... data in row headings, and count of data in Data area ... group rows by step of 500.
 
Upvote 0
Hi,

I'm trying the PivotTable. But i don't get it.

I have all numbers in column A. From A2 to A10000. In A1 I typed Data.

Now i select column A en insert a PivotTable. Then i new sheet opens with in A3 row labels and in A4 to 515 my numbers.

On the right i can't select or choose anything else as data?
 
Upvote 0
What version of Excel are you using? I will try to tell how to use the PivotTable interface, but it's different between 2003 and 2007.
 
Upvote 0
Hi,

I use Excel 2010.
I don't have 2010, but I believe that 2007 is similar.

On the right i can't select or choose anything else as data?
If the Values area is blank, you choose Data again and drag to the data/values area ( I wish I'd chosen a different column name than Data ), then change the Value Field Settings to Count.

Once you have a count per number, then right-click the numbers in the Row Labels, and choose Group from the short-cut menu.
 
Upvote 0
Ok now i get a new column next to data, amount of data. But still not:

0-499 =
500-1000 =

What i also don't understand is why my list of almost 10.000 numbers now is a list with just +/- 500 numbers.
 
Upvote 0
Ok now i get a new column next to data, amount of data. But still not:

0-499 =
500-1000 =
in my last post I said:
Once you have a count per number, then right-click the numbers in the Row Labels, and choose Group from the short-cut menu.

... group rows by step of 500, starting at zero, as a guess.

What i also don't understand is why my list of almost 10.000 numbers now is a list with just +/- 500 numbers.
... you are doing a count per number, so any number that appears more than once in the source data will be reduced to one row in the pivottable.
 
Upvote 0

Forum statistics

Threads
1,224,591
Messages
6,179,766
Members
452,940
Latest member
rootytrip

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