#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 60
Default Group random numbers

Can someone help me with a way to produce a grouping from a list of random
numbers. I know the column need to be sorted first, but I don't know how to
group the results. In col "A" I have something like:
1
2
4
6
8
9
12
10
23
11
3
13
5
15

I want to produce something like:
1-6, 8-13, 15, 23

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,696
Default Group random numbers

Make sure you have a coumn Header (i.e. - "Numbers").Highlight your column,
Data - Pivot Chart.

Drop Numbers in the row and data fields.

right-clik on one fo the numbers in the row field - Group and show Detail -
Group.

Pick your starting number and the range per, so starting at 1 by 6 and pick
a top range.

"Tony S." wrote:

Can someone help me with a way to produce a grouping from a list of random
numbers. I know the column need to be sorted first, but I don't know how to
group the results. In col "A" I have something like:
1
2
4
6
8
9
12
10
23
11
3
13
5
15

I want to produce something like:
1-6, 8-13, 15, 23

Thanks!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 60
Default Group random numbers

Sean,
Thanks for your reply, but I was looking for a routine to automatically
create the out I needed. Do you know if there is a VB way to acomplish this?

"Sean Timmons" wrote:

Make sure you have a coumn Header (i.e. - "Numbers").Highlight your column,
Data - Pivot Chart.

Drop Numbers in the row and data fields.

right-clik on one fo the numbers in the row field - Group and show Detail -
Group.

Pick your starting number and the range per, so starting at 1 by 6 and pick
a top range.

"Tony S." wrote:

Can someone help me with a way to produce a grouping from a list of random
numbers. I know the column need to be sorted first, but I don't know how to
group the results. In col "A" I have something like:
1
2
4
6
8
9
12
10
23
11
3
13
5
15

I want to produce something like:
1-6, 8-13, 15, 23

Thanks!

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,696
Default Group random numbers

Unfortunatel,y I don't.

"Tony S." wrote:

Sean,
Thanks for your reply, but I was looking for a routine to automatically
create the out I needed. Do you know if there is a VB way to acomplish this?

"Sean Timmons" wrote:

Make sure you have a coumn Header (i.e. - "Numbers").Highlight your column,
Data - Pivot Chart.

Drop Numbers in the row and data fields.

right-clik on one fo the numbers in the row field - Group and show Detail -
Group.

Pick your starting number and the range per, so starting at 1 by 6 and pick
a top range.

"Tony S." wrote:

Can someone help me with a way to produce a grouping from a list of random
numbers. I know the column need to be sorted first, but I don't know how to
group the results. In col "A" I have something like:
1
2
4
6
8
9
12
10
23
11
3
13
5
15

I want to produce something like:
1-6, 8-13, 15, 23

Thanks!

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 60
Default Group random numbers

Thanks for trying.
I've got a long list of numbers to try to group on a daily basis. Does
anyone else have any ideas?

"Sean Timmons" wrote:

Unfortunatel,y I don't.

"Tony S." wrote:

Sean,
Thanks for your reply, but I was looking for a routine to automatically
create the out I needed. Do you know if there is a VB way to acomplish this?

"Sean Timmons" wrote:

Make sure you have a coumn Header (i.e. - "Numbers").Highlight your column,
Data - Pivot Chart.

Drop Numbers in the row and data fields.

right-clik on one fo the numbers in the row field - Group and show Detail -
Group.

Pick your starting number and the range per, so starting at 1 by 6 and pick
a top range.

"Tony S." wrote:

Can someone help me with a way to produce a grouping from a list of random
numbers. I know the column need to be sorted first, but I don't know how to
group the results. In col "A" I have something like:
1
2
4
6
8
9
12
10
23
11
3
13
5
15

I want to produce something like:
1-6, 8-13, 15, 23

Thanks!



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 762
Default Group random numbers

Tony S. -

For a VBA approach, you could look at the Better Histogram VBA code
available from the Histogram page at www.treeplan.com. That code uses the
FREQUENCY worksheet function for grouping data into a frequency distribution
table, and you could disregard the charting code.

- Mike Middleton
http://www.DecisionToolworks.com
Decision Analysis Add-ins for Excel


"Tony S." wrote in message
...
Sean,
Thanks for your reply, but I was looking for a routine to automatically
create the out I needed. Do you know if there is a VB way to acomplish
this?

"Sean Timmons" wrote:

Make sure you have a coumn Header (i.e. - "Numbers").Highlight your
column,
Data - Pivot Chart.

Drop Numbers in the row and data fields.

right-clik on one fo the numbers in the row field - Group and show
Detail -
Group.

Pick your starting number and the range per, so starting at 1 by 6 and
pick
a top range.

"Tony S." wrote:

Can someone help me with a way to produce a grouping from a list of
random
numbers. I know the column need to be sorted first, but I don't know
how to
group the results. In col "A" I have something like:
1
2
4
6
8
9
12
10
23
11
3
13
5
15

I want to produce something like:
1-6, 8-13, 15, 23

Thanks!



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 60
Default Group random numbers

Thanks Mike, I'll look into that.

"Mike Middleton" wrote:

Tony S. -

For a VBA approach, you could look at the Better Histogram VBA code
available from the Histogram page at www.treeplan.com. That code uses the
FREQUENCY worksheet function for grouping data into a frequency distribution
table, and you could disregard the charting code.

- Mike Middleton
http://www.DecisionToolworks.com
Decision Analysis Add-ins for Excel


"Tony S." wrote in message
...
Sean,
Thanks for your reply, but I was looking for a routine to automatically
create the out I needed. Do you know if there is a VB way to acomplish
this?

"Sean Timmons" wrote:

Make sure you have a coumn Header (i.e. - "Numbers").Highlight your
column,
Data - Pivot Chart.

Drop Numbers in the row and data fields.

right-clik on one fo the numbers in the row field - Group and show
Detail -
Group.

Pick your starting number and the range per, so starting at 1 by 6 and
pick
a top range.

"Tony S." wrote:

Can someone help me with a way to produce a grouping from a list of
random
numbers. I know the column need to be sorted first, but I don't know
how to
group the results. In col "A" I have something like:
1
2
4
6
8
9
12
10
23
11
3
13
5
15

I want to produce something like:
1-6, 8-13, 15, 23

Thanks!




  #8   Report Post  
Posted to microsoft.public.excel.misc
Oxo Oxo is offline
external usenet poster
 
Posts: 7
Default Group random numbers

Assuming your values are all in column A, create a table (D1:E4) that in the
first column has the starting value of each group and in the second column
the description of that group, e.g.
1 1 - 6 widgets
7 7 - 10 widgets
11 11 widgets
12 12 - 17 widgets
18 18
19 19 - 23 widgets

Then, in B1, use a vlookup formula
VLOOKUP(a1,$d$1:$E:$4,2,1)

Copy this formula down to all rows with values that you want to group. Note
that your table should address all values you want to measure (no gaps)

"Tony S." wrote:

Can someone help me with a way to produce a grouping from a list of random
numbers. I know the column need to be sorted first, but I don't know how to
group the results. In col "A" I have something like:
1
2
4
6
8
9
12
10
23
11
3
13
5
15

I want to produce something like:
1-6, 8-13, 15, 23

Thanks!

  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 60
Default Group random numbers

Thanks for your input Oxo, but I don't have descriptions, just a large list
of non-sequencial random numbers that I need to automatically sort group as
best as possible with have to go through and read the list to determine where
gaps my be.

From this list of numbers, I'm trying to obtain an output that reads
something like
1-57, 60-68, 72, 75, 80-94, 103 etc.

"Oxo" wrote:

Assuming your values are all in column A, create a table (D1:E4) that in the
first column has the starting value of each group and in the second column
the description of that group, e.g.
1 1 - 6 widgets
7 7 - 10 widgets
11 11 widgets
12 12 - 17 widgets
18 18
19 19 - 23 widgets

Then, in B1, use a vlookup formula
VLOOKUP(a1,$d$1:$E:$4,2,1)

Copy this formula down to all rows with values that you want to group. Note
that your table should address all values you want to measure (no gaps)

"Tony S." wrote:

Can someone help me with a way to produce a grouping from a list of random
numbers. I know the column need to be sorted first, but I don't know how to
group the results. In col "A" I have something like:
1
2
4
6
8
9
12
10
23
11
3
13
5
15

I want to produce something like:
1-6, 8-13, 15, 23

Thanks!

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
getting numbers divisible by 4 from random numbers in ascending order ramana Excel Worksheet Functions 6 June 19th 07 06:41 PM
How can I convert a group of numbers to a group of letters? CarlG Excel Worksheet Functions 9 August 18th 06 03:31 PM
Can Excel pick random numbers from 1-300 and not repeat numbers? Julian Excel Discussion (Misc queries) 1 June 7th 06 07:17 AM
Non-random numbers generated by excel's data analysis random gener Allie Excel Worksheet Functions 10 September 17th 05 06:19 AM
Non-random numbers generated by excel's data analysis random gener Harlan Grove Excel Discussion (Misc queries) 2 September 13th 05 04:06 PM


All times are GMT +1. The time now is 10:16 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"