Italian Excel formula
=SE.ERRORE(SINISTRA(A2;TROVA("_";A2)-1);A2)
Keep only the text before a symbol.
=SE.ERRORE(SINISTRA(A2;TROVA("_";A2)-1);A2)
=IFERROR(LEFT(A2,FIND("_",A2)-1),A2)
amitraz_123 becomes amitraz.
Common errorIf #NAME? appears, check function language and separators.
The formula finds the character and takes the text on the left.
IFERROR returns the original text if the character is missing.
Yes, replace _.
It returns the original text.