Let's say I have 2 sheets. One with character stats and one with the tables for the character data.
One sheet is called "Character" and it has 4 columns of data: Level, Class, HP and Mana.
| I | J | K | L | |
|---|---|---|---|---|
| 1 | Level | Class | HP | Mana |
| 2 | 1 | Warrior | (depending on the level, it select the appropriate row) | (depending on the level, it select the appropriate row) |
| 3 | 2 | Rogue | (depending on the level, it select the appropriate row) | (depending on the level, it select the appropriate row) |
| 4 | 8 | Mage | (depending on the level, it select the appropriate row) | (depending on the level, it select the appropriate row) |
The Class is manually specified, but then I want to access the data from another sheet, depending on the chosen Class.
The other sheet is called "Stats". The data is laid out as follows:
| A | B | C | |
|---|---|---|---|
| 1 | |||
| 2 | Level | HP | Mana |
| 3 | 20 | 40 | |
| 4 | 30 | 50 | |
| 5 | etc | etc | etc |
In Stats I have created named ranges for HP and Mana.
I want to use Level from Character to return the correct HP or Mana value that is listed for that level in Stats