The exact CPM formula Excel syntax for calculating CPM, cost, and impressions in your spreadsheet โ plus a free online CPM calculator if you prefer to skip the manual setup.
Copy these CPM Excel formulas directly into your spreadsheet. Each formula assumes your data starts in row 2 with headers in row 1.
B2 = Total Cost | C2 = Impressions
B2 = CPM Rate | C2 = Impressions
B2 = Budget | C2 = CPM Rate
Everything you need to build a working CPM tracker in Excel or Google Sheets using the CPM formula Excel syntax.
The CPM formula Excel is straightforward because Excel handles the math automatically once you enter the formula correctly. The core CPM Excel formula is =(B2/C2)*1000 โ divide your cost by impressions and multiply by 1,000. The result is your CPM. Enter this in a dedicated CPM column and drag it down to apply to as many rows as needed.
To build a proper CPM tracker using the CPM formula Excel syntax, start with these column headers in row 1: Campaign Name in A1, Budget in B1, Impressions in C1, CPM in D1. In D2, enter the CPM formula Excel: =(B2/C2)*1000. Format column D as currency with 2 decimal places. Now drag D2 down to fill as many rows as your campaign list requires.
This setup lets you paste campaign data from Facebook Ads Manager, Google Ads, or TikTok Ads Manager directly into columns B and C, and your CPM Excel formula calculates the rate automatically for every row. No manual calculation needed.
The most common issue with the CPM formula Excel is the #DIV/0! error that appears when the impressions cell is empty or zero. Wrap your CPM Excel formula in IFERROR to handle this cleanly: =IFERROR((B2/C2)*1000, 0). This returns 0 instead of an error when impressions data is missing, keeping your spreadsheet looking clean during data entry.
If you track campaigns across multiple platforms, add a Platform column (E1) and use conditional formatting to color-code CPM values. Apply a green fill for CPM below your target rate and red fill for CPM above it using Excel's Highlight Cell Rules. The CPM formula Excel handles the calculation the same way regardless of the platform โ the formula doesn't change, only the data does.
The CPM formula Excel syntax is identical in Google Sheets. The formula =(B2/C2)*1000 works exactly the same way in both applications. If you share your CPM tracker with team members who use Google Sheets, they can open the file and the CPM Excel formula will function correctly without any modification. This cross-compatibility makes the CPM formula Excel one of the most portable spreadsheet tools in digital marketing.
Once your CPM formula Excel is running across multiple rows, you can add summary statistics at the top of the sheet. Use =AVERAGE(D2:D100) to calculate your average CPM across all campaigns. Use =MIN(D2:D100) and =MAX(D2:D100) to find your best and worst performing campaigns by CPM. Add a simple bar chart from the CPM column to visualize performance trends across your portfolio at a glance.
Answers to the most common questions about the CPM formula in Excel and Google Sheets.