+ Reply to Thread
Results 1 to 4 of 4

Need formulas to adjust order and balance if inventory exceeds threshold

  1. #1
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,397

    Need formulas to adjust order and balance if inventory exceeds threshold

    Cols B - C list six months' budgeted weekly sales.

    As different Products have different Lead Times, and different Order sizes, formulas in Cols F and G "match" the Lead Time week against the Sale week and "round up" the Quantities where necessary:

    =IFERROR(CEILING(INDEX($C$6:$C$30,MATCH(E6+(G$4*7),$B$6:$B$30,0)),F$4),"")

    (Finds the quantity in Col C where Col B matches 'Lead time date in Col E + Lead time weeks in G4', and "rounds up" the quantity to the nearest Order Value in E4.)
    E.g Sales w/e 21 Jan will be 7,670 items. Order has to be placed two weeks in advance (7 Jan), As the Order quantity is in 50s, the order will be for 7,700, leaving 30 in Inventory.
    Cols F - G show "unchanged" Orders and resulting Closing Stocks.

    All that works perfectly.

    What I need is to incorporate another element in the Col F formula so it reduces the order quantity by however many multiple of the Order Size IF the previous week's inventory exceeds the Order Value, and change the formula in Col G so it deducts the previous 'excess' inventory (as shown in Cols J - K).

    Checksums in row 39 show all three sets match in total, but utilising the excess inventory (Col K) saves buying 450 units.

    All solutions, suggestions and alternatives welcome as ever.

    Ochimus
    Last edited by Ochimus; 03-18-2024 at 02:42 PM.

  2. #2
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,060

    Re: Need formulas to adjust order and balance if inventory exceeds threshold

    Try,
    F6=IFERROR(MAX(0,CEILING(INDEX($C$6:$C$38,MATCH(E6+G$4*7,$B$6:$B$38,0))-N(G5),F$4)),"")
    G6=SUMIFS(F$6:F$38,E$6:E$38,"<="&E6)-SUMIFS($C$6:$C$38,$B$6:$B$38,"<="&E6+G$4*7)
    Copy to J6 and K6 respectively.

  3. #3
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,397

    Re: Need formulas to adjust order and balance if inventory exceeds threshold

    josephteh,

    Many thanks for prompt response and amendments.
    Not come across the "N(G5) concept before, so need to look into that.
    Also appreciate your approach using Inventory generated IN the week to reduce the Order makes more sense than my version, which uses it in the week following.

    Can now mark this as solved.

    Ochimus

  4. #4
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,060

    Re: Need formulas to adjust order and balance if inventory exceeds threshold

    You are welcome! Thanks for the Rep and for marking this thread as solved.

+ 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. Replies: 4
    Last Post: 09-09-2021, 10:24 PM
  2. Barcode Scanner Inventory With Count Exceeds the Approved Qty
    By mohmadhabib in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-04-2021, 08:38 AM
  3. Replies: 7
    Last Post: 12-04-2020, 03:06 AM
  4. Conditional Formatting when one date exceeds another by a threshold amount
    By jtfolk22 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-25-2020, 04:22 PM
  5. MsgBox when cell value in column exceeds a threshold.
    By Stew1234 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-14-2014, 02:41 PM
  6. Counting number of times a maximum exceeds a threshold on a certain frequency
    By varsakov in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-04-2013, 02:21 PM
  7. Replies: 4
    Last Post: 01-02-2011, 04:30 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