I have the below formula:
making a total of T column for years at or below a reference year in column A and subtracted from the total values of column T if in column G, a date entered is equal to or less that same year reference.= SUMPRODUCT ((YEAR ('Database Statistics'! $ F $ 2: $ F $ 999) <= $ A31) * ('Database Statistics' "T $ 2: T $ 999))-SUMPRODUCT ((YEAR ( 'Database Statistics'! $ G $ 2: $ G $ 999) <= $ A31) * ( 'Database Statistics' "T $ 2: T $ 999))
This works, provided in column G, all dates are informed.
Currently, this column is partially filled with a date 31/12/2025, but to avoid this "trick", I would do without my dates and leave empty if they are not really valid.
Bookmarks