The sample matching documentation for Google Sheets did not help. I have been reading and searching for a long time and cannot find exactly this problem. It may be difficult for me to find the right search terms, but here is the problem:
I have several numbers (part numbers) that follow this format: ##-####
Categories can be identified by numbers 50-03## , that is, 50-03## will be one product category, and the remaining 2 digits are model specific.
I tried to run this:
=countif(E9:E13,"50-03[123][012]*")
( E9:E13 contains the part number formatted as text. If I format it in any other way, the values โโwill be corrupted because Google Sheets thinks I'm writing a date or trying to do arithmetic.)
This returns 0 every time if I shouldn't have changed to:
=countif(E9:E13,"50-03*")
So it seems like wildcards work, but pattern matching doesn't work?
source share