#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 25
Default 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 !
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default 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 !



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
My SUM function is totalling to 0 Caroline Excel Worksheet Functions 0 January 19th 07 08:29 PM
totalling enyaw Excel Discussion (Misc queries) 1 May 9th 06 08:19 PM
Totalling in excel Darryl Excel Discussion (Misc queries) 2 January 5th 06 03:28 PM
Totalling Collumns Stormingerman Excel Worksheet Functions 1 December 19th 05 01:45 AM
why is it saying sheetcnt is "variable not defined" how to do a global variable to share over multiple functions in vba for excel? Daniel Excel Worksheet Functions 1 July 9th 05 03:05 AM


All times are GMT +1. The time now is 11:53 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"