ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Variable totalling (https://www.excelbanter.com/excel-discussion-misc-queries/190414-variable-totalling.html)

Sena

Variable totalling
 
Hi,

A table having months as columns and products in rows. I need to get the
cumulative total for the month specified. For example if I give month as 2,
it should add the first two columns and if I give months as 6 it should add
the first six columns.

I tried using offset, but it didn't work properly.

Thanks for help.
--
Cheers !

Bob Phillips

Variable totalling
 
Assuming the number is in A7, and we start at column 2, here is an example

=SUM(INDEX(2:2,,2):INDEX(2:2,,1+A7))

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Sena" wrote in message
...
Hi,

A table having months as columns and products in rows. I need to get the
cumulative total for the month specified. For example if I give month as
2,
it should add the first two columns and if I give months as 6 it should
add
the first six columns.

I tried using offset, but it didn't work properly.

Thanks for help.
--
Cheers !





All times are GMT +1. The time now is 07:02 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com