1 min readfrom Microsoft Excel | Help & Support with your Formula, Macro, and VBA problems | A Reddit Community

What's the best way to find the number in a cell that exists anywhere in another cell?

tldr: what I want is effectively =XLOOKUP(1, SEARCH([@UPC],UPC[UPCNumber], <wildcard>),UPC[ItemNumber]) but Excel doesn't let you wildcard the start number of the SEARCH function.

The company who is doing planograms for us is using a program that is inconsistently representing UPCs, forcing it to 10 digits in inconsistent ways depending on leading zeroes. UPCs are in both planogram and system exports as Numbers.

E.g., Full UPC, where bold numbers are the part that shows in their planogram files:

1-23456-78901-2

0-12345-67890-1

0-01234-56789-0

9-01234-56789-1

When it comes to scanning a barcode, the only digit not required is the one after the last dash, so what they're giving us is not enough. I'm trying to use their shortened code to search anywhere in a full 12 digit UPC export, with the intent of returning a consistent UPC that can be used to generate a barcode for order guides.

Thanks in advance, all!

submitted by /u/CorporateOilClown
[link] [comments]

Want to read more?

Check out the full article on the original site

View original article

Tagged with

#Excel alternatives for data analysis
#natural language processing for spreadsheets
#generative AI for data analysis
#Excel compatibility
#Excel alternatives
#rows.com
#financial modeling with spreadsheets
#no-code spreadsheet solutions
#UPC
#XLOOKUP
#SEARCH
#barcode
#planogram
#wildcard
#12 digit UPC
#leading zeroes
#shortened code
#search anywhere
#inconsistent representation
#order guides