Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Help with algorithm
 
Posts: n/a
Default How do I use @choose command to add selected columns

i have a budget for each months expenses. I wish to accumulate the monthly
costs each month by reference to the month I am working with. For example In
month 4 I need each amount appearing on each row to be added togethe, the
totals to appear in column 13. In month 5 I need the totals in column 13 to
represent the addition of each row in columns 1 through 5 and so on. The only
entry I wish to make is to record which month I am workingh with for
reference by the formula

  #2   Report Post  
Myrna Larson
 
Posts: n/a
Default

Assuming the monthly data starts in A2:L2, and the total for that row goes in
M2, if you put the month of interest in B1, the formula for M2 is

=SUM(OFFSET(A2,0,0,1,$B$1))

If you type a date in B1, e.g. 10/15/2004, use

=SUM(OFFSET(A2,0,0,1,MONTH($B$1)))


On Sat, 11 Dec 2004 13:57:02 -0800, "Help with algorithm" <Help with
wrote:

i have a budget for each months expenses. I wish to accumulate the monthly
costs each month by reference to the month I am working with. For example In
month 4 I need each amount appearing on each row to be added togethe, the
totals to appear in column 13. In month 5 I need the totals in column 13 to
represent the addition of each row in columns 1 through 5 and so on. The only
entry I wish to make is to record which month I am workingh with for
reference by the formula


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
how to increase maximum number of columns in excel 2003 [email protected] Excel Discussion (Misc queries) 1 January 16th 05 08:13 PM
Columns in Excel will not allow user to click in them Kim Excel Discussion (Misc queries) 1 December 28th 04 06:37 PM
Counting the Contents of Two Columns Molochi Excel Discussion (Misc queries) 6 December 22nd 04 08:13 PM
Averaging columns rhodesv New Users to Excel 1 December 16th 04 08:14 PM
interchange columns with rows Herman Excel Discussion (Misc queries) 2 December 8th 04 05:40 PM


All times are GMT +1. The time now is 01:42 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"