ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   to sum columns (https://www.excelbanter.com/excel-worksheet-functions/165103-sum-columns.html)

JS

to sum columns
 
A B C D E
1 1 2 3 4 5
2 361 311 296 247 303
3 596 562 234 979 536
4
5

Say cell B5 contents 4. What is the formula to sum columns with no of
columns based on cell B5 (column A2 to D2)?

Thanks

js

Max

to sum columns
 
One way
In C5: =SUM(OFFSET(A2,,,,B5))
where B5 contains: 4
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"js" wrote:
A B C D E
1 1 2 3 4 5
2 361 311 296 247 303
3 596 562 234 979 536
4
5

Say cell B5 contents 4. What is the formula to sum columns with no of
columns based on cell B5 (column A2 to D2)?

Thanks

js



All times are GMT +1. The time now is 01:47 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com