+ Reply to Thread
Results 1 to 2 of 2

Formula Import and export inventory according to expiration date and age of inventory

  1. #1
    Registered User
    Join Date
    07-22-2023
    Location
    Vietnam
    MS-Off Ver
    2019
    Posts
    14

    Formula Import and export inventory according to expiration date and age of inventory

    Dear all

    I have an import and export table of raw materials. I need to install the formula from columns I to Q. I want to calculate product inventory by date (first in, first out)
    for example, product A has the beginning number of the period on November 30 as 5, the input is 150 (in which December 31, 2022 is 50 and January 1, 2023 is 100, I am applying import first before export). Before, 30 should be exported, including 5(November 30), 25(December 31), so the final number of product A is 125 kg, including 25kg(December 31, 2022) and 100 kg(January 1, 2023). I want the remaining number of product A according to the warehouse date to calculate the age of the inventory

    THanks in advance
    Attached Files Attached Files
    Last edited by Hongnhung88; 01-31-2024 at 03:02 AM.

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

    Re: Formula Import and export inventory according to expiration date and age of inventory

    I rearranged the data.
    On the Input sheet the stock is arranged in rows 2:5 and the export is arranged in columns A:B
    The calculation of stock exported (first in, first out) in rows 6:11 is accomplished using: =IF(D$2=$A6,MIN(D$4-SUMIFS(D$5:D5,$A$6:$A6,D$2),$B6-SUMIFS($C6:C6,$C$2:C$2,$A6)),"")
    The remaining stock is calculated in row 1 using: =D4-SUM(D6:D11)
    On the Output sheet the PRODUCT, Date and AMOUNT columns are populated using formulas similar to:
    =IFERROR(INDEX(Input!$D$2:$K$3,COLUMNS($A3:A3),AGGREGATE(15,6,(COLUMN(Input!$D$2:$K$2)-COLUMN(Input!$C$2))/(Input!$D$1:$K$1>0),ROWS(I$3:I3))),"")
    The age of inventory columns are populated using formulas similar to: =IF(AND($D3<>"",$D3<=120),$C3,"")
    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.

+ 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. [SOLVED] Inventory Tracking - Formula to find beginning inventory and ending inventory based
    By Prof Sick in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-28-2021, 02:11 PM
  2. [SOLVED] Automate barcode scanning into an inventory sheet to add to actual inventory and subtract
    By Robert7474 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-28-2020, 12:06 PM
  3. Replies: 5
    Last Post: 10-18-2020, 03:56 AM
  4. [SOLVED] Formula for Inventory Summary based on Inventory List
    By EWolfe in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-19-2018, 10:35 AM
  5. Replies: 0
    Last Post: 09-04-2018, 02:52 AM
  6. Inventory Expiration Sheet
    By tmcgrue in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-24-2015, 02:43 PM
  7. Inventory Age Formula Needed for FIFO Inventory
    By SWeisser in forum Excel General
    Replies: 0
    Last Post: 07-20-2012, 02:44 PM

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