Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 53
Default Dividing range of numbers automatically

Hi,

On my spreadsheet I have a column with ten numbers. The numbers are
errors based on a calculation. What I manually do is look at the
numbers and divide them into 1 2 3 4 or 5 ranges.

E.G.

1 0
2 1.4
3 1.2
4 1
5 1
6 1
7 0.5
8 0.5
9 0.2
10 0


In the above example I would manually make the groupings:

1-3 = 1.4
4-6 = 1
7-8 = 0.5
9-10 = 0.2

and in this case group the errors into 4 groups.

Another example:

1 0
2 0
3 0
4 0
5 0
6 1
7 1
8 1
9 1
10 1

I would make the groupings:

1-5 = 0
6-10 = 1

and in this case group the errors into 2 groups.

And one more example:

1 0.5
2 0.1
3 0.1
4 0.2
5 0.2
6 0.8
7 0.7
8 0.8
9 1
10 1.5

In this example I would group the numbers as such:

1 = 0.5
2-3 = 0.1
4-5 = 0.2
6-9 = 1
10 = 1.5

and in this case group the errors into 5 groups.

Can excel intuitively by formula, make this calculation and grouping
somehow?

Thanks for any advice,

Aaron.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 53
Default Dividing range of numbers automatically


Slashman wrote:
Hi,

On my spreadsheet I have a column with ten numbers. The numbers are
errors based on a calculation. What I manually do is look at the
numbers and divide them into 1 2 3 4 or 5 ranges.

E.G.

1 0
2 1.4
3 1.2
4 1
5 1
6 1
7 0.5
8 0.5
9 0.2
10 0


In the above example I would manually make the groupings:

1-3 = 1.4
4-6 = 1
7-8 = 0.5
9-10 = 0.2

and in this case group the errors into 4 groups.

Another example:

1 0
2 0
3 0
4 0
5 0
6 1
7 1
8 1
9 1
10 1

I would make the groupings:

1-5 = 0
6-10 = 1

and in this case group the errors into 2 groups.

And one more example:

1 0.5
2 0.1
3 0.1
4 0.2
5 0.2
6 0.8
7 0.7
8 0.8
9 1
10 1.5

In this example I would group the numbers as such:

1 = 0.5
2-3 = 0.1
4-5 = 0.2
6-9 = 1
10 = 1.5

and in this case group the errors into 5 groups.

Can excel intuitively by formula, make this calculation and grouping
somehow?

Thanks for any advice,

Aaron.


Can nobody lend a solution for this problem? Is it impossible or just
very hard?

Cheers,

Aaron.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Dividing range of numbers automatically

I think the problem is that there seems to be no hard and fast rules.
In your first example, why isn't item 1 grouped in with items 9 and 10
- do you always have to take them in the sequence quoted?

The increments between your groupings are not linear, but seem to be
based on the largest value of a particular group - which comes first,
though, the grouping or the value?

Maybe if you can try to describe more clearly how you manually allocate
the items to the groups, then some flexible formula may emerge - I'm
not sure how "intuition" and "formula" can co-exist.

Hope this helps.

Pete

Slashman wrote:
Slashman wrote:
Hi,

On my spreadsheet I have a column with ten numbers. The numbers are
errors based on a calculation. What I manually do is look at the
numbers and divide them into 1 2 3 4 or 5 ranges.

E.G.

1 0
2 1.4
3 1.2
4 1
5 1
6 1
7 0.5
8 0.5
9 0.2
10 0


In the above example I would manually make the groupings:

1-3 = 1.4
4-6 = 1
7-8 = 0.5
9-10 = 0.2

and in this case group the errors into 4 groups.

Another example:

1 0
2 0
3 0
4 0
5 0
6 1
7 1
8 1
9 1
10 1

I would make the groupings:

1-5 = 0
6-10 = 1

and in this case group the errors into 2 groups.

And one more example:

1 0.5
2 0.1
3 0.1
4 0.2
5 0.2
6 0.8
7 0.7
8 0.8
9 1
10 1.5

In this example I would group the numbers as such:

1 = 0.5
2-3 = 0.1
4-5 = 0.2
6-9 = 1
10 = 1.5

and in this case group the errors into 5 groups.

Can excel intuitively by formula, make this calculation and grouping
somehow?

Thanks for any advice,

Aaron.


Can nobody lend a solution for this problem? Is it impossible or just
very hard?

Cheers,

Aaron.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 53
Default Dividing range of numbers automatically

Hi Pete,

Yes I know what you mean. As humans, we can logically deduce the answer
easily but try and get a machine to do a seemingly simple task can be
alot harder!!

I have the errors listed 1 through 10 as I have ten setpoints with
increasing weight range. (1gram to 10 grams)

My final statement from the errors is to say: "From 1 gram to 3 grams
the error is 1.4 grams, and from 4 grams to 6 grams the error is 1
gram, and 7 grams to 8 grams the error is 0.5 grams, and from 8 grams
to 10 grams the error is 0.2 grams.

I can have a maximum of 5 groupings of errors.

Therefore I cannot just group the small ones all together like you
suggested.

Hope this clears my situation up a little for you to help.

Cheers,

Aaron.


Pete_UK wrote:
I think the problem is that there seems to be no hard and fast rules.
In your first example, why isn't item 1 grouped in with items 9 and 10
- do you always have to take them in the sequence quoted?

The increments between your groupings are not linear, but seem to be
based on the largest value of a particular group - which comes first,
though, the grouping or the value?

Maybe if you can try to describe more clearly how you manually allocate
the items to the groups, then some flexible formula may emerge - I'm
not sure how "intuition" and "formula" can co-exist.

Hope this helps.

Pete

Slashman wrote:
Slashman wrote:
Hi,

On my spreadsheet I have a column with ten numbers. The numbers are
errors based on a calculation. What I manually do is look at the
numbers and divide them into 1 2 3 4 or 5 ranges.

E.G.

1 0
2 1.4
3 1.2
4 1
5 1
6 1
7 0.5
8 0.5
9 0.2
10 0


In the above example I would manually make the groupings:

1-3 = 1.4
4-6 = 1
7-8 = 0.5
9-10 = 0.2

and in this case group the errors into 4 groups.

Another example:

1 0
2 0
3 0
4 0
5 0
6 1
7 1
8 1
9 1
10 1

I would make the groupings:

1-5 = 0
6-10 = 1

and in this case group the errors into 2 groups.

And one more example:

1 0.5
2 0.1
3 0.1
4 0.2
5 0.2
6 0.8
7 0.7
8 0.8
9 1
10 1.5

In this example I would group the numbers as such:

1 = 0.5
2-3 = 0.1
4-5 = 0.2
6-9 = 1
10 = 1.5

and in this case group the errors into 5 groups.

Can excel intuitively by formula, make this calculation and grouping
somehow?

Thanks for any advice,

Aaron.


Can nobody lend a solution for this problem? Is it impossible or just
very hard?

Cheers,

Aaron.


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
Automatically generating a number range Alyssa C. Excel Worksheet Functions 2 September 5th 06 11:24 PM
How do I use a range of numbers in an if statement? pbeattie Excel Worksheet Functions 2 October 10th 05 10:36 PM
Count comma separated numbers, numbers in a range with dash, not t Mahendra Excel Discussion (Misc queries) 0 August 8th 05 05:56 PM
get a count of numbers whose value falls within a given range LyleB_Austin Excel Worksheet Functions 5 August 3rd 05 04:38 PM
How to add one number to a range of numbers BatonRougeguy Excel Worksheet Functions 1 February 16th 05 06:47 AM


All times are GMT +1. The time now is 01:53 AM.

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"