Skip to content
All resources
ROAS Excel Reporting Meta Ads

How to Calculate ROAS in Excel: Formula and File

The DashOps Team November 17, 2026 7 min read

To calculate ROAS in Excel, divide purchase value by spend: =D2/C2 when value sits in column D and spend in column C. For a total, divide total value by total spend, because an average of the ROAS column gives the wrong answer.

Download the Excel file if you would rather not build it yourself. It is free with no signup, and it opens on a tab called ROAS worked example, with the formula, the mistake and a campaign table that fills once you paste your Ads Manager export. It does not update itself: you paste a new export each time.

dashops-featured-how-to-calculate-roas-in-excel@2x

The totals mistake, in plain numbers

This is Part 1 of that tab. The example cells are yellow, so you can type over them and watch the sums change.

CampaignSpendPurchase valueROASThe formula
Campaign A1004004.00=C8/B8
Campaign B9009001.00=C9/B9
Right: total value over total spend100013001.30=C10/B10
Wrong: average of the ROAS column2.50=AVERAGE(D8:D9)

The average treats the two campaigns as equal, although Campaign B took nine parts of the budget to Campaign A’s one. For example, if you spend 1000 across these two campaigns, you get 1300 back, which is 1.30 for each 1 spent, and 2.50 overstates it.

The mistake is easy to make because the ROAS column looks like any other column of numbers. Spend and purchase value can be added up. A ratio cannot, so work it out again from the summed parts every time.

The formula on your own export

  1. In Ads Manager, stay on the Campaigns tab and pick your dates.
  2. Open Columns, then Customize columns, and tick Amount spent, Purchases and Purchases conversion value.
  3. Open Reports, choose to export the table data, and pick CSV. Menu words in Ads Manager can differ, so use the closest label you see in both steps. If your file has an Amount spent column, you have the right export. For the choices to make before you export, such as the date range and breakdowns, read exporting data from Meta Ads Manager.
  4. Open the CSV in Excel. If Amount spent is column C and Purchases conversion value is column D, type this on row 2 of the first empty column, then fill it down:
=IF(C2=0,"",D2/C2)

The IF leaves the cell empty for a campaign with no spend, in place of a #DIV/0! error. Then add the total under your last campaign, with your own last row in place of 21:

=SUM(D2:D21)/SUM(C2:C21)

The column letters are only examples, because the order depends on what you ticked. The spend header carries your currency, such as Amount spent (USD). If your file has a summary row, leave it out of both ranges, or the total counts everything twice.

If there is no conversion value column

An export from the default Ads Manager view can hold Purchase ROAS (return on ad spend) and no purchase value at all. Going back to tick Purchases conversion value is the clean fix. If you cannot, do not average that column. Rebuild the value from it instead: spend x Purchase ROAS gives each row’s value. With spend in column C and Purchase ROAS in column E:

=SUMPRODUCT(C2:C21,E2:E21)/SUM(C2:C21)

Microsoft describes SUMPRODUCT as pairing up the cells of two ranges, multiplying each pair and adding the results, which is the row by row sum you need. The ROAS column can be rounded, so the answer can differ by a small amount from one built on real purchase value.

Or paste it into the file

  1. Export from the Campaigns tab, as above. The file reads the Campaign name column, so an export from the Ads or Ad sets tab with no such column gets an instruction and no numbers.
  2. Open the file. If Excel opens it in Protected View, click Enable Editing on the yellow bar, because that view is read only and you cannot paste into it.
  3. Copy everything in your CSV, including the top row.
  4. Open the Paste your export tab, select everything, press Delete, click cell A1 and paste.
  5. Go back to the ROAS worked example tab and read the line at the top. It says Ready with the number of rows read, or it names what went wrong, such as a missing column or numbers that arrived as text, and the How to use tab has the fix.

Part 2 of the tab then fills, with six columns: Campaign, Spend, Purchases, Purchase value, ROAS and Cost per purchase. It lists the 20 campaigns with the most spend, highest first. The Total row under them counts every row in your export, including campaigns below the top 20, and its ROAS is total value over total spend. A few things to know when you read it:

  • No day breakdown is needed for this tab. The How to use tab has a step for one, because the file shares its steps with bigger reports. This tab adds up by campaign name and reads no dates, so it fills either way.
  • A blank ROAS. A campaign with no purchase value shows nothing in that cell, not a 0.
  • Cost per purchase on the Total row divides only the spend of campaigns that had a purchase by the number of purchases, so it will not match total spend over total purchases when some campaigns had none.
  • Over 40 campaigns. The file then works from the first 40 names in your export and leaves cost per purchase on the Total row empty, and a line near the top says so. A bigger campaign further down can be missing from the list, but the Total row still counts every row.
  • Over 10,000 rows. Rows past that are not counted, and the top line tells you to export a shorter period.
  • No conversion value column. The file falls back on spend and Purchase ROAS, row by row, and says on the tab that the result can differ by a small rounding amount.
  • Summary rows. A row named All or Total, or one starting Results from, is left out of the totals, and the top line tells you how many it found.

Before you trust the number

A ROAS is only as good as the purchase value behind it. Meta’s page on Purchases conversion value says the figure uses approximate Shop sales and the value parameters you set for the purchase event, that statistical modelling may fill gaps in the data, and that in some cases it may not be calculated. So an empty or low value can be a tracking gap and not poor sales. Compare one recent month with your store’s own sales before you act on it.

Attribution moves the figure too. Meta says a purchase off your ad is credited to the ad if it happened within a set number of days, and by default it shows these actions based on the attribution setting of the ad set. A Campaigns tab export from the default view has an Attribution setting column. If two campaigns show different settings, check that before you rank one above the other.

What the number lets you decide

A ROAS means something only next to your own break-even point. For example, if your margin is 40%, your break-even ROAS is 1 / 0.40 = 2.50, so at that margin Campaign A at 4.00 pays for itself and Campaign B at 1.00 does not. That tells you which campaign to look at first.

The Facebook Ads ROAS calculator does that sum with your own margin, and the KPI calculator shows ROAS beside your other rates. Both are for one set of numbers at a time, while the file handles a whole export.

The file is not a DashOps export, and it needs no account. In DashOps itself, on Growth and Enterprise you can download an Excel report and CSV files of the campaign list and the breakdown cards.

Frequently asked questions

What is the ROAS formula in Excel?
ROAS is purchase value divided by spend. With purchase value in column D and spend in column C, type =D2/C2 on row 2 and fill it down. For a total across campaigns, use =SUM(D2:D21)/SUM(C2:C21) with your own last row in place of 21.
Can I average the ROAS column to get a total?
No. An average counts a campaign with little spend the same as one with most of the budget, so it can land far from the real figure. Add up the purchase value, add up the spend, then divide the first total by the second.
My export has Purchase ROAS but no purchase value column. What do I do?
Go back to Ads Manager and tick Purchases conversion value under Customize columns if you can. If not, multiply spend by Purchase ROAS row by row to rebuild the value, then divide by total spend. Rounding in the ROAS column can make this differ by a small amount.
Why does the Excel file show no numbers after I paste my export?
Read the line at the top of the ROAS worked example tab, because it says what is wrong. The file reads the Campaign name column, so an export from the Ads or Ad sets tab with no such column gets an instruction and no numbers. Export from the Campaigns tab and paste again, including the top row.
Does the ROAS file update by itself?
No. It works on its own, with no connection to anything, and it holds only what you paste into it. For a new month, export again from Ads Manager, clear the Paste your export tab and paste the new file in at cell A1.

See it in your own dashboard

DashOps brings Meta Ads reporting, campaign management, and white-label client portals into one place. Pick the plan that fits how you run ads.

Keep reading

Get in touch

Tell us about your setup or ask a question and we usually get back to you within one business day. Running more than 20 ad accounts? We will tailor a custom plan for you.

DashOps
Product updates

Get more from every Meta Ad

New features, product news, and practical Meta Ads tips, straight to your inbox.

Subscribe to product updates

Join our newsletter for new features, tips, and the occasional Meta Ads playbook. We may also send you an invite to our community. No spam, unsubscribe anytime.

We use your email to send these updates, and we may also use it to send you an invite to our community. When you subscribe, we also report the sign-up to Meta, and to Google if your browser has a Google Analytics cookie, as our Privacy Policy explains.