Skip to content

Implement AGGREGATE function #59

Description

@Jython1415

Overview

Implement the AGGREGATE function for the named-functions library.

Description

Returns an aggregate in a list or database using one of 19 different functions with special handling for errors, hidden rows, and nested subtotals.

Value Proposition

  • Very powerful for real-world data processing
  • Can ignore errors that would break regular aggregation functions
  • Can ignore hidden rows (useful for filtered data)
  • Can ignore nested SUBTOTAL and AGGREGATE functions
  • Single function interface for 19 different aggregation operations

Priority

HIGH

Category

Aggregation & Calculation

Implementation Notes

  • Support function numbers 1-19 (AVERAGE, COUNT, COUNTA, MAX, MIN, PRODUCT, STDEV.S, STDEV.P, SUM, VAR.S, VAR.P, etc.)
  • Options parameter: 0-7 for different ignore behaviors
  • Complex function - will be larger implementation
  • Consider breaking into helper functions for each aggregate type
  • Error handling is critical feature
  • Reference: Excel AGGREGATE function documentation

Related

Part of Excel function implementation initiative (#51)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions