Formula Library

Excel Formula To Pull Text Before A Pipe In a cell

Pull text before a pipe a cell with a ready-to-use formula for Excel, Google Sheets, and WPS.

Quick answer

Pull text before a pipe a cell.

Unified formula

ExcelWPS
=TEXTBEFORE(A2, "|")
View platform differences

Google Sheets

=INDEX(SPLIT(A2, "\|"), 1)

How it works

Need a custom version?

Related formulas