Create a formula in cell G21 that returns the reward you receive if you find an item with a cetain weight | |||||||||
Example 1: | You find a 2,5 gram Diamond, you receive 200 € | ||||||||
Example 2: | You find a 7 gram Gold Nugget, you receive 30 € | ||||||||
the maximum weight that can be entered is 20 grams | |||||||||
Unfortunate circumstances dictate that only one lookup table can be used | |||||||||
Item found | weight up to (gr) | Reward (€) | Choose Item: | Gold Nugget | |||||
Diamond | 1 | 100 | Enter Weight: | 10 | |||||
Diamond | 3,5 | 200 | |||||||
Diamond | 5 | 350 | |||||||
Diamond | 10 | 400 | Your reward: | ||||||
Diamond | 20 | 500 | |||||||
Gold Nugget | 3 | 10 | |||||||
Gold Nugget | 7,5 | 20 | wrong solution: | 30 | |||||
Gold Nugget | 10 | 30 | =XLOOKUP(G17&G18;Table1[Item found]&Table1[weight up to (gr)];Table1[Reward (€)]) | ||||||
Gold Nugget | 20 | 50 | |||||||
Silver Nugget | 2 | 5 | only works if the exact weight that is | ||||||
Silver Nugget | 5 | 10 | present in the weight column is entered. | ||||||
Silver Nugget | 10 | 15 | |||||||
Silver Nugget | 15 | 20 | |||||||
Silver Nugget | 20 | 30 | |||||||
The method using the "&" described all over the internet | |||||||||
do not work here as the second value is not always exactly the value in the weight lookup column |