Lookup function HELP

Copper Contributor

I am trying to merge a couple of data sources that have differing text descriptions for the same item.

 

One set has items identified by a UPC number only

UPC
0085365000415
0085365000417
0085365000416

 

The other set has the UPC included in the same cell with the product description

11.5 FO PROTEIN DRNK CHOC TRFFL (853650004153)
11.5 FO PROTEIN DRNK VAN BEAN (853650004177)
11.5 FO PROTEIN DRNK CAFE AU LAIT (853650004160)

 

Is there a function I can use to bring the Description and UPC information back to the row with just the UPC information?   I could not see that VLOOKUP would allow me to check and see if a range "contains" a number.....

 

THANKS !

Doug K

1 Reply
If the set with UPC and description is in Column B, starting with B2, you may use this formula in C2 to extract the UPC:
=SUBSTITUTE(RIGHT(B2,
LEN(B2)-FIND(“(“,B2)),
“)”,””)