ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Can Excel be setup to automatically sum imported data (https://www.excelbanter.com/excel-discussion-misc-queries/107528-can-excel-setup-automatically-sum-imported-data.html)

RobertJTJ

Can Excel be setup to automatically sum imported data
 
I am creating data rows via Visual Basic and writing them to an Excel
template file. The data is composed of multiple groups and the number of rows
is variable. Is there a way to set up the template to perform an auto sum on
specific columns within each group of data rows?

kassie

Can Excel be setup to automatically sum imported data
 
Seeing that you are using VB to do the work, you can also use VB to enter the
formula to sum the relevant number of cells. You have to tell VB where to
start. Get this into 2 variables, increment the 1 variable every time you
write a new row, and at the end of the process you will have the start row
and end row for your SUM formula

"RobertJTJ" wrote:

I am creating data rows via Visual Basic and writing them to an Excel
template file. The data is composed of multiple groups and the number of rows
is variable. Is there a way to set up the template to perform an auto sum on
specific columns within each group of data rows?



All times are GMT +1. The time now is 02:16 PM.

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