Ravindra BagaleCourses & study guides मराठी Track your progress

22. KPI in All Industries

Excel

22.14 Marketing and Digital Ads

Performance-marketing interviews ask cost per order and return on ad spend (ROAS), and they ask whether the order row actually has a campaign id (Module 21.7). Impressions and clicks are easy to celebrate and easy to waste. CTR (clicks divided by impressions) is a diagnostic, not the decision.

KPI What the number means Who uses it Action it drives
CPA (cost per order) Spend divided by attributed orders. Media buyer A high CPA stops or rewrites that campaign.
ROAS Attributed sales divided by spend. Marketing lead Under 1 means the campaign returned less sales than it cost. Pause it in the practice file.
CTR Clicks divided by impressions. Only as a diagnostic A high CTR with no orders is a curious audience, not a result.

About this data: The KPIs in this Marketing and Digital Ads lesson are worked out from a fictional online seller with six campaigns in Pune, Nashik, Kolhapur, Nagpur, Solapur and Sambhaji Nagar. The figures are made up for this lesson and do not come from any real company or person.

Fictional sample rows. One month. Every order below is attributed. Campaign names are labels, not real ads. Type these rows into a new sheet from cell A1, press Ctrl + T, and name the table tblAds (Table Design › Table Name).

Campaign City Impressions Clicks Spend Orders Sales
Diwali Pune Pune 1,00,000 2,000 ₹20,000 100 ₹80,000
Monsoon Nashik Nashik 20,000 800 ₹8,000 80 ₹40,000
Ganesh Kolhapur Kolhapur 80,000 400 ₹10,000 20 ₹15,000
Weekend Nagpur Nagpur 10,000 500 ₹5,000 50 ₹30,000
Clearance Solapur Solapur 5,000 250 ₹2,500 40 ₹12,000
New user Sambhaji Sambhaji Nagar 60,000 300 ₹9,000 15 ₹6,000

About this data: The tblAds table has one row per campaign and the columns Campaign, City, Impressions, Clicks, Spend, Orders and Sales. The figures are made up for this lesson and do not come from any real company or person.

Excel formulas for the whole file (type them in empty cells below or beside the table):

KPI Excel formula Result Number format
CTR =SUM(tblAds[Clicks])/SUM(tblAds[Impressions]) 1.5% 0.0%
CPA =SUM(tblAds[Spend])/SUM(tblAds[Orders]) ₹179 ₹#,##0
ROAS =SUM(tblAds[Sales])/SUM(tblAds[Spend]) 3.36 0.00

About this data: Each formula above reads whole columns of the tblAds table. The money columns (Spend and Sales) are in rupees, so format them with ₹ and keep the other columns as plain numbers. The figures are made up for this lesson and do not come from any real company or person.

Calculated columns (one result per row). Click the first empty column of the table, type the header, then the formula. The Table fills every row by itself.

New column Formula in the first row
CTR =[@Clicks]/[@Impressions]
CPA =[@Spend]/[@Orders]
ROAS =[@Sales]/[@Spend]

About this data: The calculated columns use the same six fictional rows of the tblAds table, so you can change any number and watch each row's result update. The figures are made up for this lesson and do not come from any real company or person.

Expected result per row:

Campaign CTR CPA ROAS
Diwali Pune 2.0% ₹200 4.00
Monsoon Nashik 4.0% ₹100 5.00
Ganesh Kolhapur 0.5% ₹500 1.50
Weekend Nagpur 5.0% ₹100 6.00
Clearance Solapur 5.0% ₹62 4.80
New user Sambhaji 0.5% ₹600 0.67

About this data: These results are worked out from the six fictional campaigns in the tblAds table above. They do not describe any real company or person.

One city with SUMIFS. CTR for Pune only:

=SUMIFS(tblAds[Clicks],tblAds[City],"Pune")/SUMIFS(tblAds[Impressions],tblAds[City],"Pune")

Result for Pune: 2.0%. Change "Pune" to a cell reference (for example $K$1) and add a drop-down, and the same formula answers for any city.

Good KPI Vanity metric
From the same rows Monsoon Nashik CPA ₹100 and ROAS 5.00 Diwali and Ganesh impressions (1,00,000 and 80,000)
Why Nashik spent less and returned five rupees of sales per rupee. Ganesh looks like a big campaign. It brought 20 orders at ₹500 each. Sambhaji returned 67 paise per rupee.

About this data: The good KPI and the vanity metric both come from the same fictional rows of the tblAds table, so the comparison is fair. The figures are made up for this lesson and do not come from any real company or person.

What the manager does. The Nashik buyer keeps Monsoon and may test a small extra spend in the practice file, still labelled fictional. The Pune buyer keeps Diwali (ROAS 4) but does not judge it by the 1,00,000 impressions. The Kolhapur buyer pauses Ganesh. Clearance Solapur is the quiet winner: CPA 2,500 ÷ 40 = ₹62, ROAS 12,000 ÷ 2,500 = 4.80, on only 5,000 impressions. Small is allowed to win.

Ravindra Bagale's Tip

Calculate ROAS only on orders that carry a campaign tag. Put untagged orders in an "Others" row and do not divide them by any campaign's spend.

Practice tasks (6)

Use the tblAds table from this lesson (6 fictional rows). Open a hint only if you are stuck, and check your result against the answer.

1. Write one formula that works out ROAS for the whole tblAds table, and give it the number format 0.00.

Hint: Read whole columns of the Table by name, such as tblAds[Impressions], so new rows are included.

Answer: =SUM(tblAds[Sales])/SUM(tblAds[Spend]) gives 3.36.

2. Work out CPA for every campaign except Diwali Pune.

Hint: Use SUMIFS with the condition tblAds[Campaign] not equal to "Diwali Pune", written as "<>Diwali Pune".

Answer: =SUMIFS(tblAds[Spend],tblAds[Campaign],"<>Diwali Pune")/SUMIFS(tblAds[Orders],tblAds[Campaign],"<>Diwali Pune") gives ₹168.

3. Add a calculated column CPA to the Table. Which campaign has the highest CPA?

Hint: Type the header in the first empty column, then the formula using [@column] references. The Table fills every row.

Answer: New user Sambhaji, with ₹600.

4. Which campaign has the lowest ROAS?

Hint: Add ROAS as a calculated column, then sort that column from smallest to largest.

Answer: New user Sambhaji, with 0.67.

5. What if Sales for New user Sambhaji changes from ₹6,000 to ₹7,200? Work out the new whole-table ROAS.

Hint: Type the new value in the Table. Formulas that read whole columns update by themselves.

Answer: ROAS changes from 3.36 to 3.38.

6. How many campaigns have CPA above the whole-table CPA?

Hint: Compare each row of the CPA column with the whole-table result, ₹179.

Answer: 3: Diwali Pune, Ganesh Kolhapur, New user Sambhaji.

Loading practice tasks...

  1. Total Impressions (Easy): Add up the "Impressions" column to get one total for all six campaigns.
  2. Average Spend (Easy): Work out the average of the "Spend" column (in rupees) across the six campaigns. Round the answer to 2 decimal places.
  3. Campaigns with more than 400 Clicks (Easy): Count how many campaigns have more than 400 in the "Clicks" column.
  4. Largest Clicks (Easy): Find the largest value in the "Clicks" column.
  5. Impressions where Clicks is more than 400 (Medium): Add up the "Impressions" column only for the campaigns that have more than 400 in the "Clicks" column.
  6. CTR for all campaigns (Medium): Work out the CTR for all six campaigns. It is the total of "Clicks" divided by the total of "Impressions". Round the answer to 3 decimal places, so 0.125 means 12.5%.
  7. Look up Weekend Nagpur (Medium): Find the "Spend" value for Campaign "Weekend Nagpur".
  8. Smallest Spend (Medium): Find the smallest value in the "Spend" column.
  9. CTR for Diwali Pune (Medium): Work out the CTR for Campaign "Diwali Pune", using only the values in that one row. Round the answer to 3 decimal places, so 0.125 means 12.5%.
  10. CPA for all campaigns (Hard): Work out the CPA for all six campaigns. It is the total of "Spend" divided by the total of "Orders". Round the answer to 2 decimal places.
  11. ROAS for all campaigns (Hard): Work out the ROAS for all six campaigns. It is the total of "Sales" divided by the total of "Spend". Round the answer to 3 decimal places, so 0.125 means 12.5%.
  12. Above or below average (Hard): Show "Above" if the "Clicks" value for Campaign "Diwali Pune" is more than the average of the "Clicks" column, and show "Below" if it is not.