Forum Discussion
EK_Blackwell
Sep 07, 2021Copper Contributor
IF THEN WHERE statement?
I have two sheets in a workbook. I need to set a cell's value where the ID on one sheet equals the ID on a different sheet. But there's not always going to be a match, they don't line up equally. Is...
- Sep 07, 2021
As a comment, with XLOOKUP we may return entire spill at once
=XLOOKUP(A2:A10,Sheet2!B2:B100,Sheet2!A2:A100, "no such")
Juliano-Petrukio
Sep 07, 2021Bronze Contributor
Please consider convert to number the ID values
=INDEX(Sheet2!A2:A17,MATCH(A2,Sheet2!B2:B17,0),1)
- EK_BlackwellSep 08, 2021Copper ContributorThank you, everyone! The formula is working!
- Juliano-PetrukioSep 08, 2021Bronze ContributorAnytime
I would like to ask you please to flag the post as answered.