Best Excel Formulas for Creating Reports
Question details
Identify useful Excel formulas and tools for building reports.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A user wants to summarize data, retrieve related values, and create a report in Excel.
- Observed behavior
- The report should use functions or tools suited to its data and reporting requirements.
Arrange your data in columns with clear headers and consistent values. Check your Excel version before using newer functions such as XLOOKUP or FILTER.
Choose Excel formulas based on the report's purpose
Use conditional calculations, lookups, and error handling to build a formula-based report.
Select your data and choose Insert > Table. Confirm that the header option is selected if your data has column names.
In a report cell, enter a SUMIFS formula such as =SUMIFS(B2:B100,A2:A100,E2) to total values in column B for the category in E2. Use =COUNTIFS(A2:A100,E2) to count matching rows.
In a report cell, use a lookup such as =XLOOKUP(E2,A2:A100,B2:B100,"Not found") to return a value from column B for a match in column A. Use VLOOKUP if your Excel version does not support XLOOKUP.
Enter an IF formula to label results based on a condition, or wrap a calculation in IFERROR, such as =IFERROR(B2/C2,0), to provide a fallback value.
In a supported Excel version, enter =SORT(UNIQUE(A2:A100)) to list distinct categories, or use FILTER to return rows that meet a condition.

Summarize larger datasets with a PivotTable
Use a PivotTable when you need to group and rearrange report totals without writing many formulas.
Build a Formula-Based Report in WPS Spreadsheets
Use WPS Spreadsheets to summarize report data with familiar conditional formulas and save the workbook in Excel format.
- 1. Open your data: Open WPS Spreadsheets and use File > Open to select your workbook.
- 2. Set up a report category: Place category names in column A and numeric values in column B. Enter the category you want to report on in cell E2.
- 3. Add summary formulas: In an empty cell, enter =SUMIFS(B2:B100,A2:A100,E2) for the total. In another cell, enter =COUNTIFS(A2:A100,E2) for the matching row count.
- 4. Save the report: Choose File > Save As and select the Excel XLSX format if you need to share the report with Excel users.

Frequently Asked Questions
Is there one Excel formula that works best for every report?
No. Use SUMIFS or COUNTIFS for conditional summaries, lookup functions to retrieve related values, and IF or IFERROR for logic and error handling.
How do I total sales for one category?
If categories are in A2:A100, sales are in B2:B100, and the desired category is in E2, enter =SUMIFS(B2:B100,A2:A100,E2) in an empty cell.
What can I use if XLOOKUP is unavailable?
Use VLOOKUP for a supported lookup alternative. Its lookup value must be in the first column of the selected table range.
When should I use a PivotTable instead of formulas?
Use Insert > PivotTable when you want to group, filter, and rearrange summaries across many rows or categories. Refresh the PivotTable after changing its source data.
Can I create a report that lists unique categories automatically?
In a supported Excel version, enter =SORT(UNIQUE(A2:A100)) in an empty cell. The results spill into neighboring cells, so leave enough space below the formula.




