Sum up campaigns with RegEx
One last task has been assigned to you by the digital marketing director. The digital marketing director would like a report of all the campaigns, regardless of source or ad group.
Aggregating campaign totals using regular expressions is so useful because of the variety of sources that campaigns can come from. For example, you may be looking at two different digital marketing firms: one for search engines (Google & Bing), and the other for social media (Facebook). All of this data would be entered by the two different parties into a single table.
In this exercise, we will explore how to get the total cost and cost-per-click (CPC) for each campaign, regardless of source.
This exercise is part of the course
Marketing Analytics in Google Sheets
Exercise instructions
- Write the regular expression that will match the campaign and its variants in the cells
F3:F6
. - Find the total for each campaign using
SUM()
,FILTER()
, andREGEXMATCH()
, in the rangeG3:G6
. - Repeat the last step, but find the average CPC in the range
H3:H6
.
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
