Aggregate ad group cost-per-click using REGEXMATCH
As a digital marketing professional, you are tasked with determining the effectiveness of the three ad groups - Mugs, Sweaters, and Tee Shirts. You know from experience that average cost-per-click (CPC) is a very good indicator of ad group performance.
Your team decides that they want to keep the new Mugs ad group no matter what, so you would like to see what the average CPC would be, depending on the ad groups chosen.
This exercise is part of the course
Marketing Analytics in Google Sheets
Exercise instructions
- Add regular expressions in cells
H3andH4that will match the respective ad groups listed in cellsG3andG4.- Your expressions should match the first or the second ad group.
- Write a filter for the
CPCcolumn, with the condition for the filter using the regex in cellH3(combined withREGEXMATCH()). - Wrap the filter with an
AVERAGE()to find the average CPC for theMugsandTee Shirtsad groups. - Repeat steps 2 and 3 to get the average CPC for the
MugsandSweatersad groups.
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
Start Exercise