Jose Fonyat
New member
- Joined
- Aug 30, 2017
- Messages
- 13
- Reaction score
- 0
- Points
- 0
- Location
- Brazil
- Excel Version(s)
- Microsoft 365 Apps Versao 2007
Let me know if someone could give me a help in a specific solution that I am facing.I have the following table with 5 columns:
My goal is to achieve another table with many lines (records)
Note that for each year of the contract I split in one line (record) and set the Total Points and Amount for each year.
As the Start Year, End Year and NumOfYyear changes accordingly.Is there a code suitable for this challenge?Any help would be appreciated.Best Regards
NumberContract | CustomerName | StartDate | EndDate | TotalYears | TotalPoints | Amount |
1 | Richard | 05.Jan.14 | 04.Jan.17 | 03 | 60000 | 30000 |
2 | Carl | 05.Feb.15 | 04.Jan.20 | 05 | 125000 | 100000 |
3 | Steve | 05.Mar.16 | 04.Feb.21 | 05 | 200000 | 150000 |
My goal is to achieve another table with many lines (records)
NumberContract | CustomerName | StartDate | EndDate | NumOfYear | TotalPoints | Amount |
1 | Richard | 05.Jan.14 | 04.Jan.15 | 1 | 20.000 | 10.000 |
1 | Richard | 05.Jan.15 | 04.Jan.16 | 2 | 20.000 | 10.000 |
1 | Richard | 05.Jan.16 | 04.Jan.17 | 3 | 20.000 | 10.000 |
2 | Carl | 05.Feb.15 | 04.Jan.16 | 1 | 25.000 | 20.000 |
2 | Carl | 05.Feb.16 | 04.Jan.17 | 2 | 25.000 | 20.000 |
2 | Carl | 05.Feb.17 | 04.Jan.18 | 3 | 25.000 | 20.000 |
2 | Carl | 05.Feb.18 | 04.Jan.19 | 4 | 25.000 | 20.000 |
2 | Carl | 05.Feb.19 | 04.Jan.20 | 5 | 25.000 | 20.000 |
3 | Steve | 05.Mar.16 | 04.Mar.17 | 1 | 40.000 | 30.000 |
3 | .... | ... | ... | ... | ... | ... |
Note that for each year of the contract I split in one line (record) and set the Total Points and Amount for each year.
As the Start Year, End Year and NumOfYyear changes accordingly.Is there a code suitable for this challenge?Any help would be appreciated.Best Regards
05.Feb.15 |