Hi there,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com
ffice
ffice" /><o
></o
>
<o
> </o
>
I am currently trying to implement a program for my work. It is an AFL/NRL Tipping Competition.<o
></o
>
<o
> </o
>
The basic idea is that each week, each person is designated 1 of 16 AFL teams and 1 of 16 NRL teams to be drawn at random. To save time and effort of drawing out each person's tips each week with a barrel, my bosses decided to see if I could implement it into a computed form.
<o
> </o
>
My plan is to randomly generate two numbers for each person, one for their AFL team and one for their NRL team, between 1-16. I have that part working fine, with the formula: =INT(<?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com
ffice:smarttags" /><st1
lace w:st="on">RAND</st1
lace>()*(17-1)+1)
<o
> </o
>
The problem is, I cannot convert that random number into which team it represents.
For AFL, 1 = Blues, 2 = Bombers, 3 = Bulldogs etc etc.
<o
> </o
>
I tried to use consecutive IF statements, but it turns out you can only use 8 consecutive IF statements in a single cell. I then tried to use VLOOKUP and HLOOKUP but I couldn’t figure them out and it did not return the value I wanted.
<o
> </o
>
Can anyone possibly help me with this? The layout sort of sits like this..
<o
> </o
>
Name 1……AFL Team……NRL Team
Name 2……AFL Team……NRL Team
Name 3……AFL Team……NRL Team
Name 4……AFL Team……NRL Team
Name 5……AFL Team……NRL Team
Any help would be greatly appreciated, thankyou.
<o
I am currently trying to implement a program for my work. It is an AFL/NRL Tipping Competition.<o
<o
The basic idea is that each week, each person is designated 1 of 16 AFL teams and 1 of 16 NRL teams to be drawn at random. To save time and effort of drawing out each person's tips each week with a barrel, my bosses decided to see if I could implement it into a computed form.
<o
My plan is to randomly generate two numbers for each person, one for their AFL team and one for their NRL team, between 1-16. I have that part working fine, with the formula: =INT(<?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com
<o
The problem is, I cannot convert that random number into which team it represents.
For AFL, 1 = Blues, 2 = Bombers, 3 = Bulldogs etc etc.
<o
I tried to use consecutive IF statements, but it turns out you can only use 8 consecutive IF statements in a single cell. I then tried to use VLOOKUP and HLOOKUP but I couldn’t figure them out and it did not return the value I wanted.
<o
Can anyone possibly help me with this? The layout sort of sits like this..
<o
Name 1……AFL Team……NRL Team
Name 2……AFL Team……NRL Team
Name 3……AFL Team……NRL Team
Name 4……AFL Team……NRL Team
Name 5……AFL Team……NRL Team
Any help would be greatly appreciated, thankyou.