Forum Discussion
Setting up data for a word merge
- Jan 21, 2022
I agree with Martin_Weiss that this is a classic VLOOKUP problem. Not that I have used VLOOKUP for many years. I have used XLOOKUP ever since it appeared and before that INDEX/MATCH. Now, a lookup by company as foreign key would be
= XLOOKUP(foreignKey, Table1[company], Table1)There are vastly more complicated formulas available in 365 insider that will return an entire table of foreign key matches as a single array formula, but they are not relevant here.
I agree with Martin_Weiss that this is a classic VLOOKUP problem. Not that I have used VLOOKUP for many years. I have used XLOOKUP ever since it appeared and before that INDEX/MATCH. Now, a lookup by company as foreign key would be
= XLOOKUP(foreignKey, Table1[company], Table1)There are vastly more complicated formulas available in 365 insider that will return an entire table of foreign key matches as a single array formula, but they are not relevant here.