Hi All,
I have previously posted this on another forum, received some support but nothing for the last two weeks. I have seen that it can be frowned upon to ask the same question across forums so please let me know if this is against etiquette.
My original question asked
'I am trying to work out how to calculate length of service into different age brackets. I have attached a simple excel example to hopefully help explain.
What I need is a calculation that breaks the length of service into the following age brackets
18-21 years
22-40 years
41+ years
This should be capped at a maximum of 20 years working down from the age on leaving.
For example for someone who on leaving is 45 years old and has 25 years service their breakdown would be
18-21 years 0
22-40 years 16
41+ years 4
I have been trying to come up with some sort of calculation but this is above my ability and haven't got close. It is also quite tricky to explain like this so feel free to tell me if this makes no sense.'
I received the attached 'first attempt' workbook which works beautifully at segregating the length of service into age brackets, however it does not cap the age at 20 years. The attached 'cap need' document shows what I would like it to calculate in the blue box.
I wonder if anyone is able to suggest some alterations to the formulas that will cap at 20 years working down from higher to lower ages?
Hopefully this makes sense but please let me know if you require any further info.
Many thanks
Tom
Bookmarks