+ Reply to Thread
Results 1 to 4 of 4

Trend Calculation using VBA

  1. #1
    Registered User
    Join Date
    08-14-2011
    Location
    Jakarta, Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    63

    Trend Calculation using VBA

    Hi all,

    I working with inventory and I would like to know the trend during the last cycle of an article lead time.

    I have attached a file, hopefully with add clarity to the calculation which I would to have.

    Within that file several article of inventory have been outlined.
    As calculation example, article AAA has a lead time of 7 weeks, and I would like to check the trend based on formula written in cell Y2.

    There are two question:
    1. Is it the right methodology to check for the trend?
    2. If the answer for 1 is correct, then what would be the best method to employ it using VBA?

    Thanks for any help given.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    08-14-2011
    Location
    Jakarta, Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    63

    Re: Trend Calculation using VBA

    Hmm.. still no response..

  3. #3
    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: Trend Calculation using VBA

    Probably because no one understands your data. What's the header row mean? What's the data in the body of the table? What's the significance of the highlighting? What are you trying to calculate? What's the formula supposed to calculate, and how did you arrive at it?
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    08-14-2011
    Location
    Jakarta, Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    63

    Re: Trend Calculation using VBA

    Quote Originally Posted by shg View Post
    Probably because no one understands your data. What's the header row mean? What's the data in the body of the table? What's the significance of the highlighting? What are you trying to calculate? What's the formula supposed to calculate, and how did you arrive at it?
    The header row, within that file what stated within row 1 of the sheet 1:
    it contains: ART # (cell A1), DESCRIPTION (cell B1) and week number W40 (cell C10) to W8 (cell W1). The lead time for each article is given in column X.

    The manual calculation in Y1 is the summation of the two adjacent cell from the beginning of the last lead time cycle (Q2) until V2.
    Y2 = =(R2-Q2)/Q2+(S2-R2)/R2+(T2-S2)/S2+(U2-T2)/T2+(V2-U2)/U2+(W2-V2)/V2
    and if the summation is positive then the trend is generally upward and vice versa.

    The highlighted cells is to show the last lead time cycle for each article.

+ 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] whether the stock price is raising trend or fallen trend analysis by excel macro
    By nur2544 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-11-2013, 09:35 AM
  2. [SOLVED] Calculation // trend Analysis
    By nicci113 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-23-2013, 05:19 PM
  3. Replies: 1
    Last Post: 01-15-2013, 08:51 AM
  4. Need help with trend calculation
    By excelify in forum Excel General
    Replies: 2
    Last Post: 04-15-2010, 08:44 AM
  5. Program for calculation a power trend line.
    By Houston banker in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-26-2005, 05:05 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