I would agree with deadlyduck. On a second worksheet within your workbook, set up tables with your lookup values (eg "warrior", "archer", etc) in the first column, and what you want the various bonuses to be in the next column. For example, if you have Strength, Speed and Stamina bonuses, it might be:
Type Str Spd Stm
Warrior 4 3 5
Archer 3 2 6
And so on.
Then select the entire table, and define the range name StatLookup (for example).
Then you'd use the formula for stat bonus columns:
=VLOOKUP(<cell of character type>,StatLookup,<StatColumn>,FALSE)
Cell of character type means refer to whichever cell your character's type is held in. You should use dollaring (eg $A$1 instead of A1) to fix the reference to that cell when you wish to copy the formula.
The stat column is the column in the lookup table corresponding to the stat for which you wish to find the bonus, starting at 1 for the lookup key.
Bookmarks