How do you lookup multiple values in different columns based on variable criteria?
Essentially, I'd like to be able to do a Vlookup but instead of searching for one value only, search for multiple values in separate columns. A smaller version of my current spreadsheet as an example...
Attack Type -> |
Fire | Water | Grass |
---|---|---|---|
Fire | 1/2x | 2x | 1/2x |
Water | 1/2x | 1/2x | 2x |
Grass | 2x | 1/2x | 1/2x |
Fire/Water | 1/4x | 1x | 1x |
Fire/Grass | 1x | 1x | 1/4x |
Grass/Water | 1x | 1/4x | 1x |
The headers are the attack types and the list of types to the left are the receiving Pokemon. Fire does half damage (1/2x) to fire types, Water does double damage (2x) to fire types, etc. I'd like to be able to search for specific damages for each type. For example, I'd like to find a Typing that recieves half (1/2x) damage from Fire-type attacks but also recieves double (2x) from Grass-type attacks. I do want more than just two search criteria though seeing as the actual table is much, much larger.
I've tried assigning number values to each damage multiplier and then merging all of them together for a specific typing and doing a VLOOKUP based on checkboxes determining what damage multiplier I want in a few specific types, the rest being filled in to the standard of 1x but the result isn't correct most of the time.
Numbers-OTHER, Mac OS X (10.7.4)