+ Reply to Thread
Results 1 to 3 of 3

Complicated:Calculate time period based on no. of units sold + fluctuations within period

  1. #1
    Registered User
    Join Date
    09-09-2009
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    2

    Complicated:Calculate time period based on no. of units sold + fluctuations within period

    Day Units Sold Day / Fluctuation
    1 10
    2 12
    3 15
    4 8
    5 7
    6 2
    7 16
    8 23
    9 45 1(-8), 2(-10)
    10 37


    Hi,

    Please see attached and above. Can anyone help me with a formula that will:

    Calculate for each cell in column B, if there has been an increase of 30 units since any of the previous days. If so, display all the days from which an increase of 30 has been gained, as well as any decrease in the number of units before the gain.

    Example in cell C9 - On day 9 there has been an increase of 30 since day 1 and 2 (and 3). 1 is displayed, and (-8) is displayed beside it because there was a maximum drop of 8 units from day 1 up until the gain was achieved.

    I think that's a bit of a messy explanation, but not sure how to put it more clearly. Thank you.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Complicated:Calculate time period based on no. of units sold + fluctuations within per

    pl see the attached file with macro.
    Attached Files Attached Files
    Last edited by kvsrinivasamurthy; 09-06-2012 at 02:31 AM.

  3. #3
    Registered User
    Join Date
    09-09-2009
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Complicated:Calculate time period based on no. of units sold + fluctuations within per

    Quote Originally Posted by kvsrinivasamurthy View Post
    pl see the attached file with macro.
    kvsrinivasamurthy thank you very much that's excellent.

+ 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