Calculate Tenure Categories

zinah

Active Member
Joined
Nov 28, 2018
Messages
368
Office Version
  1. 365
Platform
  1. Windows
Hi,

I need to calculate the tenure categories based on category table in my sample data below. Anyone could suggest a formula?

Tenure Category Calc.xlsx
ABCDEFGHIJKL
1Hire DateTermination DateTenure CategoryTenure Category
27/18/20173/31/2022< 2 Months
35/13/20193/25/2022< 6 Months
42/1/20213/24/2022< 1 Yr
57/1/20203/17/20221-2 Yrs
611/20/20183/11/20222-5 Yrs
77/13/20203/11/20225-10 Yrs
88/12/20203/11/2022> 10 Yrs
98/17/20203/11/2022
106/7/20213/11/2022
115/1/20053/8/2022
123/4/20133/8/2022
135/12/20143/8/2022
146/12/20173/8/2022
153/1/20213/2/2022
1611/20/20173/1/2022
179/7/20212/28/2022
185/8/20172/25/2022
195/20/20192/25/2022
202/25/20212/25/2022
211/16/20182/22/2022
223/1/201111/30/2021
237/18/20173/31/2022
24
Sheet1



Thank you!
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
How about
+Fluff 1.xlsm
ABCDEFGHIJKL
1Hire DateTermination DateTenure CategoryTenure Category
218/07/201731/03/20222-5 Yrs0< 2 Months
313/05/201925/03/20222-5 Yrs2< 6 Months
401/02/202124/03/20221-2 Yrs6< 1 Yr
501/07/202017/03/20221-2 Yrs121-2 Yrs
620/11/201811/03/20222-5 Yrs242-5 Yrs
713/07/202011/03/20221-2 Yrs605-10 Yrs
812/08/202011/03/20221-2 Yrs100000> 10 Yrs
917/08/202011/03/20221-2 Yrs
1007/06/202111/03/2022< 1 Yr
1101/05/200508/03/20225-10 Yrs
1204/03/201308/03/20225-10 Yrs
1312/05/201408/03/20225-10 Yrs
1412/06/201708/03/20222-5 Yrs
1501/03/202102/03/20221-2 Yrs
1620/11/201701/03/20222-5 Yrs
1707/09/202128/02/2022< 6 Months
1808/05/201725/02/20222-5 Yrs
1920/05/201925/02/20222-5 Yrs
2025/02/202125/02/20221-2 Yrs
2116/01/201822/02/20222-5 Yrs
2201/03/201130/11/20215-10 Yrs
2318/07/201731/03/20222-5 Yrs
24
Master
Cell Formulas
RangeFormula
C2:C23C2=VLOOKUP(DATEDIF(A2,B2,"m"),$K$2:$L$8,2,1)
 
Upvote 0
Solution
How about
+Fluff 1.xlsm
ABCDEFGHIJKL
1Hire DateTermination DateTenure CategoryTenure Category
218/07/201731/03/20222-5 Yrs0< 2 Months
313/05/201925/03/20222-5 Yrs2< 6 Months
401/02/202124/03/20221-2 Yrs6< 1 Yr
501/07/202017/03/20221-2 Yrs121-2 Yrs
620/11/201811/03/20222-5 Yrs242-5 Yrs
713/07/202011/03/20221-2 Yrs605-10 Yrs
812/08/202011/03/20221-2 Yrs100000> 10 Yrs
917/08/202011/03/20221-2 Yrs
1007/06/202111/03/2022< 1 Yr
1101/05/200508/03/20225-10 Yrs
1204/03/201308/03/20225-10 Yrs
1312/05/201408/03/20225-10 Yrs
1412/06/201708/03/20222-5 Yrs
1501/03/202102/03/20221-2 Yrs
1620/11/201701/03/20222-5 Yrs
1707/09/202128/02/2022< 6 Months
1808/05/201725/02/20222-5 Yrs
1920/05/201925/02/20222-5 Yrs
2025/02/202125/02/20221-2 Yrs
2116/01/201822/02/20222-5 Yrs
2201/03/201130/11/20215-10 Yrs
2318/07/201731/03/20222-5 Yrs
24
Master
Cell Formulas
RangeFormula
C2:C23C2=VLOOKUP(DATEDIF(A2,B2,"m"),$K$2:$L$8,2,1)
Thank you so much, that worked perfectly great!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,889
Messages
6,175,223
Members
452,620
Latest member
dsubash

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top