Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sum data (or subtotal) by ID number in Excel

Status
Not open for further replies.

jtjones

IS-IT--Management
Nov 4, 2004
8
US
Hi all,

Is there a way to sum amounts by duplicate ID numbers in another column?

Say I have:

Code:
ID    Amount
1        $5
1        $3
1        $2
2        $5
3        $4
3        $3

How do I subtotal by ID number?

TIA
 
Take a look at the SUMIF function

or at Data / Subtotals

or at Pivot tables

Regards
Ken.............

----------------------------------------------------------------------------
[peace]It's easier to beg forgiveness than ask permission[2thumbsup]
----------------------------------------------------------------------------
 
or SUMPRODUCT function

=SUMPRODUCT((A1:A100=1)*(B1:B100))

[Blue]Blue[/Blue] [Dragon]

If I wasn't Blue, I would just be a Dragon...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top