Formula Library

Excel Formula To Extract Url Path Depth 4 In Transaction Text

Extract URL path information in transaction text with a ready-to-use formula for Excel, Google Sheets, and WPS.

Quick answer

Extract url path depth 4 in transaction text.

Unified formula

ExcelWPS
=LET(u,A2, IFERROR(TEXTAFTER(TEXTBEFORE(u, "?"), "//"), u))
View platform differences

Google Sheets

=IFERROR(REGEXEXTRACT(A2, "https?://[^/]+(/[^?#]*)"), "/")

How it works

Need a custom version?

Related formulas