Find subtotals within a row

Copper Contributor

Hi.

  I have the following table which tracks payments to various employees over multiple invoices. I've organised it so each row represents a particular job with one column tabulating the total cost of the entire job. I want to create new columns at the end of each row which capture the total for each employee for that given job. As an example, consider the following table:

 

JobP1AmountP2AmountP3AmountP4AmountJob Total
ABCJay$100Jay$200Mary$200Mary$50$550
DEFBill$250Mary$300Mary$200Bill$1,000$1,750

In the above case, I want to add a column for Jay, a column for Mary, and a column for Bill that identifies their contribution to the job. That is, I want something like the following:

 

JobP1AmountP2AmountP3AmountP4AmountJob TotalJay TotalMary TotalBill Total
ABCJay$100Jay$200Mary$200Mary$50$550$300$250$0
DEFBill$250Mary$300Mary$200Bill$1,000$1,750$0$500$1,250

 

I've tried using a PivotTable and SUMIF/SUMIFS, but both approaches haven't worked for me thus far. Any ideas on how to approach this?

 

 

1 Reply

@ARistic94 

=SUM(IF($B8:$H8=K$11,$C8:$I8))

Maybe with this formula for the layout in the attached file. Enter the formula with ctrl+shift+enter if you don't work with Office365 or 2021.