Modify the campaign ID to include source
In this exercise, you will build the second, and final, part of the ID.
This section of the ID will indicate the source by prepending the first three letters of the source to the campaign-ad group IDs created in the previous lesson.
This exercise is part of the course
Marketing Analytics in Google Sheets
Exercise instructions
- Add a regular expression in cell
I2
that will extract the first three characters of a string. - In cell
E2
:- Use
REGEXEXTRACT()
to extract the characters from the string in cellA2
matching the regular expression in cellI2
(don't forget the absolute reference!). - In the same cell, use
&
characters to append an underscore,"_"
, and the contents from cellB2
to the end of the extracted string.
- Use
- Apply the formula to the remainder of the cells in the column,
E3:E29
.
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
