I have a long list of actions.
Each action has an X coordinate, and a Y coordinate.
The pitch on which these actions occur is divided into 15 zones.
What I want to do is;
If an action's X and Y coordinates are within certain values, it should be marked as "Zone 1".
If an action's X and Y coordinates are within certain values, it should be marked as "Zone 2".
... goes on up to "Zone 15".
For each zone I have Xmin, Xmax, Ymin and Ymax.
So, 4 variables in a nested if and function is what I tried, and failed
The exact coordinates and zones are as follows:
Zones X_min X_max Y_min Y_max
1 0.0 5.8 36.8 50.0
2 0.0 5.8 50.0 63.2
3 0.0 17.0 21.1 36.8
4 5.8 17.0 36.8 50.0
5 5.8 17.0 50.0 63.2
6 0.0 17.0 63.2 78.9
7 0.0 17.0 0.0 21.1
8 0.0 17.0 78.9 100.0
9 17.0 33.0 0.0 21.1
10 17.0 33.0 21.1 78.9
11 17.0 33.0 78.9 100.0
12 33.0 50.0 0.0 50.0
13 33.0 50.0 50.0 100.0
14 50.0 100.0 0.0 50.0
15 50.0 100.0 50.0 100.0
The column titles appear a little crooked but I guess it give the idea...
Bookmarks