+ Reply to Thread
Results 1 to 6 of 6

Stock Coverage

  1. #1
    Registered User
    Join Date
    07-25-2015
    Location
    USA
    MS-Off Ver
    MS Office 2010, Google Sheet
    Posts
    37

    Stock Coverage

    Hi all,

    Need help with what seems like a simple formula but couldn't figure it out.

    SETUP
    A column: product
    B column: sales weekly
    C column: Inventory total
    D column: stock coverage per week

    (D)column will calculate how many weeks (C)column can cover based on (B)column sales.

    Problem when sales is zero, the return comes back as "#DIV/0".

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor spitfireblue's Avatar
    Join Date
    01-29-2015
    Location
    Adelaide, Australia
    MS-Off Ver
    2007,2010,2016
    Posts
    611

    Re: Stock Coverage

    Hi Swaski,

    The error is saying that you cannot divide by zero, which is correct because you have x amount of stock but you are not selling any therefore your cover is infinity!
    If you don't want to show the error you can use a formula like this, which will put a blank space instead of "#DIV/0"

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Regards,
    Stephen

    If you feel someone has helped you please thank them and click on the star on their post to add reputation.
    Please ensure that you use code tags where relevant, and mark solved threads as solved.
    Most of all please be respectful and understanding of others.

  3. #3
    Registered User
    Join Date
    07-25-2015
    Location
    USA
    MS-Off Ver
    MS Office 2010, Google Sheet
    Posts
    37

    Re: Stock Coverage

    Thanks for the reply but since I still have inventory, even though no sales, it should display how many weeks my inventory can cover, not zero.

  4. #4
    Valued Forum Contributor spitfireblue's Avatar
    Join Date
    01-29-2015
    Location
    Adelaide, Australia
    MS-Off Ver
    2007,2010,2016
    Posts
    611

    Re: Stock Coverage

    Your weeks cover is infinity. Maybe you could change your formula to something like this?
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    07-25-2015
    Location
    USA
    MS-Off Ver
    MS Office 2010, Google Sheet
    Posts
    37

    Re: Stock Coverage

    @spitfireblue Thanks! I will use infinite for such results. However, if I have zero sales AND zero stock, the outcome is also infinite, shouldn't it be zero instead which helps trigger replenishment?

  6. #6
    Valued Forum Contributor spitfireblue's Avatar
    Join Date
    01-29-2015
    Location
    Adelaide, Australia
    MS-Off Ver
    2007,2010,2016
    Posts
    611

    Re: Stock Coverage

    You can ammend your formula like this...

    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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: 31
    Last Post: 10-28-2015, 01:54 AM
  2. Calculating payment coverage
    By ABSTRAKTUS in forum Excel General
    Replies: 3
    Last Post: 10-18-2015, 12:48 PM
  3. how to calculate the coverage
    By paolopam in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-10-2015, 07:58 PM
  4. Replies: 4
    Last Post: 01-29-2013, 02:26 AM
  5. Replies: 0
    Last Post: 10-28-2012, 07:22 AM
  6. verifying employee shift coverage
    By rad mp in forum Excel General
    Replies: 16
    Last Post: 10-07-2009, 08:11 AM
  7. Months Cover (Coverage)
    By MSABBIE in forum Excel General
    Replies: 0
    Last Post: 03-03-2009, 04:58 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