You are on page 1of 4

Number of Retirements

Method-1. Elaborate Method

EmpCode DateBirth YearBirth MonthBirth Day of Birth YearRetire


ABC 03/Jan/1949 1949 1 3 2009
CDE 19/Jul/1951 1951 7 19 2011
VFR 18/Jun/1955 1955 6 18 2015
HUU 05/May/1954 1954 5 5 2014
EFG 09/Feb/1940 1940 2 9 2000
FGH 10/May/1941 1941 5 10 2001
GGG 02/Feb/1944 1944 2 2 2004
HRS 03/May/1940 1940 5 3 2000
GFD 04/Oct/1940 1940 10 4 2000

YearRetire
DataTable 2000
YearRetrmnt No.ofRetrmnts Pivot-Table
3
2000 Err:504 Count of EmpCode
2001 Err:504 YearRetire
2002 Err:504 2000
2003 Err:504 2001
2004 Err:504 2002
2005 Err:504 2003
2006 Err:504 2004
2007 Err:504 2009
2008 Err:504 2011
2009 Err:504 2014
2010 Err:504 2015
Grand Total

Method-2: Using EOMONTH

EmpCode DateBirth YearBirth MonthBirth Yearr


ABC
CDE
VFR
HUU
EFG
FGH
GGG
HRS
GFD
V. Venkata Rao

Final Date Date using


60th Birthday Date Retire Is Leap Retirement MonthwiseDays DateRetire EOMONTH
03/Jan/2009 1/31/2009 12/30/1899 1/31/2009 31 2/1/2009 1/31/2009
19/Jul/2011 7/31/2011 12/30/1899 7/31/2011 28 8/1/2011 7/31/2011
18/Jun/2015 6/30/2015 12/30/1899 6/30/2015 31 7/1/2015 6/30/2015
05/May/2014 5/31/2014 12/30/1899 5/31/2014 30 6/1/2014 5/31/2014
09/Feb/2000 2/28/2000 12/31/1899 2/29/2000 31 3/1/2000 2/29/2000
10/May/2001 5/31/2001 12/30/1899 5/31/2001 30 6/1/2001 5/31/2001
02/Feb/2004 2/28/2004 12/31/1899 2/29/2004 31 3/1/2004 2/29/2004
03/May/2000 5/31/2000 12/31/1899 5/31/2000 31 6/1/2000 5/31/2000
04/Oct/2000 10/31/2000 12/31/1899 10/31/2000 30 11/1/2000 10/31/2000
31
30
31

MonthBirth
1 2 5 6 7 10 Grand Total
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 2 3 1 1 1 9

Dater
Date of
retirement w/o
EOMONTH
1/31/2009
7/31/2011
6/30/2015
5/31/2014
2/29/2000
5/31/2001
2/29/2004
5/31/2000
10/31/2000
$ 123.00
1.23E+02
###

0 ###
1 ###
2 01 January 1900
31 30 January 1900
32 31 January 1900
60 28 February 1900

32
31 1 1900
1/31/1900
4

You might also like