0
I have a spreadsheet in excel where purchase shares (C) and sale (V) are recorded in the same column, already in another column I have the traded values.
Example:
Ação | Valores
----------------
C | 3.000,00
C | 200
V | 3.500,00
In a second table I have records of deposit (D) and serve (S):
Ação | Valor
--------------
D | 5.000
S | 500
How can I calculate the balance total in portfolio considering that, each drawing (S) or purchase (C) should decrease the balance, already selling shares (V) or deposit (D) should increase the balance?