COUNTIF with partial criteria match

Copper Contributor

Hi,

I have made a spreadsheet for physical counting inventory, using a barcode scanner.

Column A contains each item number, subsequent columns list item description, location, and cross reference part numbers.

I use COUNTIF to count the number of times an item # is entered in the barcode scanner column to count inventory.

OK, so some of my items have barcodes with the cross reference numbers only, which are sometimes comma separated in the same cell in my spreadsheet, so count if does not match it.

I've tried

 

 

=COUNTIF(A1:A100,"*"&E1&"*")

 

 

which works exactly opposite of what I need.

I need the wildcards on range, not the criteria.

i.e. E1 contains two numbers: 5555, 4444.

I have two of 5555, So I scan them into both A1 and A2.

 

The above formula works when my scanned number includes the complete text in E1 plus some, like 125555, 4444789; but I need it to work when say at least 5 characters match.

 

Is this possible or do I need to separate my part numbers to individual cells?

Thanks

EDIT: I've attached the actual spreadsheet.

0 Replies