Results 1 to 6 of 6

comparing Sales Forecast with Stock and calculating requirements

Threaded View

  1. #1
    Registered User
    Join Date
    08-11-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    45

    comparing Sales Forecast with Stock and calculating requirements

    Hello!

    This is going to be my first VBA project and I am looking for some advise on how to approach it. I have only a basic knowledge of VBA and at the moment I really struggle not with the code but with making an initial design.

    I do not expect to get a ready to use code as I appreciate below is a complex problem. However I would be grateful for general tips how to design it and and ideally what steps I have to follow for example: "use for each loop to get data from sreadsheet X to Y and then use Workseet Funcion Z to get calculation" etc.

    Thank you in advance for all help.




    Please see my problem below:


    Stock spreadsheet has all the items I am trying to sell with 'sell by date' after which I cannot sell this item. Then in Sales Forecast I have forecasted sales. So now I am trying to calculate stock consumption to see if I will be left with any stock that I cannot sell.

    I need to deduct sales forecast from my stock holding but it needs to go by date i.e. consume all stock for Item 1 with date 16/09 before moving to Item 1 with 'sale by date' 23/09 and so on.

    So based on the attached example, I can see that on 16/09 I will consume only 5 cases from 'sell by date' 16/09 and another sale is 18/09. So that would give me information that I will be left with 95 items dated 16/09, which I cannot sell because they will be out of date.

    Ideally I would like also to include the logic that if Item is out of date it would move to the next 'sell by date'.

    So in this case sale of Item 1 forecasted for 18/09 (94) would consume the whole stock (50) with date 23/09 and another 44 from date 01/10

    For Item 2 I can see that units with 'Sell by date' 30/09 will be consumed on 25/09 and I will start taking stock from next 'sell by date' which is 14/10.

    I hope all this makes sense and someone would be able to help me out.

    I attached both spreadsheets plus an illustration of a solution I am looking for, which at the moment is done manually.
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 05-31-2014, 01:38 AM
  2. Replies: 0
    Last Post: 04-14-2014, 10:06 PM
  3. [SOLVED] Distribute stock to requirements until it becomes zero.
    By sbabu16 in forum Excel General
    Replies: 2
    Last Post: 12-17-2013, 08:52 AM
  4. Best sales forecast ever?
    By mikkelb in forum Excel General
    Replies: 0
    Last Post: 06-01-2012, 05:07 AM
  5. Can I have Excel count up my stock requirements?
    By marknorton in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-29-2008, 10:57 AM
  6. Sales forecast
    By kras in forum Excel General
    Replies: 2
    Last Post: 02-18-2007, 06:13 AM
  7. Replies: 4
    Last Post: 04-17-2005, 07:06 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