Hi!
Try this.
A1 = start date
B1 = end date
Requires the Analysis ToolPak add-in be installed.
=SUMPRODUCT(--(DAY(ROW(INDIRECT(A1&":"&B1)))=15))*2+OR(B1=EOMONT H(B1,0),DAY(B1)<15)-(DAY(A1)<=15)
This version does not require the ATP:
=SUMPRODUCT(--(DAY(ROW(INDIRECT(A1&":"&B1)))=15))*2+OR(B1=DATE(Y EAR(B1),MONTH(B1)+1,0),DAY(B1)<15)-(DAY(A1)<=15)
Biff
"sforr" wrote in message
...
I need to calculate the number of semi-monthly pay periods between 2 dates,
with the pay periods being the 15th of the month and the last day of the
month. I only want complete periods. Any ideas?
|