# Converting weekly payroll to semi-monthly cash flow in a dynamic environment.

#### shanepc1

##### New Member
I am building a cash-flow spreadsheet covering a 104-week period and I'm having trouble with the payroll portion.
Assumption: the first week will start on the first day of a month but the starting month is unknown.
Assumption: payroll needs to be the 15th and the last day of each month.
Assumption: not all employees will start the same week (but in my example below, some employees started week 1, but no others have yet started)

I've constructed a column that calculates a weekly payroll for each week 1-104 and it handles, dynamically, addition of new employees in later weeks after week 1. Now, however, I want the spreadsheet to show cashflow impact only in the weeks that contain the 15th of each month and the last day of each month.

For example, assuming weekly pay I now have:
Week Payroll Cost
1 16019.23
2 16019.23
3 16019.23
4 16019.23
5 16019.23
6 16019.23

Assuming that the 15th of the first month falls in week 3 and the last day of the month is, say, the 31st, I'd want the spreadsheet to return a result reflecting the correct semi-monthly cost in the correct weeks like this:
Week Payroll Payout
1 0
2 0
3 34708.33
4 0
5 34708.33
6 0
etc.

Since the length of months vary, how do I ensure the semi-monthly payroll hits on the correct week numbers without losing the dynamic property of being able to accommodate varied start weeks for additional employees?

*Shane
Shane Patrick Connolly
shanepc1@yahoo.com

### Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

Replies
1
Views
493
Replies
1
Views
772
Replies
0
Views
540
Replies
0
Views
2K
Replies
0
Views
273

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,163,732
Messages
5,833,375
Members
430,206
Latest member
Sami Gaid

### 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.

### Which adblocker are you using?

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

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