darkdestroyer1980
Programmer
Hi,
I need some general pointers on a couple of Excel macros that I'm trying to write. I have several columns of long data such as below:
a 65,395,297
b 32,180,320
n -36,603,762
o -37,355,582
p 71,138,303
q -78,920,800
r 220,522,039
-236,329,886
a1 -3,983,788
a2 -33,132,163
a5 86,851,363
a6 -105,765,873
-353,375,008
What I need to do is total the negative values in the column to give a total negative, as well as total the positive values in the column to give a total positive. However I need to miss out the subtotals for each section, the only way I can think of doing this is to look at column A and if no corresponding value then to ignore, but I'm not sure how to do a column check for if A is empty. The other thing I'm not sure about is how to keep a running total.
Any pointers please let me know.
Thx
I need some general pointers on a couple of Excel macros that I'm trying to write. I have several columns of long data such as below:
a 65,395,297
b 32,180,320
n -36,603,762
o -37,355,582
p 71,138,303
q -78,920,800
r 220,522,039
-236,329,886
a1 -3,983,788
a2 -33,132,163
a5 86,851,363
a6 -105,765,873
-353,375,008
What I need to do is total the negative values in the column to give a total negative, as well as total the positive values in the column to give a total positive. However I need to miss out the subtotals for each section, the only way I can think of doing this is to look at column A and if no corresponding value then to ignore, but I'm not sure how to do a column check for if A is empty. The other thing I'm not sure about is how to keep a running total.
Any pointers please let me know.
Thx