Forum Discussion
MrStern
Mar 03, 2020Copper Contributor
Lookup across multiple tables
Hi, I have a sales table with a unique sales entry number for each sale. I also have several placement tables. These tables indicate the unique sales entry number for the placement. What I nee...
Savia
Mar 03, 2020Iron Contributor
I don't think there's a much simpler way than just making three INDEX/MATCH and using IFERROR to determine which one works:
=IFERROR(IFERROR(INDEX(Tbl_Accrual[Entry No],MATCH(Tbl_Sales[@[Placement number]],Tbl_Accrual[Placement],0)),INDEX(Tbl_Current[Entry No],MATCH(Tbl_Sales[@[Placement number]],Tbl_Current[Placement],0))),INDEX(Tbl_Cutoff[Entry No],MATCH(Tbl_Sales[@[Placement number]],Tbl_Cutoff[Placement],0)))
=IFERROR(IFERROR(INDEX(Tbl_Accrual[Entry No],MATCH(Tbl_Sales[@[Placement number]],Tbl_Accrual[Placement],0)),INDEX(Tbl_Current[Entry No],MATCH(Tbl_Sales[@[Placement number]],Tbl_Current[Placement],0))),INDEX(Tbl_Cutoff[Entry No],MATCH(Tbl_Sales[@[Placement number]],Tbl_Cutoff[Placement],0)))