[proFit-list] running sum?

Jose Ignacio Espeso espesoji at unican.es
Thu Oct 13 02:10:29 CDT 2011


What about using a simple program? It could be as easy as this one:

program RunningSum;
   var
      i,col1,col2:integer;
      sum:extended;
begin
   Input('Input Column',col1,'Output Column',col2);
   sum:=0;
      for i:=1 to nrRows do
         if DataOK(i,col1) then
         begin
            sum:=sum+data[i,col1];
            data[i,col2]:=sum;
         end;
end;


            /~~~~~~~~~~~~~~~~~~~~~~~~~~\
            |   Jose I. ESPESO                            |      A/~~~\A
            |   Dpto. CITIMAC                              |       ((o   o))___    
            |   Universidad de Cantabria           |          \     /        ~~~
 #         |   39005 Santander                         |     #   (---)\         #  
-#--x---|   SPAIN                                             |----#-x---x---x---#---
 #          \_________________________/     #              \     #   
-#--x------| |--#---x---x---x-| |--x-------x---x---x---#-x---x---x---#---
 #(//  \\)    | | )#(//  \\)(//  \\)   | |  (// \\)(// \\)(/ \)(/ \)  #  (// \\)(// \\)  #

El 11/10/2011, a las 22:42, Dave Sopchak escribió:

> Hi all,
> 
> Is there a way to do a "running sum" of a column in pro fit? I mean, display the total of all values in a column thus far in the column next to it? 
> 
> Nothing jumped out at me immediately. I know this is kind of a spreadsheet thing to do, but it would help if I could do this all in pro fit.
> 
> Thanks for any and all…
> 
> Dave
> 
> 
> _______________________________________________
> 
> proFit-list mailing list
> proFit-list at quantum-soft.com
> http://quantum-soft.com/mailman/listinfo/profit-list_quantum-soft.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://quantum-soft.com/pipermail/profit-list_quantum-soft.com/attachments/20111013/7557fcd2/attachment.html>


More information about the proFit-list mailing list