Reports

How do you export a Salesforce report to Excel or CSV?

3 min read · Updated on

Written by Séton Estumento, independent Salesforce consultant, Business Analyst and administrator

To export a Salesforce report, open it in Lightning Experience, click the dropdown arrow, choose Export, then pick a view: Formatted Report (.xlsx, with header and groupings) or Details Only (plain rows as .xlsx, .xls or .csv). You need the Export Reports permission.

Choosing the right view

Formatted ReportDetails Only
ContentThe report as it appears on screen: header, groupings, filter detailsRows only, without formatting
Formats.xlsx only.xlsx, .xls or .csv
UseSharing or archiving a readable reportCalculations and pivot tables in a spreadsheet

For .xls and .csv, Salesforce asks you to choose the encoding for your language and locale.

Export a report in Lightning Experience

  1. Open the Reports or Analytics tab, or the report's run page.
  2. Click the dropdown arrow and choose Export.
  3. Select the export view.
  4. For .xls or .csv, choose the encoding.
  5. Click Export. If your browser asks, choose where to save the file.
Report · Opportunities with no activity (30 days)Fictitious data
OpportunityAmountLast activity
Valmont Group – 2027 renewal€120,00047 days ago
Morel Transport – 25 extra licences€58,00036 days ago
Lilac Clinic – Patient portal€95,00033 days ago
Lemaire Brewery – Annual audit€24,00031 days ago

Report built and ready to use

Demo screenshot, fictitious data: a report with groupings and totals, ready to export (fictitious data)

In Salesforce Classic the path is similar: the row-level actions menu next to the report, then Export, encoding, file type and Export.

The limits to know

CaseLimit stated by Salesforce
Formatted Report of a matrix report2,000 rows and 100 columns
Tabular or summary report as .xlsx (Formatted Report or Details Only)100,000 rows and 100 columns
Details Only as .xls or .csvNo row or column cap on the Salesforce side
Long text and rich text fields255 characters

Your spreadsheet has its own caps too: about 1,048,576 rows by 16,384 columns in a recent format, and 65,536 rows by 256 columns in an older one.

Printing instead of exporting

For a paper copy, Salesforce offers Printable View on the report's run page. The official article describes it for Salesforce Classic. It needs Enhanced Folder Sharing and the Run Reports and Export Reports permissions. Its Lightning Experience equivalent is not verified here, so for a reliable file, export instead.

Common mistakes

  • The Export option is missing: the Export Reports permission is not granted. Give it through a profile or a permission set.
  • The file is incomplete: check the row limit of the view you chose. If you exceed it, switch to Details Only as .csv.
  • Accented characters look wrong: export again with the encoding for your language.
  • Text is cut off: long fields are truncated to 255 characters.
  • Figures differ from the screen: check the report's filters first (see create a report).

To receive the file on a fixed date without doing anything, use a subscription with an attachment.

When to ask for help

If you export the same report every week, or if export rights must differ between teams, an administrator can review the permissions and set up an automatic send. See our Salesforce reports and dashboards service.

Official references

Frequently asked questions

The "Export Reports" user permission. If the Export option is missing, ask your administrator to check your access.

No. In Lightning Experience, Formatted Report is only available as .xlsx. The .xlsx, .xls and .csv formats are offered with Details Only.

No. Long text and rich text fields are truncated to 255 characters in the exported file.

A problem with your Salesforce?

Describe it in a few lines. Reply within one working day, free quote.

Describe my problem