Hi,
I'd like to know how I can calculate the costs for each people in the table below:
excel.png
Thanks
Hi,
I'd like to know how I can calculate the costs for each people in the table below:
excel.png
Thanks
Enter formula in H2 and copy down
Formula:Please Login or Register to view this content.
v A B C D E F G H 1 # Expense Price Paid by 2 1 Service 1 150 John John 530 3 2 Service 2 100 Peter Peter 470 4 3 Service 3 200 John 5 4 Service 4 250 Peter 6 5 Service 5 180 John 7 6 Service 6 120 Peter 8
If you like my answer please click on * Add Reputation
Don't forget to mark threads as "Solved" if your problem has been resolved
"Nothing is so firmly believed as what we least know."
--Michel de Montaigne
Hi All,
another approach matching "name's expenses" in G2
=SUMPRODUCT(C$2:C$100*(D$2:D$100&"'s expenses"=G2))
or
=SUMPRODUCT(C$2:C$100*(D$2:D$100=SUBSTITUTE(G2,"'s expenses","")))
Regards
-----------------------------------------------------
At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.
Please, mark your thread [SOLVED] if you received your answer.
=SUMPRODUCT(C$2:C$100*(D$2:D$100&"John"=G2))
=SUMPRODUCT(C$2:C$100*(D$2:D$100&"Peter"=G2))
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks