+ Reply to Thread
Results 1 to 7 of 7

Calculating a running difference then returning last non-negative date

  1. #1
    Registered User
    Join Date
    01-04-2013
    Location
    USA
    MS-Off Ver
    2010
    Posts
    3

    Calculating a running difference then returning last non-negative date

    Hi all,

    I have a spreadsheet with three column values:
    Column A is YYYYWK
    Column B is sales
    Column C is stock

    For any given current week (i.e. today would be week 1), I want to be able to take current week ending inventory and subtract sales, until I get to a negative value, then return the column value for the last week that had a positive cumulative value. My goal is to see how many weeks I have to sell if I didn't replenish stock
    Last edited by emdee; 01-06-2013 at 07:37 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: Calculating a running difference then returning last non-negative date

    Try this... =INT(C1/B1)

    This should give you the number of weeks before negative inventory.

  3. #3
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: Calculating a running difference then returning last non-negative date

    Try this... =INT(C1/B1)

    This should give you the number of weeks before negative inventory.

  4. #4
    Registered User
    Join Date
    01-04-2013
    Location
    USA
    MS-Off Ver
    2010
    Posts
    3

    Re: Calculating a running difference then returning last non-negative date

    The sales values vary per week, and the week end inventory value also varies per week, so this would not work.

  5. #5
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: Calculating a running difference then returning last non-negative date

    B1 and C1 are the cells that you want to enter the sales values and week end inventory values, change the cell reference if needed

  6. #6
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: Calculating a running difference then returning last non-negative date

    Can you send a sample spreadsheet?

    Click on Go Advanced and look for a paperclip...

    re-post: please give some sample problems and the results that you want to see...

    Is this what you have in mind?
    Attached Files Attached Files
    Last edited by djapigo; 01-04-2013 at 08:33 PM.

  7. #7
    Registered User
    Join Date
    01-04-2013
    Location
    USA
    MS-Off Ver
    2010
    Posts
    3

    Re: Calculating a running difference then returning last non-negative date

    I'd want to find the week for today(), then take the stock for that row and subtract sales starting at same row, and continue down the sales column until the value is negative, then return the week prior to the week it became negative.
    Last edited by emdee; 01-06-2013 at 07:39 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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