Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
Heads up: Excel and Google Sheets do this differently.
=SUMPRODUCT(1/COUNTIF(A2:A6,A2:A6))=COUNTUNIQUE(A2:A6)Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
Need the Google Sheets version instead? Open Sheets variant in workspace →
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.
If the range contains empty cells, COUNTIF returns 0 for them, causing division by zero. Add a blank check: =SUMPRODUCT((A2:A6<>"")*1/COUNTIF(A2:A6,A2:A6&"")).
Use =SUMPRODUCT((A2:A6="East")/COUNTIFS(B2:B6,B2:B6,A2:A6,A2:A6)) where A is the group and B is the value column.
No. COUNTUNIQUE is Google Sheets only. In Excel use SUMPRODUCT(1/COUNTIF) or ROWS(UNIQUE(...)) in Excel 365.
Extract a specific value from a PivotTable using field names and item values as explicit identifiers.
How-toBuild a formula-driven pivot-style cross-tab in Excel or Google Sheets using SUMIFS with mixed references — live totals by row and column without inserting a pivot table.
How-toUse Google Sheets QUERY with GROUP BY, SUM, and LABEL to build a pivot-style summary table without a manual pivot table — Excel alternative uses SUMIFS.
How-toLearn how GETPIVOTDATA extracts specific values from a pivot table in Excel and Google Sheets, avoiding broken references when the pivot refreshes.
How-toUnderstand how pivot calculated fields work and when to replace them with SUMIFS-based formulas in Excel and Google Sheets for more control and flexibility.
How-toUse SUMIF and SUM to calculate each category's percent of grand total in Excel and Google Sheets — no pivot table required.
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: