So i'm trying to simplify a sheet i use for calculating bonus's for my staff.
Basically I have multiple jobs details all listed in their own row. On each row I have a cell that contains the name of each staff member that was on that job. in each jobs row is a cell that contains the bonus per staff member for that job.
I want to automate that the "total bonus" cell for each staff member will search the "names" column across each job, and for each row that has that staff members name, I want to sum up the total bonus amount based on which job that staff members name appears in.
I know i can do this with a simple =if() statement to achieve this for a single row, but unsure how to do the search across the multiple rows and have it only take effect if relevant.
ExampleBen is a staff member. There are two Jobs that ben did that will receive a bonus. (both of these jobs would be in different rows) So Bens name is listed in Cell K3 and Cell K5 (Not listed in cells K1,2,4) Row 3 is a 100$ bonus and row 5 is a 50$ bonus.
I would like Bens "Total bonus" cell to reflect the combined 150$ bonus, ignoring any rows/jobs with a bonus where he in not named.
Apologies if this is a simple thing that i'm overcomplicating and if this doesn't make sense. Any help would be appreciated
Link to sample doc: https://docs.google.com/spreadsheets/d/11bnHx-21azYuyRNT65XaiwFOwa6gyOrMd1Z8eYKFjps/edit?usp=sharingYellow cells are the cells to draw the desired data from, green cell is where the output should go to