Google Workspace Marketplace
A CPM calculator formula for Google Sheets™. =CPM(cost, views) gives you the cost per 1,000 views (cost per mille) in any cell. Compare ad costs across campaigns.
By:
Listing updated:November 11, 2026
Works with:
No reviews
145
Overview
CPM Custom Function adds one formula to Google Sheets™: =CPM(cost, views).

CPM means cost per mille, the cost per 1,000 views or impressions. The CPM formula is the cost divided by the views in thousands. $500 for 1,000,000 views is a CPM of $0.50.

Why use it: CPM lets you compare prices fairly, even when the costs and the view counts are very different. Use it across ad campaigns, sponsorships, newsletters and channels.

It works for any unit, not only views: impressions, listeners, subscribers or units.

How to use it: type =CPM(B1, B2), where B1 is the cost and B2 is the views.

Made for marketers and analysts. Runs inside Google Sheets™. Your data is not sent anywhere.

Google Sheets™ is a trademark of Google LLC.
Additional information
PricingFree of charge
Developer
Support
Privacy policy
Terms of service
CPM Custom Function will ask for the permissions shown below. Learn more
CPM Custom Function will need access to your Google account
This will allow CPM Custom Function to :
View and manage spreadsheets that this application has been installed in
Display and run third-party web content in prompts and sidebars inside Google applications
See your primary Google Account email address
See your personal info, including any personal info you've made publicly available
Reviews
Language:
Sort by:
Google doesn't verify reviews or ratings. Learn more about reviews
No comments
Search
Clear search
Close search
Google apps
Main menu