1

I need to extract UTM parameters in Google Sheets and I have, I believe, a simple question.

I would like to extract the value associated to the utm_campaign in column A to column B:

Example

If possible, I would like to keep the opportunity to do an Arrayformula for all the lines in column A and avoid using a script to do so.

player0
  • 124,011
  • 12
  • 67
  • 124
Hugo
  • 33
  • 5

2 Answers2

1

Okay, so I found an answer by myself!
Using the formula below works in that case:

=arrayformula(if(A2:A="","",REGEXEXTRACT(A2:A, "utm_campaign"":""([^""]+)""")))
player0
  • 124,011
  • 12
  • 67
  • 124
Hugo
  • 33
  • 5
1

try:

=ARRAYFORMULA(IFNA(REGEXEXTRACT(A2:A, "utm_campaign"":""(\d+)")))

0

player0
  • 124,011
  • 12
  • 67
  • 124