#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 128
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default 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



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default 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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:51 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"