|
Say column D represents one of 24 semimonthly payment periods in the year: Set D2 to 1 Put =IF(D2 <24,D2+1,1) in D3 and drag down to fill the column 1, 2, 3, 4, 5 , ... , 23, 24, 1 , ...
Say column E represents one of 12 months in the year: Set E2 to 1 Put =ROUND(D2/2,0) in E3 and drag down to fill the column 1, 1 , 2, 2, 3, .... 11, 12, 12 , 1 , ...
Say column F represents one of 24 monthly pay days in the year -- we'll get to the rest of this in a minute
Say column G represents the year: Set G2 to 2 Put =IF(D2<24,G2,G2+1) in G3 and drag down to fill the column 2010, 2010, ... 2010, 2011, 2011, ...
Now finish with column F Put =IF(MOD($D2,2)=1,15,IF(OR(AND($E2<8,MOD($E2,2)=1),AND($E2>7,MOD($E2,2)=0)),31,IF($E2=2,IF(MOD(G2,4)=0,29,28),30))) into F2 and drag down to fill the column 15, 31, 15, 28, 15, 31, ...
Say column H represents the date Put =DATE(G2,E2,F2) in H2 and drag down to fill the column
I did this in "Numbers" but something entirely similar should work in excel
|