ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How can I sum data on a row from certain named columns? (https://www.excelbanter.com/excel-worksheet-functions/88141-how-can-i-sum-data-row-certain-named-columns.html)

Liliana

How can I sum data on a row from certain named columns?
 
I have a list of products on columns with the materials correspondence (on
rows). At each product I have more 2 columns that shows me how many of each
material I need for producing a number of products. The same material is used
by another product, so I need to sum the material needs only for the "Total"
named columns of each product. This means I have to sum every third column's
cell by row.
Can anyone give me some help?



Biff

How can I sum data on a row from certain named columns?
 
Hi!

Assume you want to sum cells A1, D1, G1 and J1.

Since that's not a very big range I would just use:

=SUM(A1,D1,G1,J1)

If you have a larger range, every 3rd cell from A1 to BA1:

=SUMPRODUCT(--(MOD(COLUMN(A1:BA1),3)=1),A1:BA1)

Biff

"Liliana" wrote in message
...
I have a list of products on columns with the materials correspondence (on
rows). At each product I have more 2 columns that shows me how many of
each
material I need for producing a number of products. The same material is
used
by another product, so I need to sum the material needs only for the
"Total"
named columns of each product. This means I have to sum every third
column's
cell by row.
Can anyone give me some help?






All times are GMT +1. The time now is 03:45 PM.

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