LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Richard Buttrey
 
Posts: n/a
Default Summing a variable range of columns

Can anyone suggest a formula to do the following

Whe

A1 = 6
A2 = 3
A3 = 9

B1:J1 = 1,2,3,4,5,6,7,8,9
B2:J2 = 1,2,3,4,5,6,7,8,9
B3:J3 = 1,2,3,4,5,6,7,8,9

Formulae in C1:C3 to do the following:

In C1 I want to add the first 6 (the 6 is defined by A1) cells in the
range B1:J1 and result in the number 21

In C2 I want to add the first 3 (the 3 is defined by A2) cells in the
range B1:J1 and result in the number 6

In C3 I want to add the first 9 (the 9 is defined by A3) cells in the
range B1:J1 and result in the number 45

Usual TIA


Regards



__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________
 
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
Combining workbooks with some variable field names Bob Dobalina Excel Discussion (Misc queries) 8 May 17th 05 09:48 PM
Summing 2 columns TBoe Excel Worksheet Functions 3 April 28th 05 11:37 PM
Gantt Chart with variable width columns - is this possible? Dave Charts and Charting in Excel 0 December 13th 04 08:00 PM
summing part of cells in a range excelFan Excel Discussion (Misc queries) 2 December 5th 04 12:33 PM
variable range countif JK Excel Worksheet Functions 3 November 3rd 04 07:50 AM


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