• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Model automation challenge

Status
Not open for further replies.

Luis Maldonado

New Member
Dear Friends,
I am trying to build a model that put a different prices every x years. In this case my input is the following:
Price To year
a1: 2 b1: 5
a2: 3 b2: 10
a3: 4 b3: 15
a4: 5 b4: 20

The desired outcome would be in a row where the first 5 years have price 2, from year 6 to 10 the price is 3, from year 11 to 15 the price is 4 and from year 16 to 20 the price is 5. It should look like this:

Year 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Cost 2 2 2 2 2 3 3 3 3 3 4 4 4 4 4 5 5 5 5 5

Below each year it should be the corresponding price for that year.

I am trying to automate this part but I am having trouble with the right formula to use. I would really appreciate your help.
 
Status
Not open for further replies.
Back
Top