SPREADSHEET WORKFLOW

CPM Calculator Excel: Build a Campaign Cost Sheet

Build a CPM worksheet that keeps spend, impressions, dates, and campaign scope together. The formulas are simple; the useful part is making every result traceable.

Editorial comparison showing CPM for exposure, CPC for clicks, and CPA for completed actions
CPM tracks exposure cost, while CPC and CPA describe later campaign events. A worksheet should label which event its denominator counts.

CPM Calculator Excel: the formula and inputs

To calculate CPM in Excel, divide total campaign cost by the matching number of impressions and multiply by 1,000. The CPM calculator Excel formula is =(B2/C2)*1000 when B2 contains the cost and C2 contains impressions. The result in D2 is expressed in the same currency as B2 per thousand impressions. The arithmetic is the same as the standard CPM formula; the cell references let you repeat it across campaign rows.

The denominator matters as much as the division. Use the impression count defined by the report you are analyzing, and use spend from the same campaign, placement, audience, and date range. Do not put clicks, unique reach, video views, or page visits into an impressions column just because those numbers are nearby in a dashboard. A formula can be correct while answering the wrong reporting question.

Before building the sheet, decide whether each row represents one campaign, one placement, or one reporting day. Keep that unit consistent. If a row combines several placements, its spend and impressions should cover the same placements. This makes the CPM calculation auditable and helps you find a mismatched input before it changes a budget decision.

  • CPM = (campaign spend ÷ matching impressions) × 1,000.
  • Spend and impressions must refer to the same reporting scope.
  • The result uses the input currency; the formula does not convert currencies.

Set up a campaign worksheet

Start with a header row that explains what each value means. A practical layout is Campaign, Start date, End date, Placement, Currency, Spend, Impressions, and CPM. Put the first campaign on row 2, with spend in column B and impressions in column C if you want to use the example formula below. The exact column letters can differ; the formula must point to the cells that hold the values in your sheet.

Store the date range and source next to the numbers rather than in a separate note that can be lost. A report covering October 1–31 should not be paired with spend from September or with lifetime impressions. If you combine rows later, the dates and campaign scope make it possible to confirm that the totals belong together.

Use one currency per comparison. If campaigns are billed in different currencies, convert them with a documented exchange rate and date before combining costs. Do not relabel euros as dollars or treat the currency selector in an online calculator as an exchange-rate conversion. The CPM formula only divides the values supplied to it.

  • A: Keep the reporting period and campaign visible.
  • B: Record spend, currency, and the matching impressions together.
  • C: Give calculated CPM its own column and keep scope notes nearby.

Enter and copy the CPM formula

In D2, type =(B2/C2)*1000 and press Enter. The equals sign starts the formula, the slash divides cost by impressions, and the asterisk multiplies the result by 1,000. Microsoft Support documents these basic formula operators and explains that formulas can refer to cells. The CPM relationship itself comes from dividing spend by impressions and scaling the unit to one thousand.

When you copy the formula from D2 to D3, Excel normally adjusts the relative references to B3 and C3. That is useful when every row has its own cost and impression values. Check the first few copied rows to confirm the references moved with the row. If every CPM cell still points to B2 and C2, the sheet will repeat one campaign's value instead of calculating each row.

You can also select D2 and use the fill handle to copy the formula down through the campaign rows. Leave the formula column as formulas rather than typing rounded CPM values by hand. That keeps the calculation reproducible when a spend or impression value changes. If the worksheet is shared, label the result column as currency per 1,000 impressions and retain enough decimal precision for review.

  • Enter the formula in the first CPM row, then inspect the cell references after copying.
  • Keep the formula in the worksheet so changed inputs recalculate the result.
  • Round the final display, not the source values used in the calculation.

Check the formula with a worked example

Suppose a campaign spent US$200 and recorded 40,000 impressions during the same reporting period. Divide 200 by 40,000 to get 0.005 dollars per impression, then multiply by 1,000. The CPM is US$5.00. The calculation is small enough to verify by hand, which makes it a useful first-row check before copying formulas to a larger sheet.

Use the example to test the column mapping, not to predict a future campaign. Replace the sample values with the cost and impression totals from one report. If the worksheet displays a very different value, check whether the cost was entered in cents, whether the impressions include all placements, and whether the formula points to the intended cells.

Two arithmetic checks

Use these values to verify both the CPM calculation and its inverse before copying the formulas through a campaign worksheet:

CPM from spend and impressions
(US$200 ÷ 40,000) × 1,000 = US$5.00
Spend from CPM and impressions
(US$8 × 75,000) ÷ 1,000 = US$600.00

These are deterministic arithmetic examples, not campaign performance estimates or a tested workbook.

Calculate combined CPM without averaging rates

For a reporting period that contains several campaign rows, calculate the combined rate from total spend and total impressions: combined CPM = (sum of spend ÷ sum of impressions) × 1,000. In Excel, if costs are in B2:B3 and impressions are in C2:C3, use =(SUM(B2:B3)/SUM(C2:C3))*1000. This gives each impression its proper weight in the combined result.

Consider two rows: US$200 for 40,000 impressions and US$600 for 60,000 impressions. Their individual CPMs are US$5 and US$10. The combined CPM is (US$800 ÷ 100,000) × 1,000 = US$8. A simple average of the two rates would be US$7.50, which gives the small campaign the same weight as the larger one despite its lower impression count.

Use an unweighted average only when that is the question you intend to answer, such as the average of campaign-level CPM rates where every campaign should count equally. Label it as an average of row rates. For the cost of the total impression volume, use total spend divided by total impressions. The two outputs answer different questions and should not share the same label.

  • Total-period CPM uses total spend and total impressions.
  • Do not average CPM rows when impression volumes differ unless equal campaign weighting is deliberate.
  • Exclude or resolve rows with missing cost, missing impressions, or a different currency before summing.

Fix common worksheet errors and keep comparisons fair

A blank result or a division error often means that the impression cell is empty or zero. CPM is undefined when the denominator is zero. Do not replace a zero-impression row with an invented value. Mark the row for review, check whether delivery occurred, and keep it outside a combined CPM until the reporting scope is resolved. If a template uses an IFERROR wrapper, label its blank or review output so it cannot be mistaken for a zero CPM.

If the formula is visible as text instead of a number, check that the cell is formatted as a number or general value and that the formula begins with an equals sign. If the result is unexpectedly tiny or large, check whether the cost was imported as text, entered in cents, or duplicated across rows. Confirm that the formula's cell references follow the intended campaign row.

A valid CPM can still be a poor comparison. Separate currencies, date ranges, placements, geographies, and impression definitions before comparing channels. A platform may report served impressions, viewable impressions, or another event; name the event in a column or note. CPM does not tell you whether someone noticed an ad, clicked it, converted, or produced revenue.

  • A zero denominator is a review condition, not a zero CPM.
  • Use one currency, period, placement definition, and reporting source per comparison.
  • Compare cost with quality and outcome measures when making a campaign decision.

CPM Calculator Excel FAQ

What is the CPM formula in Excel?

Divide spend by impressions and multiply by 1,000. If spend is in B2 and impressions are in C2, enter =(B2/C2)*1000. Use matching campaign and reporting-period values.

How do I calculate cost from CPM in Excel?

Multiply CPM by impressions and divide by 1,000. If CPM is in D2 and impressions are in C2, the cost formula is =(D2*C2)/1000. This is a planning calculation, not a guaranteed invoice amount.

Should I average CPM values from several campaigns?

For a combined-period CPM, divide total spend by total impressions and multiply by 1,000. A plain average of row CPMs gives campaigns equal weight, even when their impression volumes differ.

Can the same CPM formula be used in Google Sheets?

The arithmetic formula uses basic cell references, division, and multiplication. The same expression can be entered in a compatible spreadsheet, but this guide does not test every app or locale setting.

What should I do when impressions are blank or zero?

Do not calculate or invent a CPM for a zero denominator. Check the source report and mark the row for review. Keep it out of a combined result until the missing or zero count is understood.

Why does my Excel CPM result look wrong?

Check the currency, whether cost is stored as a number, the impression cell, the formula references, and the reporting period. Also confirm that the formula multiplies by 1,000 after dividing spend by impressions.

Does this CPM calculator Excel guide include a downloadable workbook?

No workbook is attached. This CPM calculator Excel guide shows the cell layout, formula, and checks to build your own worksheet. Use the browser CPM calculator to cross-check a value when needed.

Check a value or read the metric definition

Use a browser calculation for a quick cross-check, or review the CPM definition before comparing campaign reports.

Open the CPM calculator