Hi,
| Last Name | First Name | Prices | Total | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Smith | John | 100 | 300 | =SUMIFS($C$2:$C$10000,$A$2:$A$10000,A2,$B$2:$B$10000,B2) | |||||
| Smith | John | 200 | 300 | ||||||
| Smith | Jane | 123 | 573 | ||||||
| Smith | Jane | 450 | 573 | ||||||
| Andrews | Carol | 1500 | 1800 | ||||||
| Andrews | Carol | 300 | 1800 | ||||||
| Bob | Billy | 200 | 500 | ||||||
| Bob | Billy | 300 | 500 |
The formula in D2 is in the right cell. Drag D2 down to the last name.
A better alternative is the use of a pivot table.