+ Reply to Thread
Results 1 to 9 of 9

Calculate Average Demand Intervall (ADI)

  1. #1
    Registered User
    Join Date
    02-09-2015
    Location
    Germany
    MS-Off Ver
    2013
    Posts
    30

    Calculate Average Demand Intervall (ADI)

    Hey,

    I donīt know how to calculate the average demand intervall (ADI) for a time series in Excel. Perhaps you can help me to solve the problem. In the attached file there is a time series for intermittent demand. The calculation for the green cells is necessary. I donīt get it. Perhaps it is also possible to calculate the ADI in only one cell without the intermediate step.

    Thank you so much.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    02-09-2006
    Location
    Melbourne, Australia
    MS-Off Ver
    Office 2016
    Posts
    1,075

    Re: Calculate Average Demand Intervall (ADI)

    This formula in cell P1 gives the result you want.
    =N2/COUNTIF(B2:M2,"=0")
    Trish in Oz
    -------------
    A problem well defined is a puzzle half solved


    If you attach a sample of your workbook it will be easier to find a solution. Remember to remove/replace sensitive data before uploading the file. Look here if you need help with attachments:
    http://www.excelforum.com/faq.php?fa...b3_attachments

  3. #3
    Registered User
    Join Date
    02-09-2015
    Location
    Germany
    MS-Off Ver
    2013
    Posts
    30

    Re: Calculate Average Demand Intervall (ADI)

    Thatīs right. Thank you. Can you also show me, how I get to the result in N2?

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Calculate Average Demand Intervall (ADI)

    Based on http://tesi.cab.unipd.it/25014/1/Tes...garo580457.pdf, row 3 doesn't look correct for the data in row 2.

    Row\Col
    A
    B
    C
    D
    E
    F
    G
    H
    I
    J
    K
    L
    M
    N
    O
    1
    Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec Avg Inter-Demand Interval
    2
    Amount
    0
    2
    5
    0
    2
    5
    0
    0
    5
    2
    0
    2
    1.25
    N2: {=SUM(FREQUENCY(IF(B2:M2=0, COLUMN(B2:M2)), IF(B2:M2<>0, COLUMN(B2:M2)))) / SUMPRODUCT(--(FREQUENCY(IF(B2:M2=0, COLUMN(B2:M2)), IF(B2:M2<>0, COLUMN(B2:M2)))=0))}
    3
    intervals
    1
    1
    2
    1
    3
    1
    2
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Registered User
    Join Date
    02-09-2015
    Location
    Germany
    MS-Off Ver
    2013
    Posts
    30

    Re: Calculate Average Demand Intervall (ADI)

    Hey,

    thatīs it! Wow. Thank you. But I have uploaded a sheet, where it comes to a division through zero. Therefore there is no result. Do you see a chance to fix this?

    Bye
    Attached Files Attached Files

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Calculate Average Demand Intervall (ADI)

    My bad.

    Row\Col
    A
    B
    C
    D
    E
    F
    G
    H
    I
    J
    K
    L
    M
    N
    O
    P
    Q
    R
    2
    Prod 2011Q1 2011Q2 2011Q3 2011Q4 2012Q1 2012Q2 2012Q3 2012Q4 2013Q1 2013Q2 2013Q3 2013Q4 2014Q1 2014Q2 2014Q3 2014Q4
    ADI
    3
    A
    348
    342
    670
    48
    318
    1164
    882
    516
    508
    654
    738
    228
    324
    930
    294
    666
    #DIV/0!
    4
    B
    0
    240
    162
    120
    12
    432
    852
    444
    240
    264
    0
    108
    78
    414
    168
    132
    1.0
    5
    C
    348
    570
    886
    72
    0
    600
    228
    18
    252
    36
    606
    408
    312
    744
    792
    1506
    1.0
    6
    D
    18
    12
    474
    0
    102
    444
    18
    168
    0
    12
    30
    0
    0
    84
    294
    0
    1.3
    7
    E
    60
    36
    162
    18
    114
    42
    6
    60
    174
    24
    558
    210
    624
    30
    996
    84
    #DIV/0!
    8
    F
    36
    42
    0
    6
    6
    18
    180
    18
    12
    0
    6
    0
    0
    24
    36
    6
    1.3
    9
    G
    54
    24
    6
    12
    36
    12
    6
    24
    18
    6
    114
    72
    0
    48
    18
    12
    1.0
    10
    S
    800
    2400
    4500
    4400
    900
    1000
    2700
    1200
    500
    1200
    2100
    400
    0
    100
    0
    0
    1.5
    11
    Z
    0
    0
    0
    0
    1
    0
    5
    0
    0
    0
    0
    1
    0
    0
    0
    0
    3.3


    The array formula in R3 is

    Please Login or Register  to view this content.
    The reason for the #DIV/0! errors is that there are no non-demand periods for those products.
    Last edited by shg; 02-10-2015 at 12:51 PM.

  7. #7
    Registered User
    Join Date
    02-09-2015
    Location
    Germany
    MS-Off Ver
    2013
    Posts
    30

    Re: Calculate Average Demand Intervall (ADI)

    Hi,

    sorry for late answering. I have tried to understand what the expressions mean

    The first part of the calculationg about the non-zero demand is surely right, but I think there is a misunderstanding about the calculation in the second part. The source you mentioned and also the calculation in the following links give another solution as your solution above.

    http://www.supplychainfocus.com/foru...-interval.html
    http://www.supplychainfocus.com/foru...-interval.html


    I have attached a new file, with the final results. The green area is already right now, but the red one is missing. Can you look at this one for a second time. Perhaps you have the right formula to get the right solution. It would be nice, when the "ADI" is calculated in only one field, too. Thanks a lot.

    Bye
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    12-18-2018
    Location
    germ
    MS-Off Ver
    7
    Posts
    1

    Re: Calculate Average Demand Intervall (ADI)

    Hi,

    Please, how to calculate ADI in excel sheet.

    Thanks!
    Last edited by Adiaba; 12-18-2018 at 06:19 AM.

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,984

    Re: Calculate Average Demand Intervall (ADI)

    Unfortunately your post does not comply with Rule 4 of our Forum RULES. 4. Do not post a new help request in an existing thread. (B)


    Please start your own thread. If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. [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
  2. 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
  3. Excel 2007 : Timline using a 2s intervall
    By Karl F. in forum Excel General
    Replies: 0
    Last Post: 04-23-2012, 05:17 AM
  4. Fomula to calculate supply vs Demand - Stock
    By Achard in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 09-17-2008, 02:13 PM
  5. [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