Sum a section of a column starting & ending based on cel references.

26 views
Skip to first unread message

Jonathan Pollard

unread,
Dec 20, 2023, 11:32:29 AM12/20/23
to Google Sheets Community
Hi all, In the example below I need a formula in C3 that sums a section of column A with the starting row defined by C1 and the end row defined by C2.

So in the example if I wanted to sum A4:A7 I would input 4 in C1 and 7 in C2 so that C3 gives me the sum of that section.

Any help greatly appreciated. 

Sum part of column.png
Message has been deleted

Auril

unread,
Dec 20, 2023, 11:58:23 AM12/20/23
to Google Sheets Community
hi Jonathan. does this work?  =SUM(INDIRECT("A"&$C$1&":A"&$C$2))

Alexander Ivanov

unread,
Jan 7, 2024, 3:53:25 AM1/7/24
to Google Sheets Community
@Auril

This is a great solution!

Alternative idea

=SUM(FILTER(A:A,ROW(A:A)>=C1,ROW(A:A)<=C2))

Reply all
Reply to author
Forward
0 new messages