Forum Discussion
INDEX MATCH picking up wrong/duplicate value when using with excel table? MS Office 2021
- May 16, 2023
amjad1987 I'd say that the formulas in O, P and Q are wrong and that they produce the correct result sometimes, only by chance.
Wrong formula:
=IFERROR(INDEX(Main[Style No.],MATCH($N18,Main[PO/SO No.]),0),"")
Correct formula:
=IFERROR(INDEX(Main[Style No.],MATCH($N18,Main[PO/SO No.],0)),"")
Thus, move the right parenthesis as indicated and it should work as desired.
amjad1987 I'd say that the formulas in O, P and Q are wrong and that they produce the correct result sometimes, only by chance.
Wrong formula:
=IFERROR(INDEX(Main[Style No.],MATCH($N18,Main[PO/SO No.]),0),"")
Correct formula:
=IFERROR(INDEX(Main[Style No.],MATCH($N18,Main[PO/SO No.],0)),"")
Thus, move the right parenthesis as indicated and it should work as desired.
- amjad1987May 21, 2023Copper Contributor
Riny_van_Eekelen thanks a lot for your reply. Yes you're right dear it was a little problem of that ) which i just move the right as you indicated and it worked. Actually because it was working when i just started to enter my data so i couldn't notice it.
Problem Solved
Thanks