+ Reply to Thread
Results 1 to 6 of 6

Price Changes

  1. #1
    Registered User
    Join Date
    08-27-2014
    Location
    Antwerp
    MS-Off Ver
    MS Office 2007
    Posts
    3

    Price Changes

    I have to make 'New Price' based on the 'Period' changes. For example if the number in 'Period' is 3 that means the 'New Price' for Jan and feb '13 are exactly the same as 'Market Price', but on March 13 is the average price of the previous two months. Important note: If the number in 'Period' is changed to other number, I need to make sure that the 'New Price' will automatically changed. For example if the 'Period' is 4 that means, the first four months of 'New Price' will be the same as the 'Market Price' but the in the fifth month will be the average price of the previous four. Please help.
    Exercise.xlsx
    Attached Images Attached Images

  2. #2
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Price Changes

    I don't like that the rule you use to describe your change is just a list of examples that the actual rule has to be deduced from.

    Here is what I think you want it to do:

    New Price is:
    IF the month of the record is less than the "Period"
    TRUE: Market Price
    FALSE: The average of all months less than the "Period" (assumed: in the same year).

    Anyway try this in C5 and pull down:

    Please Login or Register  to view this content.
    I wanted to use AVERAGEIFS, but since you needed to operate on the "dates" range, that wasn't feasible.

  3. #3
    Registered User
    Join Date
    08-27-2014
    Location
    Antwerp
    MS-Off Ver
    MS Office 2007
    Posts
    3

    Re: Price Changes

    Thanks for your reply and I tried the formula, it worked out but only on the first three rows. I got results but not the right numbers. I'm new to this forum and it has been a while ago since I use Excel again. Forgive my first examples. The number in 'Period' shows the intervals of changes for the 'New Price'. 3 that means price changes every three months, The first two will be the same as 'Market Price' but the third months is based on the previous two months in the 'market price'. I appreciate it if you could help one more time. I couldnt find whats the problem with your formula, it works out only on the first three rows in the 'New Price'. Many thanks.
    Last edited by dwirostia; 08-28-2014 at 02:19 AM.

  4. #4
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Price Changes

    So you're saying that every nth item is the average of the n-1 items before it; and all the non-nth items are the corresponding "market price"?

    Like so:
    where n = 3
    1 = market price
    2 = market price
    3 = average(1,2)
    4 = market price
    5 = market price
    6 = average(4,5)

    where n = 4
    1 = market price
    2 = market price
    3 = market price
    4 = average(1,2,3)
    5 = market price
    6 = market price
    7 = market price
    8 = average(5, 6, 7)
    etc

    Like that?

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Price Changes

    see the attached file
    Attached Files Attached Files
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  6. #6
    Registered User
    Join Date
    08-27-2014
    Location
    Antwerp
    MS-Off Ver
    MS Office 2007
    Posts
    3

    Re: Price Changes

    ben_hensel, yes.. That's what I meant. nflsales, great help. I appreciate it!! Thanks alot.

+ 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. How to automate weekly price updates from diff. suppliers into 1 price comparison sheet
    By blindside21 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-09-2014, 02:24 PM
  2. Replies: 1
    Last Post: 07-24-2013, 12:13 PM
  3. Replies: 3
    Last Post: 01-03-2013, 12:32 AM
  4. Replies: 4
    Last Post: 08-15-2012, 09:49 AM
  5. Question abuot creating a price quote from a long price list
    By glennchung in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 02-02-2009, 03:49 PM

Tags for this Thread

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