ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   VBA code to sum (https://www.excelbanter.com/excel-programming/357226-vba-code-sum.html)

[email protected]

VBA code to sum
 
Hi all

i have column B which has around 600 values when my no.of.cycles (n) =
1,
then it will be B & C for n = 2, where n is specified by the user.

according to n i want to calculate this formula for the whole column,

=Round(SUM(Tabelle2!B3:B12)/counta(Tabelle2!B3:B12)-SUM(Tabelle2!B2:B11)/counta(Tabelle2!B2:B11);2)

so when n= 1 i want to take column B, and for n = 2 column B & C and so
on.
could anyone help me in programming this

advance thanks for ur help
santhosh.



All times are GMT +1. The time now is 10:16 AM.

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