I need some help...I've simplified the spreadsheet down to a couple columns, as follows. Essentially, the spreadsheet defines a continuous line in the "X" dimension (imagine if you are plotting this) by giving several points.
So, think of a "Zone" as a continuous line, defined by the points given...Zone 1 below would start at 44.20 and end at 51.40 (there are some points given between the MIN and MAX within the zone, but these may be ignored for this question). The MIN and MAX don't always come at the beginning or end row of the zone.
Some of these zones will intersect/overlap/be completely "encapsulated" by other zones. What I want to do is define these regions... in the example below, I want to define area "A" (or whatever we want to call it) as starting at 5.0 (minimum edge of Zone 1) and ending at 25.0 (maximum edge of Zone 6). Area "B" would be starting at -25.0 and ending at -2.0...in this case, just Zone 5 defines the area (though Zone 4 is "encapsulated" within it).
And, of course, the data is changeable, so the solution must be dynamic as the data changes. Some data sets may have only one Area defined by the data, while some may have 2, 3, 4, 5 non-Contiguous Areas defined by the data.
Bottom Line Questions:
Col A Col B
Zone Position
1 44.20
1 44.20
1 44.92
1 50.68
1 51.40
1 51.40
2 43.00
2 43.00
2 43.00
2 42.56
2 41.24
2 40.80
2 40.80
3 19.80
3 19.80
3 19.80
3 19.50
3 18.90
3 18.60
3 18.60
4 27.60
4 27.60
4 27.60
4 28.49
4 31.15
4 32.04
4 32.04
5 37.04
5 37.04
5 37.04
5 37.94
5 56.76
5 57.65
5 57.65
6 62.65
6 62.65
6 62.65
6 63.34
6 68.17
6 68.85
6 68.85
So, think of a "Zone" as a continuous line, defined by the points given...Zone 1 below would start at 44.20 and end at 51.40 (there are some points given between the MIN and MAX within the zone, but these may be ignored for this question). The MIN and MAX don't always come at the beginning or end row of the zone.
Some of these zones will intersect/overlap/be completely "encapsulated" by other zones. What I want to do is define these regions... in the example below, I want to define area "A" (or whatever we want to call it) as starting at 5.0 (minimum edge of Zone 1) and ending at 25.0 (maximum edge of Zone 6). Area "B" would be starting at -25.0 and ending at -2.0...in this case, just Zone 5 defines the area (though Zone 4 is "encapsulated" within it).
And, of course, the data is changeable, so the solution must be dynamic as the data changes. Some data sets may have only one Area defined by the data, while some may have 2, 3, 4, 5 non-Contiguous Areas defined by the data.
Bottom Line Questions:
- How many seperate (non-contiguous) Areas are there?
- What is the maximum and minimum values for each zone?
Col A Col B
Zone Position
1 44.20
1 44.20
1 44.92
1 50.68
1 51.40
1 51.40
2 43.00
2 43.00
2 43.00
2 42.56
2 41.24
2 40.80
2 40.80
3 19.80
3 19.80
3 19.80
3 19.50
3 18.90
3 18.60
3 18.60
4 27.60
4 27.60
4 27.60
4 28.49
4 31.15
4 32.04
4 32.04
5 37.04
5 37.04
5 37.04
5 37.94
5 56.76
5 57.65
5 57.65
6 62.65
6 62.65
6 62.65
6 63.34
6 68.17
6 68.85
6 68.85