I have a payroll spreadsheet that I use to calculate my payroll accrual JE when a pay period goes over a month end. In one cell B4 I have the start date of the period (2/24/2014) and in cell B5 I have the end date of the period (3/9/2014).
Because this JE will get posted in March, I need to post an accrual in February for the February days. In this case 5 (24th - 28th inclusive)
I would like a formula that can automatically calculate the number of days to accrue if a payroll crosses over a month end. So basically it has to figure out in the range provided how many days belong to the previous month. If none then no accrual.
I've tried a few things but I'm not so good with the date formulas.
Thanks,
Because this JE will get posted in March, I need to post an accrual in February for the February days. In this case 5 (24th - 28th inclusive)
I would like a formula that can automatically calculate the number of days to accrue if a payroll crosses over a month end. So basically it has to figure out in the range provided how many days belong to the previous month. If none then no accrual.
I've tried a few things but I'm not so good with the date formulas.
Thanks,