Closed Thread
Results 1 to 8 of 8

Formular for cost of individual sold item using fifo

  1. #1
    Registered User
    Join Date
    06-07-2018
    Location
    Arusha
    MS-Off Ver
    2017
    Posts
    4

    Question Formular for cost of individual sold item using fifo

    Hello, I know how to get COGS using FIFO and that is now my problem. I need to know how to calculate cost price of the product I sell using FIFO.

    EXAMPLE
    DAY 1 >> I bought 50 items for 21usd
    DAY 2 >> I bought 50 items for 23usd
    DAY 3 >> I sold 60 items.

    Now I want to know the UNIT COST that will be used for those 60 items. When I get it I will multiply by those 60 items and then I will reduce my remaining total inventory value by that amount. I know the way to get COGS in total but I need the UNIT COST to be multiplied by those 60 items.

    It should NOT be VBA or Macro

    I have attached the excel file so you can help me on the formula on the YELLOW shaded column.

    Thank you in advance, I got help here from others issues before and I expect to get again. Thank you
    Attached Files Attached Files
    Last edited by xfile; 06-08-2018 at 07:37 AM. Reason: Including condition

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,572

    Re: Formular for cost of individual sold item using fifo

    Hello xfile and Welcome to Excel Forum.
    I imagine that it is just a 'translation' thing but "It should NOT be VBA or Macro" is pretty demanding when you are asking people to volunteer their time to help.
    The attached copy of the file shows a proposed formula based solution that employs a large number of helper columns which may be moved and/or hidden for aesthetic purposes.
    The formula to fill the 'Unit Price' column is: =IF(H4="","",SUMPRODUCT(M4:Z4,M$3:Z$3)/H4)
    The dates, quantities and unit prices in the helper columns are populated using formulas similar to: =INDIRECT(ADDRESS(COLUMN(D:D),ROW(3:3)))
    The light blue portion of the helper columns is populated using: =IF($H4="","",MIN(M$2-SUM(M3:M$4),$H4-SUM($L4:L4)))
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,215

    Re: Formular for cost of individual sold item using fifo

    See attached:
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    06-07-2018
    Location
    Arusha
    MS-Off Ver
    2017
    Posts
    4

    Re: Formular for cost of individual sold item using fifo

    Thank you for your reply and I believe it was a hard work. First I APOLOGISE for the sentence "It should NOT be VBA or Macro", English is my second language and sometime I may misuse some words. I am very sorry for that to everyone. I will download the file and see the solution and I will get back to you soon.

    Again thank you for solution and reminder of the term I used and I am sorry for the term.

  5. #5
    Registered User
    Join Date
    06-07-2018
    Location
    Arusha
    MS-Off Ver
    2017
    Posts
    4

    Re: Formular for cost of individual sold item using fifo

    Hello,
    To all John & JeteMc

    All your works are working perfect and they helped solving my problem. Thank you very much, I will use Jete's for single product and John's for multiple product. I will take time to understand the logic behind the formula to improve my skills. I like you guys and this forum is the first to me to be useful.

    Thank you for your time

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,572

    Re: Formular for cost of individual sold item using fifo

    You're Welcome. Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

  7. #7
    Registered User
    Join Date
    04-22-2023
    Location
    India
    MS-Off Ver
    2021
    Posts
    4

    Re: Formular for cost of individual sold item using fifo

    This was helpful! Is it possible to add a period of holding for every usage? Request help

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,981

    Re: Formular for cost of individual sold item using fifo

    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 03-01-2017, 05:41 PM
  2. Require a formular for FIFO method with different rates
    By shashi30790 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2016, 01:13 AM
  3. Auto decrease quantity of an item when the item is sold.
    By acidust in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-11-2016, 07:46 PM
  4. Replies: 6
    Last Post: 01-13-2015, 05:42 PM
  5. fifo value by item computed from observed quantity-by item and-purchase information
    By shifty911 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-10-2014, 06:44 PM
  6. 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
  7. Cost of good sold (formula to work out how much to sell item for?)
    By hemeravisuals in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-21-2013, 09:51 PM

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