I have an array as below:
I also have 2 variables named;
(1) TOO (to indicate Row)
(2) FROM (to indicate column)
I want my variable to be the reference for my array
e.g if TOO= 1
FROM=2
would return 10 (A,B)
TOO= 3
FROM=4
would return 25 (C,D)
TOO= 3
FROM=5
would return 30 (C,E)
How can I do this please?
Code:
. [B]A B C D E[/B] [B]A[/B] 0 10 20 30 40 [B]B[/B] 10 0 15 20 30 [B]C[/B] 20 15 0 25 30 [B]D[/B] 30 20 25 0 40 [B]E[/B] 40 30 30 40 0
(1) TOO (to indicate Row)
(2) FROM (to indicate column)
I want my variable to be the reference for my array
e.g if TOO= 1
FROM=2
would return 10 (A,B)
TOO= 3
FROM=4
would return 25 (C,D)
TOO= 3
FROM=5
would return 30 (C,E)
How can I do this please?
Comment