
Originally Posted by
Gol
One of the things I had problems with while doing this is implementing anything in cross-reference style (ie, this text matches this number). I have some pretty nasty IF statements to do what I needed to do, but I didn't really want to use that method for weapon types. I'll look into it again, though.
Have you looked at hlookup() and vlookup() ? That's what I've used for that functionality in most of my spreadsheets.
For instance, I have a hidden sheet with all of the classes and saves per level.
Code:
Fighter Fort Reflex Will BAB
1 2 0 0 1
2 3 0 0 2
3 3 1 1 3
4 4 1 1 4
5 4 1 1 5
6 5 2 2 6
7 5 2 2 7
8 6 2 2 8
9 6 3 3 9
10 7 3 3 10
11 7 3 3 11
12 8 4 4 12
13 8 4 4 13
14 9 4 4 14
15 9 5 5 15
16 10 5 5 16
17 10 5 5 17
18 11 6 6 18
19 11 6 6 19
20 12 6 6 20
Then, in my saves table, I do a lookup based on class level
Fortitude: =IF($U7>0,VLOOKUP($U7,Saves!$A$68:$D$87,2),0)
Reflex: =IF($U7>0,VLOOKUP($U7,Saves!$A$68:$D$87,3),0)
Will: =IF($U7>0,VLOOKUP($U7,Saves!$A$68:$D$87,4),0)
So in your case, the hidden sheet would be something like:
Code:
Weapon min max crrng crmlt
Khopesh 1 8 19 3
GreatAxe 1 12 20 3
And to calculate average damage per swing, you'd have
=average(1*vlookup(A1,weapons!A1:A100,2),vlookup(A 1,weapons!A1:A100,2)*vlookup(A1,weapons!A1:A100,3) ))
And of course, if you've already done all of this, nevermind my ramblings