Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

If a cell contains a name take a figure from a cell in the same row on multiple rows

$
0
0

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


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>