Excel Formula To Extract Text Before Last Underscore In Imported Csv Text
Extract Text Before Last underscore in imported csv text with a ready-to-use formula for Excel, Google Sheets, and WPS.
Quick answer
Unified formula
ExcelWPS
=TEXTBEFORE(A2, "_", -1)View platform differences
Google Sheets
=LEFT(A2, FIND("_", A2, LEN(A2)-LEN(SUBSTITUTE(A2, "_", "")))-1)How it works
- Replace the sample range (like A2:A) with your real range.
- Keep the same column order used in the example.
- Fill down to apply the formula to every row.