Formula Library

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

Extract Text Before Last underscore in imported csv text.

Unified formula

ExcelWPS
=TEXTBEFORE(A2, "_", -1)
View platform differences

Google Sheets

=LEFT(A2, FIND("_", A2, LEN(A2)-LEN(SUBSTITUTE(A2, "_", "")))-1)

How it works

Need a custom version?

Related formulas