Excel Formula To Return Text Before A Dash In a cell
Return text before a dash a cell with a ready-to-use formula for Excel, Google Sheets, and WPS.
快速答案
统一公式
ExcelWPS
=TEXTBEFORE(A2, "-")查看平台差异
Google Sheets
=INDEX(SPLIT(A2, "-"), 1)使用说明
- 将示例区域(如 A2:A)替换为你的实际区域。
- 保持与示例一致的列顺序。
- 向下填充以应用到所有行。