Formula Library

Excel Formula To Extract Subdomain Level 1 From Url In Webhook Payload Text

Extract subdomain segments from URLs in webhook payload text with a ready-to-use formula for Excel, Google Sheets, and WPS.

Quick answer

Extract subdomain level 1 from url in webhook payload text.

Unified formula

ExcelWPS
=LET(host,TEXTBEFORE(TEXTAFTER(A2,"//"),"/"), TEXTBEFORE(host, "."))
View platform differences

Google Sheets

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

How it works

Need a custom version?

Related formulas