• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Split Cost based on each project worked

odoolead1

New Member
Hello Team,
I want to split employee wages based on the hours worked on each project. I have attached a sample data with desired output (Desired Output in Yellow )


Thanks for all you help
 

Attachments

  • Chandoo_LaborHoursWages.xlsx
    15 KB · Views: 13
In E3 and pulled down as needed
Code:
=VLOOKUP($B3,$H$3:$I$6,2,0)*($D3/SUMPRODUCT(--($B$3:$B$32=$B3)*$D$3:$D$32))
 

Attachments

  • Chandoo_LaborHoursWages.xlsx
    16.7 KB · Views: 15
Using XLOOKUP
Code:
=XLOOKUP(1,($I$3:$I$6=$A3)*($J$3:$J$6=$B3),$K$3:$K$6)*($D3/SUMPRODUCT(--($B$3:$B$32=$B3)*($A$3:$A$32=$A3)*$D$3:$D$32))
 

Attachments

  • Chandoo_LaborHoursWages(2).xlsx
    18.3 KB · Views: 9

odoolead1

Your I want to split employee wages based on the hours worked on each project.
Isn't Your want then something like below?
... on each project
Screenshot 2024-03-10 at 10.28.20.png
 

Attachments

  • Chandoo_LaborHoursWages.xlsx
    20.2 KB · Views: 9
Back
Top