Function Problems

Best Excel Formulas for Creating Reports

Maira MehtabMaira Mehtab Nov 18, 2026 868 views

Question details

Identify useful Excel formulas and tools for building reports.

Which Excel Formulas Are Best for Creating 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.
Before you start

Arrange your data in columns with clear headers and consistent values. Check your Excel version before using newer functions such as XLOOKUP or FILTER.

Solution 1Recommended

Choose Excel formulas based on the report's purpose

Use conditional calculations, lookups, and error handling to build a formula-based report.

1
Create a source table

Select your data and choose Insert > Table. Confirm that the header option is selected if your data has column names.

2
Calculate conditional totals

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.

3
Retrieve related values

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.

4
Handle logic and errors

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.

5
Build a dynamic list

In a supported Excel version, enter =SORT(UNIQUE(A2:A100)) to list distinct categories, or use FILTER to return rows that meet a condition.

Choose Excel formulas based on the report's purpose
Function availability: XLOOKUP, FILTER, UNIQUE, and SORT are available in Microsoft 365 and supported newer versions of Excel. Adjust the example ranges to match your data.
Create reports in WPS Spreadsheets

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. 1. Open your data: Open WPS Spreadsheets and use File > Open to select your workbook.
  2. 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. 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. 4. Save the report: Choose File > Save As and select the Excel XLSX format if you need to share the report with Excel users.
Summarize categories with SUMIFS and COUNTIFSOpen and save Microsoft Excel XLSX filesOrganize source data and report results in one workbook
microsoft office alternative - wps office

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.