Level 3Shaping ArraysPractice, 3 min

CHOOSECOLS: only the columns that matter

The task

The social lead wants three columns from this export: Campaign, Spend and Clicks, in that order, for Paid Social only. In H2, FILTER the rows, then pick the columns with CHOOSECOLS.

The data

The starting sheet. Cells outlined in green are where your formulas go.

ABCDEFGHIJ
1DateCampaignChannelImpressionsClicksSpendCampaignSpendClicks
2Oct 1Brand termsPaid Search8,200640$1,150
3Oct 1Lookalike 1%Paid Social21,400410$980
4Oct 1RetargetingPaid Social9,800355$620
5Oct 1Product termsPaid Search12,600520$1,430
6Oct 1Creator collabPaid Social30,500615$1,270
7Oct 1Competitor termsPaid Search5,400190$760
8Oct 1Prospecting videoPaid Social44,100290$1,540
9Oct 1NewsletterEmail3,100240$0