LogFAQs > #879342125

LurkerFAQs, Active DB, Database 1 ( 03.09.2017-09.16.2017 ), DB2, DB3, DB4, DB5, DB6, DB7, DB8, DB9, DB10, DB11, DB12, Clear
Topic List
Page List: 1
TopicAny mediocre excel users on here? Need some help with the sum function...
AngelsNAirwav3s
05/18/17 12:39:18 PM
#6:


Twin3Turbo posted...
This would also work as simply

=SUM(A1:INDEX(A:A,B1))

or as

=SUM(A1:INDEX(A:10,B1))

The index function is rather powerful and fairly simple to use. It takes an array (in this case, A:A) and uses cell B1 to know how far down to count.

Note that in your spreadsheet, lets say the cells array that you wanted to reference began at A3 and ended at A12, you would have to change the formula to:

SUM(A3:INDEX(A3:A12,B1))

And the reference number (cell B1) could not be a number higher than 10, because that's the most amount of numbers in that array that could potentially be summed (A3:A12 is 10 rows)

You should look up coupling INDEX and MATCH. It'll change your life.


Thanks for the info!

Yeah I used to use excel all the time a couple years ago and remember using index/match instead of vlookup... but I haven't done any excel since until this morning, trying to remember all this stuff
---
Hello world!
... Copied to Clipboard!
Topic List
Page List: 1