27.13 Marketing and Digital Ads: Campaign ROAS and Cost per Order
Example first. Ruhi Bagale runs fictional digital ad campaigns for a quick-commerce brand and wants to know which campaigns earn back their spend.
Marketing and Digital Ads project — in 30 seconds
What: A Marketing and Digital Ads tracker: one Table tblCampaigns, the calculated column ROAS, KPI cells, a PivotTable by City, a chart and a one-page dashboard.
Why: This is the shape of a real Marketing and Digital Ads report: Total Spend, Overall ROAS, Cost per Order are the numbers a manager reads first.
Tiny example: From 6 rows: Total Spend = ₹85,000, Overall ROAS = 3.95, Cost per Order = ₹89.95.
Marketing and Digital Ads project — 30 सेकंदात
काय: Marketing and Digital Ads चा tracker: tblCampaigns नावाची एक Table, ROAS हा calculated column, KPI cells, City प्रमाणे PivotTable, एक chart आणि एका पानाचा dashboard.
का: खऱ्या Marketing and Digital Ads report चा हाच आकार असतो: Total Spend, Overall ROAS, Cost per Order हे आकडे manager सगळ्यात आधी वाचतो.
छोटं उदाहरण: 6 rows मधून Total Spend = ₹85,000, Overall ROAS = 3.95, Cost per Order = ₹89.95.
Marketing and Digital Ads project — 30 सेकंड में
क्या: Marketing and Digital Ads का tracker: tblCampaigns नाम की एक Table, ROAS calculated column, KPI cells, City के हिसाब से PivotTable, एक chart और एक पन्ने का dashboard.
क्यों: असली Marketing and Digital Ads report का यही आकार होता है: Total Spend, Overall ROAS, Cost per Order वे आँकड़े हैं जो manager सबसे पहले पढ़ता है.
छोटा उदाहरण: 6 rows से Total Spend = ₹85,000, Overall ROAS = 3.95, Cost per Order = ₹89.95.
First look at the data (before → after):
Expected result — Calculated column
| Campaign | ROAS |
|---|---|
| Diwali-Search | 4.96 |
| Diwali-Social | 3.69 |
| Weekend-Search | 4.25 |
| Weekend-Social | 2.67 |
| App-Install | 1.90 |
| Retarget | 7.00 |
Expected result — KPI cells (expected results)
| KPI | Formula | Result |
|---|---|---|
| Total Spend | =SUM(tblCampaigns[Spend]) | ₹85,000 |
| Overall ROAS | =SUM(tblCampaigns[Revenue])/SUM(tblCampaigns[Spend]) | 3.95 |
| Cost per Order | =SUM(tblCampaigns[Spend])/SUM(tblCampaigns[Orders]) | ₹89.95 |
Before table and formula as text
Before — Table tblCampaigns (fictional sample rows)
| Campaign | City | Spend | Clicks | Orders | Revenue |
|---|---|---|---|---|---|
| Diwali-Search | Pune | 25,000 | 4,200 | 310 | 1,24,000 |
| Diwali-Social | Pune | 18,000 | 5,100 | 190 | 66,500 |
| Weekend-Search | Nashik | 12,000 | 2,100 | 150 | 51,000 |
| Weekend-Social | Nagpur | 9,000 | 2,600 | 80 | 24,000 |
| App-Install | Solapur | 15,000 | 3,900 | 95 | 28,500 |
| Retarget | Kolhapur | 6,000 | 900 | 120 | 42,000 |
Formula / click path
ROAS: =[@Revenue]/[@Spend]
Total Spend: =SUM(tblCampaigns[Spend])
Overall ROAS: =SUM(tblCampaigns[Revenue])/SUM(tblCampaigns[Spend])
Cost per Order: =SUM(tblCampaigns[Spend])/SUM(tblCampaigns[Orders])
Do it step by step:
- Type the data and press Ctrl+T; name the Table
tblCampaignsin Table Design › Properties › Table Name. - Add the column ROAS with
=[@Revenue]/[@Spend]; the Table fills it down. - On a KPI sheet type
=SUM(tblCampaigns[Spend])and the other KPI formulas from the table below. - Click Insert › PivotTable › From Table/Range, put City in Rows and Revenue in Values (Sum).
- Click PivotTable Analyze › PivotChart › Clustered Column, then PivotTable Analyze › Insert Slicer › Campaign.
- Move the KPI cells, the chart and the slicer onto a sheet named Dashboard.
स्टेप बाय स्टेप करून बघा:
- Data type करा आणि Ctrl+T दाबा; Table Design › Properties › Table Name मध्ये Table ला
tblCampaignsनाव द्या. - ROAS column
=[@Revenue]/[@Spend]ने जोडा; Table तो खाली भरते. - KPI sheet वर
=SUM(tblCampaigns[Spend])आणि खालच्या table मधले बाकीचे KPI formulas type करा. - Insert › PivotTable › From Table/Range वर click करा, Rows मध्ये City आणि Values मध्ये Revenue (Sum) ठेवा.
- PivotTable Analyze › PivotChart › Clustered Column वर click करा, मग PivotTable Analyze › Insert Slicer › Campaign.
- KPI cells, chart आणि slicer Dashboard नावाच्या sheet वर हलवा.
स्टेप बाय स्टेप करके देखें:
- Data type करें और Ctrl+T दबाएँ; Table Design › Properties › Table Name में Table को
tblCampaignsनाम दें. - ROAS column
=[@Revenue]/[@Spend]से जोड़ें; Table उसे नीचे भर देती है. - KPI sheet पर
=SUM(tblCampaigns[Spend])और नीचे की table के बाकी KPI formulas type करें. - Insert › PivotTable › From Table/Range पर click करें, Rows में City और Values में Revenue (Sum) रखें.
- PivotTable Analyze › PivotChart › Clustered Column पर click करें, फिर PivotTable Analyze › Insert Slicer › Campaign.
- KPI cells, chart और slicer को Dashboard नाम की sheet पर ले जाएँ.
The brief. Build a campaign sheet: ROAS per campaign (revenue ÷ spend), total spend, overall ROAS (SUM ÷ SUM), cost per order, revenue by city, a chart and a Campaign slicer.
Calculated column formulas:
| Column | Formula |
|---|---|
| ROAS | =[@Revenue]/[@Spend] |
KPI cells (check your numbers):
| KPI | Formula | Result |
|---|---|---|
| Total Spend | =SUM(tblCampaigns[Spend]) | ₹85,000 |
| Overall ROAS | =SUM(tblCampaigns[Revenue])/SUM(tblCampaigns[Spend]) | 3.95 |
| Cost per Order | =SUM(tblCampaigns[Spend])/SUM(tblCampaigns[Orders]) | ₹89.95 |
PivotTable (expected):
| City | Sum of Revenue |
|---|---|
| Kolhapur | ₹42,000 |
| Nagpur | ₹24,000 |
| Nashik | ₹51,000 |
| Pune | ₹1,90,500 |
| Solapur | ₹28,500 |
| Grand Total | ₹3,36,000 |
Chart and dashboard (one under the other):
- Click inside the PivotTable, then PivotTable Analyze › PivotChart › Clustered Column › OK.
- Add a chart title and data labels with Chart Design › Add Chart Element.
- Click PivotTable Analyze › Insert Slicer, tick Campaign and click OK.
- Insert a new sheet named Dashboard. In it, link a card cell to each KPI (for example
=KPI!B2) and format it large and bold. - Cut and paste the chart and slicer onto the Dashboard sheet.
- On the View tab, untick Gridlines in the Show group. Select the dashboard area and click Page Layout › Print Area › Set Print Area.
Template and guide: download the practice template Marketing_Digital_Ads_Template.xlsx and read the step-by-step template guide. The template's sample rows may differ from the rows above; the method is the same.
Practice task (try it before you open the answer):
- Which city has the highest sum of Revenue?
- Filter the Table on City = Pune (Data › Filter): what is Total Spend for Pune alone?
- Add the Clustered Column PivotChart and the Campaign slicer to your Dashboard sheet.
Answer
Pune (₹1,90,500). For Pune only (2 rows): Total Spend = ₹43,000. The chart shows 5 bars, one per city.
Ravindra Bagale's Tip
Check Total Spend by hand for two rows before you trust the dashboard. If your hand answer and the cell differ, the formula range is usually wrong.
Ravindra Bagale's Tip – मराठी
Dashboard वर विश्वास ठेवण्याआधी दोन rows साठी Total Spend हाताने check करा. हाताचं उत्तर आणि cell वेगळे आले तर बहुतेक formula ची range चुकलेली असते.
Ravindra Bagale's Tip – हिंदी
Dashboard पर भरोसा करने से पहले दो rows के लिए Total Spend हाथ से check करें. हाथ का जवाब और cell अलग हों तो ज़्यादातर formula की range गलत होती है.
Loading practice tasks...
- Total clicks (Easy): Add up Clicks in D2:D11.
- Average spend (Easy): Average of E2:E11, rounded to 2 decimals.
- Rows in Google (Easy): How many rows have Platform "Google"?
- Largest clicks (Easy): The largest value in D2:D11.
- Clicks for Google (Medium): Total of D2:D11 where B is "Google".
- Google in Madrid (Medium): Total of D2:D11 where B is "Google" and C is "Madrid".
- Best in Google (Medium): Largest E2:E11 value where B is "Google".
- Value of row 2 (Medium): D2 times E2.
- Look up Vikram Singh (Medium): The Clicks for "Vikram Singh" (use a lookup on column A).
- Total value (Hard): Sum of D times E for all rows.
- Share of Google (Hard): Share of D2:D11 that is "Google", rounded to 3 decimals.
- Rank of row 2 (Hard): Rank of D2 among D2:D11 (largest = 1).
- Above average? (Hard): "Above" if E2 is above the average of E2:E11, else "Below".