I have a set of holes and within each hole there are sections. (Picture a cardboard tube divided into sections and each section has a number of units in it.)
Each section has a quantity associated with it.
I need to determine the minimum and maximum quantity for these sections.
The exceptions are;
1. that I only look at the holes with more than one section
2. that the last section in the hole be ignored
A sample data set would look like this;
Hole, Section, Quantity
1, 1, 2
1, 2, 7
2, 1, 2
2, 2, 7
3, 1, 15
4, 1, 1
4, 2, 3
4, 3, 10
5, 1, 2
Grouped by Hole
Holes with only one section should be ignored. (In this example, Hole 3 and Hole 5 would be ignored)
Holes with more than one section should ignore the last section in that hole. (In this example, Hole 1, Section 2; Hole 2, Section 2; Hole 4 Section 3 would be ignored)
The Quantities to be looked at should be;
Hole, Section, Quantity
1, 1, 2
2, 1, 2
4, 1, 1
4, 2, 3
The final minimum to maximum quantity results should be;
1 to 3
Thank you in advance for your time.
Each section has a quantity associated with it.
I need to determine the minimum and maximum quantity for these sections.
The exceptions are;
1. that I only look at the holes with more than one section
2. that the last section in the hole be ignored
A sample data set would look like this;
Hole, Section, Quantity
1, 1, 2
1, 2, 7
2, 1, 2
2, 2, 7
3, 1, 15
4, 1, 1
4, 2, 3
4, 3, 10
5, 1, 2
Grouped by Hole
Holes with only one section should be ignored. (In this example, Hole 3 and Hole 5 would be ignored)
Holes with more than one section should ignore the last section in that hole. (In this example, Hole 1, Section 2; Hole 2, Section 2; Hole 4 Section 3 would be ignored)
The Quantities to be looked at should be;
Hole, Section, Quantity
1, 1, 2
2, 1, 2
4, 1, 1
4, 2, 3
The final minimum to maximum quantity results should be;
1 to 3
Thank you in advance for your time.