Repeat Values in Column A, Break and Sum

  • Thread starter ConfusedNHouston
  • Start date
C

ConfusedNHouston

I have data in Column A that repeats in groups; AAA, BBB, CCC, etc. Each of
these column A values is associated with a varible in column B. I want to
break at the end of a group and sum the column B.



Here's what I have and what I need.


What I have:


AAA 111
AAA 222
AAA 111
BBB 444
BBB 222
BBB 111
BBB 111
CCC 444
DDD 222
DDD 666


Here's what I want -- the break and the summation of Column B

AAA 111
AAA 222
AAA 111
444 (Sum of AAA)

BBB 444
BBB 222
BBB 111
BBB 111
888 (Sum of BBB)

CCC 444
444 (Sum of CCC)

DDD 222
DDD 666
888 (Sum of DDD)



I appreciate anything you can do to help.
 
R

RagDyer

How about if you just display the total of each group in Column C, next to
the last group entry?

With datalist starting in A1, try this in C1:

=IF(A1<>A2,SUMIF($A$1:A1,A1,$B$1:B1),"")

And copy down as needed.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top