+ Reply to Thread
Results 1 to 7 of 7

Formula to calculate demand intervals

  1. #1
    Registered User
    Join Date
    06-06-2017
    Location
    India
    MS-Off Ver
    2013
    Posts
    3

    Formula to calculate demand intervals

    Hi All , I am new to this forum and seeking your help on a problem,
    I need to calculate the demand intervals for a forecasting sheet , so I have multiple demands and I need to calculate the period between the demands

    Demands Intervals
    Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec Jan Feb Mar Apr May Jun Jul Aug Sep Oct
    Demands 0 1 0 11 0 0 0 0 2 0 6 3 0 2 0 2 0 0 0 0 5 0

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,570

    Re: Formula to calculate demand intervals

    Hello fabian_andrew and Welcome to Excel Forum.
    I have set up a spreadsheet based on my understanding of the layout of your data.
    It may speed up the process if you will input the expected results and then attach the spreadsheet to a reply by clicking on the GO ADVANCED button below the Quick Reply window and then scrolling down to Manage Attachments to open the upload window.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  3. #3
    Registered User
    Join Date
    06-06-2017
    Location
    India
    MS-Off Ver
    2013
    Posts
    3

    Re: Formula to calculate demand intervals

    Hi JeteMc , Thank you for your response , yes your understanding is correct , I want to get the number of intervals 0 occurs plus the current which is greater that 0 , I am attaching the file with the expected output highlighted
    in yellowCapture.PNG

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Formula to calculate demand intervals

    fabian_andrew you attached a picture of your file, not the file itself. Pics are pretty much impossible to edit, so you need to share your (cleaned) file with us
    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    06-06-2017
    Location
    India
    MS-Off Ver
    2013
    Posts
    3

    Re: Formula to calculate demand intervals

    Hi , I have attached the file now , I have highlighted what out put I am looking for in yellow , I want to get the same for all the rows
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,570

    Re: Formula to calculate demand intervals

    This proposed solution employs a helper row, in columns AA:AL, for each part number.
    The formula that populates the helper rows is: =IF(A2=0,Z2+1,1)
    The formula that populates the table (yellow) is: =IF(B2=0,0,AA2)
    Let us know if you have any questions.
    Attached Files Attached Files

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Formula to calculate demand intervals

    Another way. Try array entering this in N2 and filling down and across. If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Dave

+ 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. Calculate Average Demand Intervall (ADI)
    By IndigoSK in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-18-2018, 06:20 AM
  2. Replies: 9
    Last Post: 03-18-2015, 09:28 AM
  3. [SOLVED] Calculate Defined Weekly Demand Based on Current Date
    By d_striker in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-09-2013, 03:24 PM
  4. use of countif formula to calculate time intervals eg.15 min interval
    By sachin kokitkar in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-25-2013, 10:32 AM
  5. How to calculate days of supply given variable demand per month
    By hkaushal in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-14-2013, 10:31 AM
  6. Fomula to calculate supply vs Demand - Stock
    By Achard in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 09-17-2008, 02:13 PM
  7. [SOLVED] Calculate the intersection of supply and demand curve
    By Angus in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-04-2005, 11:06 AM

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