adding and subtracting using vb code

G

Guest

Is there a way to use vb codes to carry out adding, subtracting and to keep a
running total on individual items on a table? below is a small part of my
table.

A B C D
Item Stock in Stock out Stock held

Nails 100 20 80
Clips 100 50 50
Clips 0 20 30
Nails 50 10 120
and so on.

Items can be added to the table. Col 'D' keeps a running total of each
separate items.

Thank you.
 
G

Guest

If the data is as defined in your example, starting in row 3:

=SUMIF($A$3:A3,A3,$B$3:B3)-SUMIF($A$3:A3,A3,$C$3:C3)

HTH
 
G

Guest

Thanks very much
--
George


Toppers said:
If the data is as defined in your example, starting in row 3:

=SUMIF($A$3:A3,A3,$B$3:B3)-SUMIF($A$3:A3,A3,$C$3:C3)

HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top