?
Solved

sort, group and summing

Posted on 2011-03-18
2
Medium Priority
?
205 Views
Last Modified: 2012-05-11
have a spread sheet with 70000+ rows.
each row has an unique id# and a dollar figure associated with it.
Each unique id# is repeated many times.

so if rows 1-50 had unique id # 2400 and each row has a different $ amount
and rows 51-100 had unique id # 2401 and each row has a different $ amount
and rows 101-121 had unique id # 2402 and each row has a different $ amount
and this pattern continues in a similar fashion for all 70000+ rows.

how can I  sum all $ amounts for each unique id# without breaking each id# into it's own worksheet?
0
Comment
Question by:cmkeur
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 24

Accepted Solution

by:
broomee9 earned 2000 total points
ID: 35165970
You can do it several ways.  With Sumproduct or SumIf

=SUMPRODUCT(($A$1:$A$8=D2)*($B$1:$B$8))

 OR

=SUMIF($A$1:$A$8,D2,$B$1:$B$8)

Have a look at the attached sample.  The IDs are in column A, the dollar amounts are in column B, the unique id's (non repeating) are in D2 and D3 and the formulas are in E2:F3.
Book1.xls
0
 

Author Comment

by:cmkeur
ID: 35166354
excellent thanks
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question