I am using the following data:
cat1-001A
cat1-001B
cat1-001C
dog2-001A
etc.
the query I used is
=query(sheet1!A1:A,"select A where A is like '%cat%'",1)
Using this query pulls data as cat 1-3. Is there a way within the query to trim the text to only return the word cat? I do not want the -1, -2, -3.
so the value returned will be cat.