FormulaCraft

How to build a KPI dashboard formula in Excel and Google Sheets

Excel & Google Sheets
=SUM(B2:B4)/COUNTA(B2:B4)

Verified example

Computed by a real spreadsheet engine on the sample data below.

SalesRevenue
Product A1500
Product B2300
Product C1800

=SUM(B2:B4)/COUNTA(B2:B4)1866.6666666667

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Enter your KPI data into a table format with headers.
  2. 2Select a cell where you want to display the KPI metric.
  3. 3Input the formula to calculate the desired metric (e.g., average, sum).
  4. 4Format the cell to enhance readability and presentation.
  5. 5Test the formula by changing the underlying data to ensure accuracy.

Tips

Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.

Frequently asked

What if my data includes text or empty cells?

Use functions like SUMIF or AVERAGEIF to exclude non-numeric values.

Can I use this formula for multiple KPIs?

Yes, duplicate the formula and adjust the cell references to target different data sets.

How do I update the dashboard automatically?

Ensure your data source is linked correctly, and the formulas will automatically recalculate upon data entry or change.

Formulas used

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: