+ Reply to Thread
Results 1 to 8 of 8

Find Number of Days Without Inventory

  1. #1
    Registered User
    Join Date
    09-26-2016
    Location
    South Bend, IN
    MS-Off Ver
    Excel 2007
    Posts
    4

    Find Number of Days Without Inventory

    Hi there. I am trying to find a way to calculate the number of days a business did not have product in stock using multiple dates.

    Product Ship Date Sold Date
    A 3/28/2016 5/15/2016
    A 3/28/2016 6/3/2016
    A 3/28/2016 7/15/2016
    B 3/29/2016 7/18/2016
    A 4/15/2016 7/15/2016
    C 4/30/2016 5/5/2016
    B 6/30/2016 8/25/2016
    A 7/27/2016 8/18/2016
    A 7/27/2016 8/26/2016
    C 8/11/2016 9/25/2016

    I want to calculate the number of days between 4/1/2016 and 9/1/2016 they had zero inventory of Product A, B, and C. The number I am trying to get for Product A is 18, Product B is 7, and Product C is 127.

  2. #2
    Forum Contributor
    Join Date
    08-23-2016
    Location
    India
    MS-Off Ver
    MS Office Professional Plus 2013
    Posts
    194

    Re: Find Number of Days Without Inventory

    Please attach a test file here with data.
    Ash

  3. #3
    Registered User
    Join Date
    09-26-2016
    Location
    South Bend, IN
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Find Number of Days Without Inventory

    Attachment is included.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    08-23-2016
    Location
    India
    MS-Off Ver
    MS Office Professional Plus 2013
    Posts
    194

    Re: Find Number of Days Without Inventory

    The data doesn't show when the business did not have product in stock.

    What is the logic of Product A is 18, Product B is 7, and Product C is 127 ?

  5. #5
    Registered User
    Join Date
    09-26-2016
    Location
    South Bend, IN
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Find Number of Days Without Inventory

    Those numbers equal the number of days when a product was not present in inventory.

    I am trying to count the number of days where all of product A is sold, but a new shipment hasn't arrived yet.

    Ship date will correspond to the first day it is in inventory and sold date is the date it leaves inventory.

    For example, if we are looking at the dates 4/1 to 9/1, there was zero inventory of product A from 7/15 until 7/27 and then again from 8/26 to 9/1.

    Please let me know if this helps. Thanks!

  6. #6
    Banned User!
    Join Date
    10-29-2012
    Location
    Europe
    MS-Off Ver
    2013, 2016
    Posts
    318

    Re: Find Number of Days Without Inventory

    In your file date are different then date you describe in #5

  7. #7
    Registered User
    Join Date
    09-26-2016
    Location
    South Bend, IN
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Find Number of Days Without Inventory

    Revised file with a color coded explanation of how I am coming up with my numbers. I am using an arbitrary time period of 4/1 to 9/1 even though the earliest ship dates are before that date.

    Please let me know if this is more clear. Thank you for all of the help!
    Attached Files Attached Files

  8. #8
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Find Number of Days Without Inventory

    This may work for you. I created a table out of your data and then sorted by the Product to group like products together. I then added two columns to the table (columns D and E). I also entered the start date of the period in M2 and the end date in M3.

    Formula for column D entered in D2 (this will auto fill column D with the formula) This calculates the difference between order dates where there wouldn't be any inventory.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Enter this formula in E2 (column will auto fill). This will calculate days that inventory is absent before the first order
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The desired values are in column J.
    Enter this formula in J2 and fill down
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    I have no time to test this against all scenarios so I may not have covered everything.
    If nothing else, it should give you some ideas on how to proceed.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ 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. Find number of overlapping days per person
    By maryjane84 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-21-2016, 12:46 PM
  2. [SOLVED] Formual to find number between 2 days
    By rizmomin in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 08-26-2014, 10:54 PM
  3. [SOLVED] Find number of days between two dates
    By Test123Test in forum Excel General
    Replies: 9
    Last Post: 04-17-2014, 03:19 PM
  4. Find average number of days taken
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-20-2011, 02:36 AM
  5. Number of Days (Sales) Inventory
    By mud_shark in forum Excel General
    Replies: 6
    Last Post: 02-24-2010, 02:24 AM
  6. [SOLVED] How to find the number of days from 2 dates?
    By cyberdude in forum Excel General
    Replies: 1
    Last Post: 06-16-2006, 03:50 AM
  7. [SOLVED] Find number of days between to dates
    By Qaspec in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-20-2005, 09: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