srodriguezv
New Member
- Joined
- May 26, 2017
- Messages
- 7
Hey guys,
This is my first post in this forum.
First of all I would like to be excused for my english, im from Chile so my native language is spanish. Ill try to do my best to explain my problem.
So I have this excel file with a macro to introduce the products, in my case shares, with the amount, price, date and type of movement (buy or sell).
The thing is that when i sell i want to do it by the FIFO method but im not achieving that.
I can upload my file with an example of what is doing wrong.
For example first ill buy 100 shares of Apple with the price of $15 per share,
then ill buy 50 shares more with a price of $20 per share,
to finally sell 120 shares for a price of $25 per share.
if i do the mental math my gain of capital with FIFO method should be:
100*(25-15) + 20*(25-20) = 1100
But im not getting that.
Please if you could help me ill be very happy.
Thanks
I've done the same post in another forum but got no answer
https://www.excelforum.com/excel-programming-vba-macros/1186919-fifo-inventory-problem.html#post4663079
This is my first post in this forum.
First of all I would like to be excused for my english, im from Chile so my native language is spanish. Ill try to do my best to explain my problem.
So I have this excel file with a macro to introduce the products, in my case shares, with the amount, price, date and type of movement (buy or sell).
The thing is that when i sell i want to do it by the FIFO method but im not achieving that.
I can upload my file with an example of what is doing wrong.
For example first ill buy 100 shares of Apple with the price of $15 per share,
then ill buy 50 shares more with a price of $20 per share,
to finally sell 120 shares for a price of $25 per share.
if i do the mental math my gain of capital with FIFO method should be:
100*(25-15) + 20*(25-20) = 1100
But im not getting that.
Please if you could help me ill be very happy.
Thanks
I've done the same post in another forum but got no answer
https://www.excelforum.com/excel-programming-vba-macros/1186919-fifo-inventory-problem.html#post4663079