+ Reply to Thread
Results 1 to 4 of 4

Working out months of inventory on hand

  1. #1
    Registered User
    Join Date
    06-05-2015
    Location
    UK
    MS-Off Ver
    2013
    Posts
    35

    Working out months of inventory on hand

    Hi,

    Can anyone help with the below - I am trying to calculate in cell AN3 the current months of stock I have on hand based on the current forecasts and it is proving very tricky.
    I have put a description in cell AN3 of the attached of exactly what it is I am trying to do to try to clarify but essentially it takes the current month, looks at the current stockholding and then counts ahead the forecast to return in how many months time we will be out of stock. This one had me beaten so any help will be appreciated,

    thanks
    Attached Files Attached Files

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,995

    Re: Working out months of inventory on hand

    The most obvious way to solve this (to me) is to create another sheet that tracks the cumulative sums for your forecast. I could not think of a way to do this with just one formula, and without VBA, although it may be possible.

    You have a problem with the dates in your header row. See column Z, and then in column AA you start over again with 12/1/2016. It looks like that's supposed to be 2018. I have replaced your dates with a formula to generate the dates.

    In AN2 I assume the heading should be "Months Cover", not "Weeks Cover".

    There are a couple of issues that you have because of your data design that don't have anything to do with your question or my solution. If you want help with these, you can continue here or start a new thread.

    1. Keep in mind that your granularity is at the month level. For example, today is 3/30 but when adding your forecast you will count the entire month's forecast, even though there's only a day left. Do you need to do prorating?

    2. This formula tells you how many whole months you have left. If you have enough for a little over 2 months, the result will be 2.
    Attached Files Attached Files

  3. #3
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,957

    Re: Working out months of inventory on hand

    I decided to go with the VBA route and developed a UDF called WeeksCovered. The syntax is WeeksCoveres(CellRef) where CellRef is the cell containing the amount on hand.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  4. #4
    Registered User
    Join Date
    06-05-2015
    Location
    UK
    MS-Off Ver
    2013
    Posts
    35

    Re: Working out months of inventory on hand

    Hi Dflak and 6stringjazzer - both of you, great answers, thank you so much. I am currently using both of them on different workbooks to decide which will suit best going forward but I wanted to thank you both for supporting with your expertise, it is very much appreciated. They both work fantastically well.

+ 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. Days of Inventory on Hand Calculation
    By njsdca in forum Excel General
    Replies: 7
    Last Post: 03-10-2021, 01:55 PM
  2. Replies: 3
    Last Post: 11-23-2015, 01:49 PM
  3. Forward Months of Supply Inventory formula
    By stevemkiidub in forum Excel General
    Replies: 7
    Last Post: 06-18-2015, 09:12 AM
  4. Replies: 6
    Last Post: 07-06-2013, 10:02 PM
  5. [SOLVED] Need a hand to clean up working code (External Data fetch foreign exchange rates)
    By mc84excel in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-12-2013, 06:40 PM
  6. Excel 2007 : Calculate many months of inventory
    By noviceinexcel in forum Excel General
    Replies: 1
    Last Post: 10-22-2011, 01:30 PM
  7. Code for Inventory spreadsheet to add/subtract "on hand" amounts
    By DKS in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-28-2011, 02:49 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