need help on a formula to compare two columns.

%3CLINGO-SUB%20id%3D%22lingo-sub-2254044%22%20slang%3D%22en-US%22%3Eneed%20help%20on%20a%20formula%20to%20compare%20two%20columns.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2254044%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20trying%20to%20compare%20the%20columns%20of%20two%20sheets%20with%20unique%20content%2C%20so%20that%20if%20the%20data%20in%20columnA%20on%20sheet1%20matches%20the%20data%20in%20the%20columnA%20on%20sheet2%2C%26nbsp%3B%20excel%20will%20return%20the%20data%20in%20columnB%20on%20sheet1%20to%20column%20B%20on%20sheet2%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETrying%20to%20avoid%20using%20a%20vlookup%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2254044%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New Contributor

I'm trying to compare the columns of two sheets with unique content, so that if the data in columnA on sheet1 matches the data in the columnA on sheet2,  excel will return the data in columnB on sheet1 to column B on sheet2

 

Trying to avoid using a vlookup

2 Replies

@bizzle4401 

In B2 on Sheet2:

 

=IFERROR(VLOOKUP(A2,Sheet1!A:B,2,FALSE),"")

 

Fill down.

@bizzle4401 

Perhaps like

=XLOOKUP(A1:A500,Sheet2!A1:A500,Sheet2!B1:B500,"")