ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Formula (https://www.excelbanter.com/excel-worksheet-functions/153540-formula.html)

kris

Formula
 
Is there a formula that will sum a column based on another column?
Example: Two columns: A has names of people B has amounts of pay for those
people. Is there a formula that will pull a subtotal for each person in
column A

Peo Sjoblom

Formula
 
Sort the table by names, then use datasubtotal, for each change in A sum B


--

Regards,

Peo Sjoblom

"Kris" wrote in message
...
Is there a formula that will sum a column based on another column?
Example: Two columns: A has names of people B has amounts of pay for
those
people. Is there a formula that will pull a subtotal for each person in
column A




T. Valko

Formula
 
Maybe this:

=SUMIF(A$1:A$10,"Bob",B$1:B$10)

Or:

D1 = Bob

=SUMIF(A$1:A$10,D1,B$1:B$10)

Or:

Select your range of data
Goto DataSubtotals
At each change in name column
Use function SUM
Add subtotal to amount column

--
Biff
Microsoft Excel MVP


"Kris" wrote in message
...
Is there a formula that will sum a column based on another column?
Example: Two columns: A has names of people B has amounts of pay for
those
people. Is there a formula that will pull a subtotal for each person in
column A





All times are GMT +1. The time now is 08:37 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com