Formula inquiry

Best Answer
-
@Zach_ Glad you got it sorted. You could also use similar logic and add all rows that are less than or equal to the current row number.
=SUMIFS([Hours Saved (Accumulating)]:[Hours Saved (Accumulating)], [Auto Number]:[Auto Number], @cell <= [Auto Number]@row)
Answers
-
Hi @Paul Newcome! I have a very similar question but a different use case.
I am tracking the cumulative amount of training hours (from FY to FY) that my team has saved through the availability of self-serve resources. It's easy to calculate the number of hours for any given FY, but I am having trouble getting them to accumulate (i.e., add to the previous year's total).
I wonder if you're able to identify what I'm doing wrong, or what I can change to make this work.
I nested the formula INDEX function into my formula. It works for one year (see FY24), but then when I try to apply it to a second year (FY25), I get a circular reference error.
INDEX([Hours Saved (Accumulating)]:[Hours Saved (Accumulating)], Row@row - 1)
The Row@row reference works together with an Auto Number column to give each row a unique identity.
Thank you very much
-
@Paul Newcome, I think I figured this out.
I made a helper column with the following formula, and it's working. It sums the hours for the entire column, then subtracts the hours of any rows that have a Row ID greater than the row in question.
=SUM([Hours Saved (Accumulating)]:[Hours Saved (Accumulating)]) - SUMIFS([Hours Saved (Accumulating)]:[Hours Saved (Accumulating)], [Auto Number]:[Auto Number], @cell > [Auto Number]@row)
-
@Zach_ Glad you got it sorted. You could also use similar logic and add all rows that are less than or equal to the current row number.
=SUMIFS([Hours Saved (Accumulating)]:[Hours Saved (Accumulating)], [Auto Number]:[Auto Number], @cell <= [Auto Number]@row)
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.2K Get Help
- 452 Global Discussions
- 155 Industry Talk
- 505 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 81 Community Job Board
- 514 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 308 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!