Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 27
Default summing the relevant columns

Hi,

i have a date that changes every month in cell A1, ie, 31/8/07

in row 2, i have the months of the year, ie,

1/1/07 1/2/07 1/3/07 .... 1/8/07.... 1/12/07 (Note that i have to put
1st day of the month in order to do some calculations)

in the last used column, i have to sum the amounts for each row from 1/1/07
to the month as shown in cell A1, ie, assuming apr to jul are NIL, this
column shld read, for the below example, 70. Then next month, when A1 is
changed to 30/9/07, this column should read 80 automatically w/o having the
user to change the formula in this column. Is there any way to do this?

Thanks!

1/1/07 1/2/07 1/3/07 .... 1/8/07 1/9/07.... 1/12/07
10 20 10 30 10

Val
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 136
Default summing the relevant columns

So you're entering the first of every month in every column starting cell A2
and ending cell L2, and the values are right below cells A3-L3. Right?
Paste this:
=SUM(A3:OFFSET(A3,0,MONTH(A1)-1))

"Dolphinv4" wrote:

Hi,

i have a date that changes every month in cell A1, ie, 31/8/07

in row 2, i have the months of the year, ie,

1/1/07 1/2/07 1/3/07 .... 1/8/07.... 1/12/07 (Note that i have to put
1st day of the month in order to do some calculations)

in the last used column, i have to sum the amounts for each row from 1/1/07
to the month as shown in cell A1, ie, assuming apr to jul are NIL, this
column shld read, for the below example, 70. Then next month, when A1 is
changed to 30/9/07, this column should read 80 automatically w/o having the
user to change the formula in this column. Is there any way to do this?

Thanks!

1/1/07 1/2/07 1/3/07 .... 1/8/07 1/9/07.... 1/12/07
10 20 10 30 10

Val

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 27
Default summing the relevant columns

Hi,

it works! Thanks!

Val

"Tevuna" wrote:

So you're entering the first of every month in every column starting cell A2
and ending cell L2, and the values are right below cells A3-L3. Right?
Paste this:
=SUM(A3:OFFSET(A3,0,MONTH(A1)-1))

"Dolphinv4" wrote:

Hi,

i have a date that changes every month in cell A1, ie, 31/8/07

in row 2, i have the months of the year, ie,

1/1/07 1/2/07 1/3/07 .... 1/8/07.... 1/12/07 (Note that i have to put
1st day of the month in order to do some calculations)

in the last used column, i have to sum the amounts for each row from 1/1/07
to the month as shown in cell A1, ie, assuming apr to jul are NIL, this
column shld read, for the below example, 70. Then next month, when A1 is
changed to 30/9/07, this column should read 80 automatically w/o having the
user to change the formula in this column. Is there any way to do this?

Thanks!

1/1/07 1/2/07 1/3/07 .... 1/8/07 1/9/07.... 1/12/07
10 20 10 30 10

Val

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
Summing columns [email protected] Excel Discussion (Misc queries) 1 March 15th 07 03:27 PM
Hide/Unhide columns using button on top over relevant columns [email protected] Excel Discussion (Misc queries) 1 March 7th 07 09:24 PM
summing columns thedarkman Excel Worksheet Functions 1 January 2nd 06 07:42 PM
Summing Columns savv32 Excel Worksheet Functions 4 October 7th 05 01:59 AM
Copying matched criteria plus relevant columns to new worksheet mattguerilla Excel Discussion (Misc queries) 3 July 29th 05 03:38 PM


All times are GMT +1. The time now is 05:58 AM.

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

About Us

"It's about Microsoft Excel"