LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Including a variable number of columns in Excel Sum formula

Can anyone suggest a formula, array or otherwise, which will achieve
the following.

I have 24 columns of data, two for each future month. As we progress
through a financial year I want to be able to add up the remaining
months of the year.
i.e. In Month 1, I need to include 22 columns; in month 2, 20 columns;
month 3, 18 columns etc..

I already have a variable set which represents the current month so
would like this to be included in the formula.

I could code this with a VBA routine, but feel there must be a
relatively straightforward formula which would achieve this, and as an
added benefit would be more readable by a user of the workbook.

TIA

Richard Buttrey
 
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
Adding variable number of columns fabio Excel Worksheet Functions 8 May 23rd 10 07:30 AM
sum number of columns based on variable value rt10516 Excel Discussion (Misc queries) 4 November 8th 07 01:47 PM
Including a range of number in a IF (Logical Test) formula Zakhary Excel Worksheet Functions 5 December 30th 06 10:07 PM
adding variable number of columns confused Excel Worksheet Functions 5 September 23rd 05 10:09 AM
deleting a variable number of columns Rob Barnard Excel Programming 2 July 28th 03 07:04 PM


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

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"