Solved

group items together

Posted on 2014-02-25
7
108 Views
Last Modified: 2014-02-26
Can an expert assist me with grouping amounts together?

This is just a smal sample but there can be 1000s of items in the spreadsheet and I do not want to use Sub Total as this will mess up other work on the spreadsheet.

So, I start with this in Columns L and M. There is other data in columns A - K.

I want to put the totals of each Account Group in Column N

 Amount       Account
 30.00       6101
 80.00       7101
 50.00       7101
 20.00       9107
 12.00       1101
 10.00       1101
 4.00       0108
 4.00       0108
 40.00       0108
 10.00       0108
 30.00       0108
 6.00       0108
 20.00       0108
 40.00       0108
 42.00       T102
 85.00       T102
 32.00       T102
 54.00       T102
 51.00       T102


So it would look like this

 Amount       Account      Grp Tot
 30.00       6101       30.00
 80.00       7101      
 50.00       7101       130.00
 20.00       9107       20.00
 12.00       1101      
 10.00       1101       22.00
 4.00       0108      
 4.00       0108      
 40.00       0108      
 10.00       0108      
 30.00       0108      
 6.00       0108      
 20.00       0108      
 40.00       0108       154.00
 42.00       T102      
 85.00       T102      
 32.00       T102      
 54.00       T102      
 51.00       T102       264.00


Thanks
0
Comment
Question by:Jagwarman
[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
  • 4
  • 3
7 Comments
 
LVL 50

Accepted Solution

by:
Rgonzo1971 earned 500 total points
ID: 39884995
Hi,

pls try

=IF(B2<>B3,SUMIF($M$2:$M$20,M2,$L$2:$L$20),"")

Open in new window

Regards
ee20140225.xlsx
0
 

Author Comment

by:Jagwarman
ID: 39885031
Thanks Rgonzo1971 works great.

any chance you could look at my other post  VBA to Identify items that match
0
 

Author Comment

by:Jagwarman
ID: 39885782
Rgonzo1971

What I have just discovered is that the file that I need to use has some of the data as Text and some as numbers. When I change the 'Text' to 'Numbers' where the number has a leading zero it drops the 0.

Any ideas to resolve this.

Why is nothing simple?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 50

Expert Comment

by:Rgonzo1971
ID: 39885816
Hi,

You could use a custom Format  like  0000

Regards
0
 

Author Comment

by:Jagwarman
ID: 39885946
does not appear to work
0
 
LVL 50

Expert Comment

by:Rgonzo1971
ID: 39886278
Pls try like in this example
EE20140225.xlsx
0
 

Author Comment

by:Jagwarman
ID: 39888121
Bizarre Rgonzo it does not work for me. Please see attached file
Copy-of-EE20140225.xlsx
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

749 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