← All comparisons

TEXTBEFORE/TEXTAFTER vs LEFT/MID/RIGHT: delimiter or position

Every 'extract part of a cell' task used to mean LEFT/MID/RIGHT wrapped around FIND arithmetic. TEXTBEFORE and TEXTAFTER say what you mean — 'the part before the dash' — but they're new enough that portability is the real decision.

The differences at a glance

TEXTBEFORETEXTAFTERLEFTMIDRIGHTFIND
Cut at a delimiterOne readable call: TEXTBEFORE(A2,"-")LEFT(A2,FIND("-",A2)-1) — the -1 is on you
Nth or LAST occurrenceBuilt-in argument (negative counts from the end)SUBSTITUTE/CHAR trickery
Delimiter missingOptional if_not_found argumentFIND throws #VALUE!; wrap in IFERROR
Fixed-position slicing (chars 3-6)Wrong toolExactly what MID is for
AvailabilityExcel 365, Sheets, LibreOffice 24.8+ (with executed QUIRKS — see their pages)Universal, verified everywhere

Which should you use?

Compatibility (from executed tests)

LEFT/MID/RIGHT/FIND execute identically in every version of all three apps we test. TEXTBEFORE/TEXTAFTER first appear in LibreOffice 24.8 and carry verified quirk flags there — our executed cases found edge-case behavior differences vs Excel (see each function's page for the failing case), so test delimiter-missing paths when a sheet must round-trip.

Example formulas

Modern: domain from email=TEXTAFTER(A2,"@")
Classic equivalent=MID(A2,FIND("@",A2)+1,100)
Between parentheses, chained=TEXTBEFORE(TEXTAFTER(A2,"("),")")

Full per-version details on each function page: TEXTBEFORE · TEXTAFTER · LEFT · MID · RIGHT · FIND.