+ Reply to Thread
Results 1 to 3 of 3

Cost of stocks Sold

  1. #1
    Registered User
    Join Date
    07-27-2020
    Location
    Chennai
    MS-Off Ver
    2013
    Posts
    2

    Post Cost of stocks Sold

    Hello!

    I am new to this forum and I need help on calculating cost of stocks sold.

    I have attached an excel file here. There are multiple securities purchased and sold multiple times, dividends received, splits, etc.

    I need the cost of securities sold in column F using FIFO method. I tried many formulas, but did not work.

    Can anyone help to get this?

    Thanks in advance!!
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Cost of stocks Sold

    1. Please provide a few manually calculated answers, with an explanation of how you reached the answers.

    2. Is it possible to sort the data into date order, first?
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    07-27-2020
    Location
    Chennai
    MS-Off Ver
    2013
    Posts
    2

    Re: Cost of stocks Sold

    Thank you, Mr Glenn.

    I have rearranged the data into date order.

    The first sale starts on 07/04/2020 and the cost of goods sold is E3+E4+E6+E8 and E9/D9*999.85 (balance after d3+d4+d6+d8).

    The column E indicates sale value for transaction type "SELL" and purchase cost for "BUY" & "DIV".

    We need to look for each and every transaction to get the stock and its cost.

    The second sale is on 01/06/2020 for which there is only one purchase exists prior to the sale date. Hence, I have divided the cost proportionately.

    Since there are many chances to make mistakes while doing this manually, I need to do this automatically using same formula / vba
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Forumla for Selling Price - Cost, only if Sold
    By Kevin.Es in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-08-2018, 08:22 AM
  2. Formula for Selling Price - Cost, only if Sold
    By Kevin.Es in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-07-2018, 11:31 AM
  3. Cost of Good Sold VBA Code to formula
    By zaska in forum Excel General
    Replies: 1
    Last Post: 09-23-2018, 07:19 AM
  4. How to calculate cost of item sold at a mark-up of 2.5%?
    By yjohari in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-21-2013, 07:38 PM
  5. Costs Price Profit and Cost of goods sold
    By kraysellz in forum Excel General
    Replies: 1
    Last Post: 10-24-2010, 12:56 PM
  6. cost of goods sold formula
    By kim.wilson in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-04-2010, 04:48 PM
  7. Cost of Sold Calc
    By Nath in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-05-2008, 06:15 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1