snasui.com ยินดีต้อนรับ ยินดีต้อนรับสู่กระดานถามตอบ Excel and VBA และอื่น ๆ ที่เป็นมิตรกับทุกท่าน มีไฟล์แนบมหาศาล ช่วยให้ท่านค้นหาและติดตามศึกษาได้โดยง่าย สมาชิกท่านใดที่ยังไม่ได้ระบุ Version ของ Excel ที่ใช้งานจริง สามารถทำตาม Link นี้เพื่อจะได้รับคำตอบที่ตรงกับ Version ของท่านครับ ระบุ Version ของ Excel
I got an issue how to write excel formula to calculate cost of sale using FIFO method.
Example; 10 sales were made for the E5. According to FiFo, first 5 of the purchases will be calculated from 10 in C2... the remaining 5 will be calculated from 30 in C3... so selling cost for E5 (5*10)+(5*30)= 200....
Thanks
You do not have the required permissions to view the files attached to this post.
Thanks for your all reply.In FiFo, the basic logic is always the product that is purchased first is sold. When the first purchase is finished, the other product is sold. .the negative amount is sale amount and positive amount is purchase one.
the results should be in column E.the narratives are in grey cells of how to get amount in column E.
What formula should I go?
Thanks in advance
Best wishes,
You do not have the required permissions to view the files attached to this post.