Tabellab

You are not signed in — the lab works, but your progress is not saved. Sign up

Lesson 1 of 20 is free. Unlock all 20 hands-on labs, the final exam and your certificate.

Buy course — €9.90
Loading the spreadsheet…

Why five small ratios decide where your ad budget goes

If you run ads for a shop, a client or your own side project, the platforms bury you in numbers: impressions, clicks, conversions, costs, reach, frequency and dozens of other columns. Most decisions, however, come down to five ratios that you can calculate yourself in a few seconds: CTR, CVR, CPC, CPM and CPA. Once you can build them in Excel from a plain export, you no longer depend on the dashboard of one platform, and you can compare Google, Microsoft, Meta and TikTok campaigns side by side on the same sheet.

This lesson is for marketing assistants, small business owners, freelancers who manage ads for clients, and analysts who receive an ad report and have to answer the simple question "is this working?". You do not need any statistics. You need division, a clear idea of what each ratio means, and the discipline to calculate totals the right way. That last point is where many reports go wrong, and we will look at it in detail.

The example is a fictional bicycle parts retailer, Kestrel Cycle Supply, and its paid campaigns for April 2027. The same five campaigns are in the lab above, so you can follow every number here and then rebuild it yourself.

The ad funnel: impressions, clicks, conversions

Every ad platform reports the same three-step funnel. An impression is one showing of your ad. A click is a person who reacted and came to your site. A conversion is the action you actually want, for example a purchase, a lead form or a sign-up. Money is spent at the top of the funnel and value is created at the bottom, and each step has its own rate and its own cost.

  • CTR (click-through rate) = clicks ÷ impressions. How attractive the ad is to the people who see it.
  • CVR (conversion rate) = conversions ÷ clicks. How well the landing page and the offer turn visitors into buyers.
  • CPM (cost per mille) = spend ÷ impressions × 1,000. The price of a thousand showings. "Mille" is Latin for thousand.
  • CPC (cost per click) = spend ÷ clicks. What one visitor costs.
  • CPA (cost per acquisition) = spend ÷ conversions. What one result costs. This is usually the number your boss cares about.

The ratios are linked. Because spend ÷ conversions is the same as (spend ÷ clicks) ÷ (conversions ÷ clicks), you get CPA = CPC ÷ CVR. In the same way, CPC = CPM ÷ (1,000 × CTR). These two identities are the most useful facts in this whole topic: they tell you which lever moves the CPA. A cheaper click helps only if the conversion rate stays the same, and a better landing page lowers the CPA even if the click price does not move at all.

Search – Generic, April 2027: one funnel, three costsImpressions214,000Clicks8,346Conversions334CTR = 8,346 ÷ 214,000 = 3.90 %CVR = 334 ÷ 8,346 = 4.00 %CPM $45.79spend ÷ impressions × 1,000CPC $1.17spend ÷ clicksCPA $29.34spend ÷ conversionsSpend $9,800. Boxes are not drawn to scale.
Figure 1. The funnel of the Search – Generic campaign. Rates connect the steps (CTR, CVR), costs sit at each level (CPM, CPC, CPA). Check the identity: $1.17 ÷ 4.00 % ≈ $29.34.

CPA is sometimes called cost per conversion, cost per action or, for leads, cost per lead (CPL). The formula is the same. What changes is which action you count as a conversion, so always check the conversion setting before you compare two reports.

Worked example: Kestrel Cycle Supply, April 2027

Kestrel ran five campaigns in April: a brand search campaign that only shows for searches containing the shop name, a generic search campaign for terms like "road bike brake pads", Shopping ads with product images and prices, a display remarketing campaign that shows banners to past visitors, and a social prospecting campaign that targets new audiences. Here is the raw export, the same data as in the lab.

CampaignSpend ($)ImpressionsClicksConv.
Search – Brand2,15038,4006,912553
Search – Generic9,800214,0008,346334
Shopping7,400512,0007,680361
Display Remarketing2,6001,840,0003,12894
Social Prospecting6,2001,550,00011,625186
Total28,1504,154,40037,6911,528

From these five columns we calculate the five ratios per campaign and for the whole account. Row 5 is Search – Brand, so the formulas in row 5 are the ones you copy down. The table shows the results, rounded for display.

CampaignCTRCPCCPMCVRCPA
Search – Brand18.00 %$0.31$55.998.00 %$3.89
Search – Generic3.90 %$1.17$45.794.00 %$29.34
Shopping1.50 %$0.96$14.454.70 %$20.50
Display Remarketing0.17 %$0.83$1.413.01 %$27.66
Social Prospecting0.75 %$0.53$4.001.60 %$33.33
Total0.91 %$0.75$6.784.05 %$18.42

MetricMeaningExcel formula (row 5)Format
CTRclicks ÷ impressions=D5/C5Percentage, 2 decimals
CPCspend ÷ clicks=B5/D5Currency
CPMspend ÷ impressions × 1,000=B5/C5*1000Currency
CVRconversions ÷ clicks=E5/D5Percentage, 2 decimals
CPAspend ÷ conversions=B5/E5Currency
Max CPCtarget CPA × CVR=$C$12*I6Currency

Read the table from left to right and a story appears. Search – Brand has an extremely high CTR and the lowest CPA by far, $3.89. That is typical for brand campaigns, because the people searching for your name already know you. It does not mean you should move the whole budget there: brand search volume is limited by how many people already look for Kestrel, so you cannot buy more of it.

Display Remarketing has the cheapest CPM in the account, $1.41 for a thousand impressions, but a CTR of only 0.17 %. Its CPA of $27.66 is still just under the target because past visitors convert reasonably well. Social Prospecting buys clicks for only $0.53, the second cheapest in the account, yet it has the highest CPA, $33.33, because only 1.60 % of those visitors buy. This is the classic trap the identity CPA = CPC ÷ CVR warns about: cheap clicks that do not convert are not cheap.

For the whole account, Kestrel spent $28,150 for 1,528 conversions, a CPA of $18.42, which looks comfortably below the $28 target. The account average, however, is pulled down by the brand campaign. Two of the five campaigns, Search – Generic and Social Prospecting, are above target on their own, and that is where the optimisation work is.

CPA by campaign vs target CPA, April 2027$0$10$20$30$40Search – Brand$3.89Shopping$20.50Display Remarketing$27.66Search – Generic$29.34Social Prospecting$33.33target $28Green = under target, peach = over target
Figure 2. CPA per campaign against the $28 target. The account total of $18.42 hides two campaigns that miss the target.

Working backwards: the highest CPC you can afford

The identity CPA = CPC ÷ CVR can be turned around. If you know the CPA you are willing to pay, the maximum CPC is target CPA × CVR. For Search – Generic, with a target of $28 and a conversion rate of 4.00 %, the maximum is $28 × 0.0400 = $1.12. In April it actually paid $1.17 per click. Every click cost about five cents too much, and that is exactly why its CPA, $29.34, is above target.

This calculation is the basis of manual bidding and also a good sanity check when a platform bids automatically. If the average CPC is above target CPA × CVR, the campaign cannot hit the target unless the conversion rate improves. You then have two honest options: lower the bids (and accept fewer clicks) or raise the CVR with better landing pages, offers or keywords. In the lab, cell C13 holds the formula =C12*I6, or written without the helper column, =C12*E6/D6.

Actual CPC vs highest affordable CPC (target CPA × CVR)actual CPCmax CPC at $28 target$0.00$0.50$1.00$1.50$2.00$2.500.312.24Brand1.171.12Generic0.961.32Shopping0.830.84Display0.530.45SocialWhere the blue bar is taller than the yellow one, the CPA misses the target.
Figure 3. Actual CPC (blue) against the highest CPC each campaign can pay at a $28 target CPA (yellow). Generic and Social pay more than they can afford.

Keep the target CPA in its own cell, such as C12, and refer to it with a locked reference like $C$12. When the target changes, every maximum CPC on the sheet updates at once and nobody has to edit formulas.

How to build it in Excel, step by step

  1. Paste or import the export so that each campaign is one row, with spend in B, impressions in C, clicks in D and conversions in E, and headers in row 4. Check that the numbers are numbers: they should be right-aligned. If not, select the column and use Data › Text to Columns › Finish to convert them.
  2. Add the totals in row 10: in B10 type =SUM(B5:B9) and drag the fill handle right to E10. The keyboard shortcut Alt+= (Cmd+Shift+T on a Mac) inserts a SUM for the cells above.
  3. In F5 type the CTR =D5/C5. In G5 the CPC =B5/D5, in H5 the CPM =B5/C5*1000, in I5 the CVR =E5/D5 and in J5 the CPA =B5/E5.
  4. Select F5:J5 and double-click the fill handle (the small square at the bottom right of the selection), or select F5:J10 and press Ctrl+D. Because the formulas use relative references, row 10 now divides the totals, which is exactly what you want.
  5. Format: select F5:F10 and I5:I10 and press Ctrl+Shift+% (Cmd+Shift+% on a Mac), then increase the decimals with Home › Number › Increase Decimal to two places. Format G, H and J as currency with Home › Number Format › Currency.
  6. Type the target CPA in C12 and the maximum CPC in C13: =C12*I6. Compare it with G6. If you want a visual flag, add =IF(G6>C13,"over max","ok") next to it.
  7. Protect against division by zero: a new campaign with no conversions shows #DIV/0! in the CPA column. Wrap the formula as =IFERROR(B5/E5,"–") so the report stays readable.
  8. Chart it: select A4:B9, hold Ctrl (Cmd on a Mac) and select E4:E9. Choose Insert › Charts › Insert Combo Chart › Clustered Column – Line on Secondary Axis. Spend becomes columns, conversions a line on the right axis. Add a title like "Spend vs conversions by campaign".

The combo chart in the last step is what the lab asks for in task 5. It makes the contrast between Search – Brand and the rest visible at a glance: the shortest column, the highest point on the line. A second axis is needed because spend is in thousands of dollars and conversions are in hundreds, and on one axis the line would be flattened against the bottom.

Ad funnel metrics for search and social ads calculated in an Excel worksheet
The full course works through Kestrel Cycle Supply's ad data from this first funnel report to attribution, A/B tests and budget scaling.

The total-row trap: why you divide sums, not average percentages

The most common error in ad reports is the account CTR or CVR calculated as the average of the campaign rates. For Kestrel, the simple average of the five CTRs is about 4.86 %. The real account CTR, total clicks ÷ total impressions, is 37,691 ÷ 4,154,400 = 0.91 %. The average is more than five times too high because the brand campaign, with only 38,400 impressions, gets the same vote as display remarketing with 1,840,000.

The rule is simple: ratios in a total row always divide the totals. If you build the sheet as in the steps above and copy the row-5 formulas down to row 10, you get this automatically. If you ever need a weighted average of rates from a summary without the raw counts, use SUMPRODUCT with the denominators as weights, for example =SUMPRODUCT(F5:F9,C5:C9)/SUM(C5:C9) for CTR, which gives the same 0.91 %.

Common mistakes and how to spot them

  • Averaging percentages for the total. Spot it: the account CTR or CVR is close to the middle of the campaign values even though one campaign has far more volume. Divide total by total instead.
  • Forgetting the × 1,000 in CPM. Spend ÷ impressions is the cost of a single impression, a tiny number like 0.0068. If your CPM column shows values below one cent, the multiplication is missing.
  • Confusing CPC and CPA. Both divide spend, but by different counts. If your CPA column shows exactly the same values as the CPC column, you divided by clicks. A real CPA is always at least as high as the CPC, because each conversion needs at least one click. A CPA below the CPC means conversions exceed clicks, which is a data problem in itself.
  • Dividing max CPC instead of multiplying. Max CPC = target CPA × CVR. Target CPA ÷ CVR gives $700 for Search – Generic, a number that should make you stop immediately.
  • CVR per impression instead of per click. Conversions ÷ impressions is a valid number, but it is not the conversion rate used in the CPA identity. Make sure the denominator of CVR is clicks.
  • Mixing conversion definitions. One platform counts purchases, another counts add-to-carts. The CPA of the second will look far better. Before you compare platforms, check that "conversion" means the same thing in each export.
  • Judging on cheap clicks or cheap impressions alone. Social Prospecting and Display have low CPCs and CPMs. Spot the problem by always reading CPC together with CVR, or simply by looking at the CPA column.

Quick reference: Excel functions and shortcuts in this lesson

Function / shortcutWhat it does here
=D5/C5, =B5/D5 …Plain division builds every ratio. No special function is needed.
SUMTotals spend, impressions, clicks and conversions in row 10 so the account ratios divide sums.
$C$12 (F4 key)Locks the target CPA cell so it stays fixed when you copy a formula. Press F4 (Cmd+T on a Mac) while the reference is selected.
IFERROR(…,"–")Shows a dash instead of #DIV/0! for a campaign with zero clicks or conversions.
AVERAGEDo not use it for account ratios: it weights a tiny campaign like a big one.
Ctrl+D / double-click the fill handleCopies the row-5 formula down to the other campaigns.
Ctrl+Shift+% (Cmd+Shift+% on a Mac)Applies percentage format to CTR and CVR.
Insert › Charts › ComboSpend as clustered columns, conversions as a line on the secondary axis.

Real-world uses

  • Monthly client report. A freelancer exports the campaign table from each platform, pastes it into the same template and gets comparable CTR, CPC, CVR and CPA for every channel in minutes.
  • Bid setting. A shop owner knows that one order may cost at most, for example, $25 in advertising. With target CPA × CVR she sets a maximum CPC for each search campaign and checks it every week.
  • Diagnosing a rising CPA. When CPA goes up, the identity CPA = CPC ÷ CVR tells you where to look: either clicks became more expensive (auction pressure, a competitor) or the conversion rate fell (site problem, stock-out, price change).
  • Comparing channels fairly. A marketing manager has to explain why social looks cheap per click but expensive per sale. A table with all five ratios answers the question before it becomes an argument.
  • Planning a budget. If a campaign's CVR and CPC are stable, budget ÷ CPC gives the expected clicks and clicks × CVR the expected conversions, a first rough forecast before you test.

What you will build in the rest of this course

This first lesson is free. The labs that follow are part of the full course, a one-time purchase of $9.90, and they keep working with Kestrel Cycle Supply's data, step by step from campaign reporting to budget decisions.

Keyword Report: SUMIFS by Campaign and Match Type. You roll a 12-keyword search report up by campaign and by match type with SUMIFS, so you can see in one small table where broad match spends money without converting.

ROAS vs ROI: Margin, Break-even ROAS and Break-even CPA. You calculate ROAS and ROI from revenue and margin, and find out why the campaign with the best ROAS can still lose money. Then you set a break-even ROAS and break-even CPA for every product category.

Budget Pacing: Spend to Date and Month-end Projection. On 18 May you check six campaigns against their monthly budgets, project month-end spend from the spend to date and flag the ones that are over- or under-pacing before the money runs out.

Quality Score, Ad Rank and Effective CPC (Simplified). You rebuild a simplified search auction for one keyword, rank six advertisers by ad rank and work out the effective CPC Kestrel pays, which shows why a better quality score can be worth more than a higher bid.

Attribution Models: First, Last, Linear, Time-decay, Position-based. You split the revenue of ten customer journeys across five channels with first-click, last-click, linear, time-decay and position-based attribution, and see which channels last-click undervalues.

Ad Creative Test: CTR Lift, z-Score and p-Value. You test three new helmet ads against the control, calculate the CTR lift and use a z-score and NORM.S.DIST to separate real winners from random noise.

Scaling Budgets: Diminishing Returns and Marginal CPA. You read three audience budget tests, calculate the marginal CPA of every extra $1,000 and pick the best budget for each audience with INDEX and MATCH.

Summary

Five ratios describe any ad campaign: CTR = clicks ÷ impressions, CVR = conversions ÷ clicks, CPC = spend ÷ clicks, CPM = spend ÷ impressions × 1,000 and CPA = spend ÷ conversions. They are linked by CPA = CPC ÷ CVR, which also gives you the highest affordable CPC: target CPA × CVR. For Kestrel Cycle Supply the account CPA of $18.42 looks fine, but Search – Generic ($29.34) and Social Prospecting ($33.33) miss the $28 target, and Search – Generic pays $1.17 per click where it can afford only $1.12. Total rows always divide totals, never average the rates.

Now scroll up to the lab and build the report yourself: CTR, CPC, CPM, CVR and CPA for all five campaigns and the account, the maximum CPC for Search – Generic, and the combo chart of spend against conversions. The coach checks your key cells and explains the usual slips.

Frequently asked questions

How do you calculate CTR in Excel?

Divide clicks by impressions, for example =D5/C5, and format the cell as a percentage. For a total row divide total clicks by total impressions instead of averaging the campaign CTRs.

What is the difference between CPC, CPM and CPA?

All three divide ad spend by a count: CPC by clicks, CPM by impressions (times 1,000) and CPA by conversions. CPC and CPM describe what you pay for traffic, CPA what you pay for a result.

How do I calculate CPM in Excel?

Use =spend/impressions*1000, for example =B5/C5*1000. Without the multiplication by 1,000 you get the cost of a single impression.

How is CPA related to CPC and conversion rate?

CPA equals CPC divided by the conversion rate. A $1.17 click with a 4 % conversion rate gives a CPA of about $29.

How do I find the maximum CPC I can afford?

Multiply your target CPA by the conversion rate. With a $28 target and a 4 % conversion rate the highest affordable CPC is $1.12.

Why is my account CTR different from the average of my campaign CTRs?

The simple average gives every campaign the same weight regardless of volume. The correct account CTR divides total clicks by total impressions, which weights each campaign by its impressions.

Keep going: Digital Advertising Math: Search & Social Ads

This free lab is lesson 1 of 20. Unlock the other 19 hands-on labs, the final exam and your certificate for a one-time €9.90.

  1. Keyword Report: SUMIFS by Campaign and Match Type
  2. ROAS vs ROI: Margin, Break-even ROAS and Break-even CPA
  3. Budget Pacing: Spend to Date and Month-end Projection
  4. Quality Score, Ad Rank and Effective CPC (Simplified)
  5. Attribution Models: First, Last, Linear, Time-decay, Position-based
  6. Ad Creative Test: CTR Lift, z-Score and p-Value
  7. Scaling Budgets: Diminishing Returns and Marginal CPA
  8. Search Terms Report: Wasted Spend and Negative Keywords
  9. Bid Adjustments by Device and Time of Day
  10. Shopping Bids from Margin-Based Target ROAS
  11. New-Customer CPA: Paying for Repeat Purchases
  12. Incrementality: Holdout Regions and iROAS
  13. Reach, Frequency and Setting a Frequency Cap
  14. Conversion Lag: Judging Recent Days Fairly
  15. Impression Share: Lost to Budget, Lost to Rank and Headroom
  16. Seasonal Budget Plan: Monthly Budgets from Last Year's Demand
  17. Platform Conversions vs Shop Orders: De-duplication and True CPA
  18. Sensitivity Grid: CPC and Conversion Rate vs Profit
  19. Final Project: Monthly Paid Media Report and Dashboard

Buy course — €9.90 See the full course