시작하기무료로 시작하기

Rename all ad groups using REGEXREPLACE()

Once again, the marketing director has put you in charge of complying with the social media marketing team's naming convention. This time, you are tasked with changing the ad group names to be more descriptive, so that the ad group names are a bit more informative.

To achieve this, you will need to add the word 'Buyers' to the end of the ad group name, while removing the s from the end of the word (e.g. Mugs will become Mug Buyers). Recall that using a $ can match the end of a string. - For example, ing$ will match the ing in flying.

Much as in the previous exercise, your formula will need to make use of IF(), REGEXMATCH(), and REGEXREPLACE().

이 연습은 강의의 일부입니다

Google Sheets로 하는 마케팅 분석

강의 보기

연습 안내

  • Write a regular expression in cell I2 that will match the trailing s in words like Mugs and Sweaters. Use the 'flying' example above as a starting point for your pattern!
  • In cell F2, add an IF() statement:
    • Test if cell C2 contains your trailing s pattern $I$2.
    • When the argument is TRUE, replace the s (identified using your pattern) with " Buyers" (don't forget the space!)
    • When it is FALSE, return the string "No Match".
  • Apply the formula to the remainder of the cells, F3:F29.

실습형 인터랙티브 연습문제

이론을 실습으로 바꾸는 인터랙티브 연습 중 하나를 만나보세요

연습 시작