ComeçarComece de graça

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().

Este exercício faz parte do curso

Marketing Analytics in Google Sheets

Ver curso

Instruções do exercício

  • 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.

Exercício interativo prático

Transforme a teoria em ação com um de nossos exercícios interativos

Começar o exercício