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


New Member
Jul 24, 2010
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

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?

Any help you might be able to offer is greatly appreciated!
Shane Patrick Connolly

Some videos you may like

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

Subscribe on YouTube

Watch MrExcel Video

Forum statistics

Latest member
Ranjeet yamgekar

This Week's Hot Topics

  • Turn fraction around
    Hello I need to turn a fraction around, for example I have 1/3 but I need to present as 3/1
  • TIme Clock record reformatting to ???
    Hello All, I'd like some help formatting this (Tbl-A)(Loaded via Power Query) [ATTACH type="full" width="511px" alt="PQdata.png"]22252[/ATTACH]...
  • TextBox Match
    hi, I am having a few issues with my code below, what I need it to do is when they enter a value in textbox8 (QTY) either 1,2 or 3 the 3 textboxes...
  • Using Large function based on Multiple Criteria
    Hello, I can't seem to get a Large formula to work based on two criteria's. I can easily get a oldest value based one value, but I'm struggling...
  • Can you check my code please
    Hi, Im going round in circles with a Compil Error End With Without With Here is the code [CODE=rich] Private Sub...
  • Combining 2 pivot tables into 1 chart
    Hello everyone, My question sounds simple but I do not know the answer. I have 2 pivot tables and 2 charts that go with this. However I want to...