rporter45
asked on
# Of Years Calculation
Hi there,
I am attempting to calculate consecutive years in the attached file - for each year of activity the value is "1" if no activity the value is 0.
From Right to left (2015 to 1987) if there is a value of 1 then continue to move to the next column to the left. If the value is 0 then return the column header year and discontinue any calculations.
Attached is the file layout - let me know if there are any questions on what I am asking. I usually do this in crystal reports but am hoping to get away from the labour-intensive setup.
Thanks very much - CS
EE-Sample.xlsx
I am attempting to calculate consecutive years in the attached file - for each year of activity the value is "1" if no activity the value is 0.
From Right to left (2015 to 1987) if there is a value of 1 then continue to move to the next column to the left. If the value is 0 then return the column header year and discontinue any calculations.
Attached is the file layout - let me know if there are any questions on what I am asking. I usually do this in crystal reports but am hoping to get away from the labour-intensive setup.
Thanks very much - CS
EE-Sample.xlsx
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The way I read your question is that you are trying to find the most recent year of inactivity.
ID Year
100 1997
200 1996
300 1996
etc
Is that correct? Not sure how you would do it with current layout.
Thanks
Rob
ID Year
100 1997
200 1996
300 1996
etc
Is that correct? Not sure how you would do it with current layout.
Thanks
Rob
@Rob
That is what the first of the two formulas from my previous post does. :)
That is what the first of the two formulas from my previous post does. :)
@Neeraj - I hadn't refreshed while entering my comment so didn't see your post. I was posting to confirm interpretation of the question. If our interpretation is correct then hopefully your solution will be what is required.
Thanks
Rob
Thanks
Rob
No Problem Rob!
Actually your post confirmed that I was thinking in the right direction. :)
Now it's up to OP to confirm whether this was the original request.
Actually your post confirmed that I was thinking in the right direction. :)
Now it's up to OP to confirm whether this was the original request.
ASKER
This worked perfectly! Saves me a ton of time - very much appreciated,
Have a great day,
Colleen
Have a great day,
Colleen
You're welcome. Glad to help.
If so, you may use the following formula to get the desired output in col. AG...
Open in new window
and copy down.