E
exceluser
I'm trying to create a formula that returns a running net subtotal
(Profit and Loss) based on selling 100% of each product in stock.
This is how the correct output should look.
Date Product Transaction Price Qty. Net
1/1/2010 Apples Bought -$1.00 10 -$10.00
1/2/2010 Apples Bought -$1.00 5 -$15.00
1/3/2010 Apples Sold $2.00 15 $15.00
1/4/2010 Oranges Bought -$1.00 10 -$10.00
1/5/2010 Apples Bought -$1.00 10 -$10.00
1/6/2010 Apples Sold $2.00 10 $10.00
When a transaction = Bought, it means cash was needed to buy inventory
from a distributor which is why it is a negative number.
When a transaction = Sold, it means cash was received from a customer
who bought the inventory which is why it is a positive number.
The running subtotal formula should reside in each row of the Net
column.
When a transacton is made that sells the last of a product's
inventory, the difference between the cost of buying the product and
the income from the sale of the product should be reflected in that
row's subtotal.
The problem is that the running subtotal formulas I've created keep
adding money from inventory that has already been sold.
For example, the third Apples transaction reflects selling 100% of the
Apples inventory.
However, the fourth Apples transaction would keep adding the $15.00
profit to the running subtotal.
Any ideas on how to get the running subtotal to start over when all
inventory has been sold ?
(Profit and Loss) based on selling 100% of each product in stock.
This is how the correct output should look.
Date Product Transaction Price Qty. Net
1/1/2010 Apples Bought -$1.00 10 -$10.00
1/2/2010 Apples Bought -$1.00 5 -$15.00
1/3/2010 Apples Sold $2.00 15 $15.00
1/4/2010 Oranges Bought -$1.00 10 -$10.00
1/5/2010 Apples Bought -$1.00 10 -$10.00
1/6/2010 Apples Sold $2.00 10 $10.00
When a transaction = Bought, it means cash was needed to buy inventory
from a distributor which is why it is a negative number.
When a transaction = Sold, it means cash was received from a customer
who bought the inventory which is why it is a positive number.
The running subtotal formula should reside in each row of the Net
column.
When a transacton is made that sells the last of a product's
inventory, the difference between the cost of buying the product and
the income from the sale of the product should be reflected in that
row's subtotal.
The problem is that the running subtotal formulas I've created keep
adding money from inventory that has already been sold.
For example, the third Apples transaction reflects selling 100% of the
Apples inventory.
However, the fourth Apples transaction would keep adding the $15.00
profit to the running subtotal.
Any ideas on how to get the running subtotal to start over when all
inventory has been sold ?