See attachment.
2 issues.
1. The formula counts J2 as a new record year even if there was no dividend paid any previous years. I want to start to count on K2 instead as this is the first year it records a year that has a higher number than the previous year.
2. It counts L2 as a new record year even if it was L1 was identical in value as K1. I want it to only count if the next number is higher than the previous number AND higher than the previous highest number in the dataset.
Example of dataset:
Year: 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10
Dividend: 0 - 1 - 2 - 3 - 4 - 3 - 5 - 6 - 7 - 7
Number of years of new record dividend: 1 - 2 - 3 - - 4 - 5 - So this should be counted as 5 new years of record dividend.
Hope this helps.
The current formula I use now for Number of years of new record dividend is =IF(MAX($B158:J$158)=J158;MAX($A159:I$159)+1;"")
Bookmarks