-1

I would like to return a value 4.42295, if i choose MYR. If I choose SGD will return 1.32963 as picture show below. I had tried some formula in the picture but seem like cannot solve what i need. Thank for helping me.

enter image description here

2
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.
    – Community Bot
    Commented Feb 11 at 14:22
  • Change order of arguments in INDEX function, row number first, then column number.
    – MGonet
    Commented Feb 11 at 14:24

1 Answer 1

0

If I have understood correctly, you need to use the following formula in order to accomplish the desired output:

enter image description here


=IFERROR(INDEX($C$7:$E$19,MATCH(1,(G2>=A7:A19)*(G2<=B7:B19),0),MATCH(I2,C6:E6,0)),0)

Or, If using MS365 then use XLOOKUP()+FILTER() or Double XLOOKUP()

=XLOOKUP(1,(G2>=A7:A19)*(G2<=B7:B19),FILTER(C7:E19,C6:E6=I2,""),"")

Or,

=XLOOKUP(1,(G2>=A7:A19)*(G2<=B7:B19),XLOOKUP(I2,C6:E6,C7:E19))

However, from the screenshot in OP, it seems you are using Google-Sheets if so then use the following formula:

enter image description here


=IFNA(FILTER(XLOOKUP(I2,C6:E6,C7:E19,0),(G2>=A7:A19)*(G2<=B7:B19)),0)

6
  • 1
    Thanks, it exactly what I'm need it. Commented Feb 12 at 2:23
  • hi Mayukh Bhattacharya, wondering how to make this Filter XLookup working with Arrayformula? Commented Feb 18 at 5:28
  • @AnakinTeow but why do you need it with ARRAYFORMULA() when it is already working without it Commented Feb 18 at 6:23
  • 1
    Hi Mayukh, attached with the google sheet link docs.google.com/spreadsheets/d/… Commented Feb 26 at 14:44
  • 1
    Hi Mayukh, thanks a lot. Commented Feb 27 at 14:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .