Forum Discussion
SpaceAge
Mar 07, 2025Copper Contributor
Matching columns in two spreadsheets
I have a larger spreadsheet with email addresses in one column and a lot of other demographic data in the other columns. I have a second, smaller, spreadsheet also with email addresses in one column....
SpaceAge
Mar 10, 2025Copper Contributor
Thanks for these, but they seem too complicated. I was able to use XMATCH to find the records I wanted (in the larger database, all the records have record numbers in the first column). Now I need to know how to return the results of an IF function so that if the logic test succeeds, the output is to copy the row of cells in the row in which the match occurred.
OliverScheurich
Mar 10, 2025Gold Contributor
=XLOOKUP(I2,$A$2:$A$30,$C$2:$G$30)
Because you have access to XMATCH you could apply XLOOKUP for the expected results. XLOOKUP works between 2 spreadsheets as well.