Formula Library

Excel Formula To Extract Query Param User_Id From Url In Webhook Payload Text

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

Quick answer

Extract query param user_id from url in webhook payload text.

Unified formula

ExcelWPS
=LET(q,IFERROR(TEXTAFTER(A2,"?"),""),pairs,TEXTSPLIT(q,"&"),m,FILTER(pairs,LEFT(pairs,LEN("user_id="))="user_id="),IFERROR(TEXTAFTER(INDEX(m,1),"="),""))
View platform differences

Google Sheets

=IFERROR(REGEXEXTRACT(A2, "(?:[?&])user_id=([^&#]+)"), "")

How it works

Need a custom version?

Related formulas