Feature/averageifs function - #1732
Open
Tobiadefami wants to merge 4 commits into
Open
Conversation
|
@Tobiadefami thanks for the pull request. No CLA step needed here — our records show you signed the Contributor License Agreement on 2026-07-31. That signature came from our previous signing form and has been carried over, so there is nothing for you to re-sign. |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
hyperformula-docs | 8f54b3a | Commit Preview URL Branch Preview URL |
Aug 13 2026, 09:12 AM |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #1732 +/- ##
========================================
Coverage 97.31% 97.31%
========================================
Files 195 195
Lines 15719 15742 +23
Branches 3455 3393 -62
========================================
+ Hits 15297 15320 +23
- Misses 414 422 +8
+ Partials 8 0 -8
🚀 New features to boost your workflow:
|
Performance comparison of head (8f54b3a) vs base (61ead73) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
HyperFormula supports
AVERAGEIFand other conditional aggregation functions, but it does not supportAVERAGEIFS.This change adds
AVERAGEIFS, allowing values to be averaged when all corresponding criteria are satisfied. It uses the existing conditional aggregation and caching infrastructure and includes function metadata, translations, documentation, and tests.How did you test your changes?
Added tests covering:
All 28 focused tests passed.
Additionally, I ran:
npm run bundle:cjsnpm run docs:generate-function-docsBoth commands completed successfully.
Types of changes
expected anymore)
Related issues:
Checklist:
hyperformula.handsontable.com/guide/contributing.html) and I confirm that my code follows the code style of
this project.
os/part4-formula/OpenDocument-v1.3-os-part4-formula.html) standard.
CHANGELOG.md) file.
Note
Low Risk
Additive spreadsheet function using established SUMIFS/AVERAGEIF patterns; no changes to auth, persistence, or core engine behavior.
Overview
Adds AVERAGEIFS, averaging numeric cells in a range when all paired criterion ranges and criteria match—aligned with Excel/Google Sheets and the existing
SUMIFS/AVERAGEIFpattern.Implementation wires
averageifsinConditionalAggregationPluginthroughcomputeConditionalAggregationFunctionwithAverageResultcomposition,repeatLastArgs: 2for extra range/criterion pairs, and#DIV/0!when no qualifying numeric values exist.Also updates the changelog, statistical function metadata, and localized function names across language packs.
Reviewed by Cursor Bugbot for commit 8f54b3a. Bugbot is set up for automated code reviews on this repo. Configure here.