+ Reply to Thread
Results 1 to 4 of 4

Berekening winst verkoop aandeel volgens FIFO methode

  1. #1
    Registered User
    Join Date
    02-29-2024
    Location
    Belgium
    MS-Off Ver
    Microsoft 365
    Posts
    2

    Question Berekening winst verkoop aandeel volgens FIFO methode

    ChatGTP kan dit blijkbaar niet oplossen en zelf ken ik te weinig van excel om wat ik manueel kan uitrekenen te automatiseren in excel voor grotere datasets.
    Bedoeling is een formule (eventueel in meerdere stappen/kolommen) die per verkooplijn weergeeft hoeveel "winst" er gemaakt werd op die verkoop en dat via de First in First Out (FIFO) methode.
    Als kost van aankoop van de verkochte stukken worden eerste de oudst aangekochte stukken verkocht.

    In bijlage een deel van een dataset en het manuele denkproces. Indien de "winst" van een verkooplijn negatief is dient de cel leeg of 0 weer te geven.
    Heeft iemand een idee hoe dit aan te pakken om dit te vertalen in excel formules en eventueel extra kolommen?

    Dataset en denkproces.xlsx

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

    Re: Berekening winst verkoop aandeel volgens FIFO methode

    Hello Tigerke1983 and Welcome to Excel Forum (which outperforms ChatGTP most of the time)
    Perhaps the calculation matrix on Blad 1 will help.
    The formulas used to automate the arrangement of Koop and Verkoop entries are:
    1. For Koop: =IFERROR(INDEX($A$2:$E$34,AGGREGATE(15,6,(ROW(A$2:A$34)-ROW(A$1))/($C$2:$C$34="Koop"),ROWS(G$6:G6)),MATCH(G$5,$A$1:$E$1,0)),"")
    2. For Verkoop: =IFERROR(INDEX($A$2:$E$34,AGGREGATE(15,6,(ROW($A$2:$A$34)-ROW($A$1))/($C$2:$C$34="Verkoop"),COLUMNS($L1:L1)),MATCH($K1,$A$1:$E$1,0)),"")
    The calculation matrix formula is: =MIN($I6-SUM($K6:K6),L$3-SUM(L$5:L5))
    Summations are in rows 35:38
    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
    Registered User
    Join Date
    02-29-2024
    Location
    Belgium
    MS-Off Ver
    Microsoft 365
    Posts
    2

    Re: Berekening winst verkoop aandeel volgens FIFO methode

    Wow that's definitly what I need! But now I need to figure out how to do the same with different or bigger sets of data. Is there a way I can extend the formula's and/or the Matrix for more data? . How much of it was manual labour and how much is the formulas?
    You're a wizard! Definitly better than ChatGTP indeed.
    If ever need some help with tax matters for Belgian personal tax just give a sign.

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

    Re: Berekening winst verkoop aandeel volgens FIFO methode

    The only manual portion is entering the data into columns A:E.
    I suggest converting that data into an Excel table. In the attached file I named it tbl_Data.
    1. Use structured references in the formulas in the green sections.
    For "Koop":
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    For "Verkoop":
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    2. Modify the calculation matrix section (blue):
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    3. Move the summations to rows 1:4 so that they will be easily visible.
    4. Cell L4 is populated using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    To extend tbl_Data select cell E34 and press the Tab key.
    The "Koop" green section is extended down to row 100. If you need to extend further then select cells G100:J100 and drag the fill handle down.
    The "Verkoop" green section is extended across to column BZ. I you need to extend further then select BZ6:BZ9 and drag the fill handle to the right.
    The summation section (amber) is extended to column BZ. I you need to extend further then select BZ1:BZ3 and drag the fill handle to the right.
    The calculation matrix section is also extended and may be extended further by selecting L11:BZ100 and then dragging the fill handle down and over.
    Let us know if you have any questions.
    As to tax help, if you should someday find a person that is in need, consider this their payment.
    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. Faster methods to read tables in power query
    By Undo in forum Excel General
    Replies: 0
    Last Post: 03-11-2023, 01:49 AM
  2. automatische berekening "overuren-teller"
    By oederdekoe in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-05-2021, 01:18 PM
  3. Need fifo qty and value in fifo qty and value column
    By makhdoomliaqat in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-28-2021, 07:16 AM
  4. Methode or dataobject not found
    By Ruseju in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-12-2016, 07:02 AM
  5. paste methode is failed
    By ivanovic in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-17-2015, 04:41 AM
  6. [SOLVED] Very small AutoFill macro showing "AutoFill methode of range class failed" why ?
    By nur2544 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-28-2013, 10:21 PM
  7. [SOLVED] Methode 'Cells' of object '_Worksheet' failed
    By Filips Benoit in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-16-2005, 07:06 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