開始使用免費開始

Filter table using REGEXMATCH

Your marketing director wants a list of only the competitor campaigns on their desk in an hour. Though this is last notice, you know that you can combine your knowlege of regular expressions and the FILTER() function to get the refined list to your marketing director in the next hour.

In this exercise, you will be combining the functions FILTER() and REGEXMATCH() to generate a list of only the competitors campaigns. This exercise will help develop your understanding of how useful regular expressions are, as they can take care of minor mistakes in the spelling or structure of the campaign names - if the regex is set up properly, of course.

本練習屬於課程

Google Sheets 的行銷分析

檢視課程

練習說明

  • Write the appropriate regular expression in cell H2 that will return all competitor campaigns (i.e. campaign names containing Competitors or Competitor).
  • In cell G5, add the REGEXMATCH() function using the campaigns column as the cells of interest and cell H2 as the regular expression.
  • Wrap the REGEXMATCH() function written in the previous step with a FILTER() function to filter for the entire table. Don't forget to provide the range to filter in your FILTER() function!

動手互動練習

將理論付諸實踐,立即體驗我們的互動練習

開始練習