Solved

sort, group and summing

Posted on 2011-03-18
2
195 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
2 Comments
 
LVL 24

Accepted Solution

by:
broomee9 earned 500 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…

813 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now