Grab everything to the left of the first dash, slash, or other separator.
Copy this formula
=TEXTBEFORE(A2, "-")TEXTBEFORE returns the text up to the delimiter; TEXTAFTER returns what's after it. In older Excel, use LEFT with FIND to do the same. Pass a negative instance to count from the end.
=TEXTBEFORE("SKU-2026-A", "-")→SKUText before the first dash.
Legacy (LEFT + FIND)
=LEFT(A2, FIND("-", A2)-1)Use before TEXTBEFORE existed.
TEXTBEFORE returns #N/A; add a 4th argument for a fallback, e.g. the whole string.
Need a formula for your own data?
Describe what you want in plain language and let ExcelGPT write, explain, and verify the formula — free to start, no plugin.