Associate a salary increase to an employee and use to calculate monthly project staffing costs

automation monkey

New Member
Joined
Oct 27, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I have a project scheduling spreadsheet that I also use to create a P&L per project. At the moment it works with a fixed salary, however, salaries change with annual pay rises so I'd like to try and find a way to factor this in to my data so it stays accurate.

I have a number of sheets working together to create the project P&L. The first is a staff details sheet which has employee details including an associated.

salary.JPG


I'd like to first find the best way to represent salary associated with a period of time. Maybe a column with salary start date and the salary columns associated with each. So, for example, After a year with us, Bob would have a second entry with a new date added to the salary start date and entries in salary and salary monthly. Unfortunately this method will end up with duplicate entries for employment start date, end date, status etc. The other way could be to have the salary start date column and salary column have multiple entries seperated with commas - this might prove problematic with how I'm using this data as follows.

I assign each employee to different projects on a Schedule sheet as follows :

schedule.JPG


I then pull the data in to per project sheets using
Excel Formula:
=FILTER(FILTER(AllStaffProjectAllocationTbl,AllStaffProjectAllocationTbl[Project Code Name]=B2), {1,0,0,1,1,1,0,0,0,1,0,0,0,1,0,0,0,0})
to generate the data as follows :

project1.JPG


I then create a P&L on the same sheet that looks like this :

P&L.JPG


The per month salary costs are calculated through the following function in L7 and sequenced for the duration of the project
Excel Formula:
=MMULT(SEQUENCE(1,ROWS($A$18#),1,0),($L$1#>=OFFSET($A$18#,0,3,,1))*($L$1#<=OFFSET($A$18#,0,4,,1))*OFFSET($A$18#,0,5,,1))

So, however the salary details sheet incoporates the salary changes throughout an employees employment I will want to factor them in to the Salary Costs row on the Project P&L and likely need to somehow incorporate them in to the Resource sheet and the per project resource summary that's generated from it.
Does anyone have any ideas on how I can approach this? I can share a simplified version of the spreadsheet too if it helps - I'm just not sure how I do that on here as it relies on multiple sheets.
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
I'm thinking that it might make sense to extract the salary information from the staff details sheet and create a staff salary sheet as follows:

salarySheetExample.JPG


With multiple entries denoting when a salary increase happens. I'd then remove the salary information from the schedule summary sheet (it's not needed on here really - just included to copy through to the per project sheet), and then remove the salary from the per project sheet resource summary i.e. column F in the example above and then look to solve the problem of incorporating the correct salary from the new staff salary sheet in the formula in L7 in the Project P&L -

Excel Formula:
=MMULT(SEQUENCE(1,ROWS($A$18#),1,0),($L$1#>=OFFSET($A$18#,0,3,,1))*($L$1#<=OFFSET($A$18#,0,4,,1))*OFFSET($A$18#,0,5,,1))

What are the thoughts on this approach and does anyone know how I would modify the formula to work with potentially multiple salaries for the given project duration?
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,254
Members
452,624
Latest member
gregg777

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.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

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

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

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
Back
Top