开始使用免费开始使用

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.

动手互动练习

通过我们的互动练习之一,将理论转化为实践

开始练习