Excel Formula To Remove Fragment From Url In Imported Csv Text
Remove URL fragments in imported csv text with a ready-to-use formula for Excel, Google Sheets, and WPS.
Quick answer
Unified formula
ExcelWPS
=IFERROR(TEXTBEFORE(A2, "#"), A2)View platform differences
Google Sheets
=IFERROR(INDEX(SPLIT(A2, "#"), 1), A2)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.