Matrix lookup with multiple criteria

I've been trying to write a function to solve this issue: the answers to two questions gives you a third answer based on a matrix with multiple criteria.  I've been able to solve within Google Sheets and Excel using Index, Match, Match however this does not seem to work in AppSheet.  

Here is my matrix of possible answers:

IDFNWSNWA1NWA2NWA3NWA4NWA5
1xNone1-10 DB1-101-301-100
2None00000
31-1012333
41-3012344
51-10012345

I've been at this for a few days now so any help would be appreciated.  Thank You!

0 3 173
3 REPLIES 3
Top Labels in this Space