My excel file can be downloaded here.
In my spreadsheet, the user can have a maximum of 3 inputs that is:
And based on the inputs, it should be able to do a strict (or exact as we call it) match from the data given within. Meaning if:
Age AND Day matches BUT Pickup Toys doesn't then return nothing.
In addition to this, the user can also have 2 inputs i.e.:
In case of 2 inputs say Age AND Pickup Toys are entered, we see that Day is left blank. So the search formula (In Prize Status cell to retrieve data about it) should match it exactly.
Meaning that if Age AND Pickup Toys matches BUT Day in the table is something else other than blank (i.e., in the table it contain some values unlike the input) - such a match should be strictly rejected.
I have tried doing it with MATCH, INDEX, and SUMPRODUCT functions but the dilemma is sometimes it's working and sometimes not.
<tbody>
</tbody>
Thanks,
Jerry
In my spreadsheet, the user can have a maximum of 3 inputs that is:
- Age
- Day
- Pickup Toys
And based on the inputs, it should be able to do a strict (or exact as we call it) match from the data given within. Meaning if:
Age AND Day matches BUT Pickup Toys doesn't then return nothing.
In addition to this, the user can also have 2 inputs i.e.:
- Age AND Pickup Toys (while Day is left blank)
- or, Age AND Day (while Pickup Toys is left blank)
- or, Pickup Toys AND Day (while Age is left blank)
In case of 2 inputs say Age AND Pickup Toys are entered, we see that Day is left blank. So the search formula (In Prize Status cell to retrieve data about it) should match it exactly.
Meaning that if Age AND Pickup Toys matches BUT Day in the table is something else other than blank (i.e., in the table it contain some values unlike the input) - such a match should be strictly rejected.
I have tried doing it with MATCH, INDEX, and SUMPRODUCT functions but the dilemma is sometimes it's working and sometimes not.
A | B | C | D | E | F | |
---|---|---|---|---|---|---|
1 | INPUT DATA INTO THE YELLOW FIELDS | THESE 2 CELLS BELOW SHOULD AUTOMATICALLY BE CALCULATED & RETRIEVED FROM THE TABLE BELOW | ||||
2 | Age | Prize Status | ||||
3 | Day | Sunday | What Others are saying | |||
4 | Pickup Toys | Thumbtack | ||||
5 | ||||||
6 | ||||||
7 | Age of Winner | Day | Pickup Items | Prize Status | What Others are saying | |
8 | 14 | Friday | Gun | Available | Cool | |
9 | 32 | Saturday | Ball | Out of Stock | Nice | |
10 | Wednesday | Plane | Out of Stock | You've won a Jackpot! | ||
11 | 18 | Sunday | Top | Available | Nice | |
12 | 21 | PS3 | Available | You've won a Jackpot! | ||
13 | Sunday | Laptop | Available | Woohoo! | ||
14 | Friday | Bike | Out of Stock | You've won a Jackpot! | ||
15 | 63 | Thursday | PS3 | Available | Cool | |
16 | 27 | Saturday | Thumbtack | Out of Stock | Nice | |
17 | 72 | Monday | Ipad | Out of Stock | Woohoo! | |
18 | 14 | Wednesday | Juice Extractor | Available |
<tbody>
</tbody>
Thanks,
Jerry