Solved

Sum 6 separate columns of numbers that correspond to the same ID number in column A.

Posted on 2013-05-25
5
407 Views
Last Modified: 2013-05-25
Column A contains postcode numbers. Column B contains suburb names where different suburb names may correspond to the same postcode number.
Columns C, E, G, I. K and M may contain vales. The objective is to sum these values where they correspond with the same postcode number in column A as per examples in Columns D, F, H, J, L and N.
Postcode-collation-example1.xlsx
0
Comment
Question by:gregfthompson
  • 2
  • 2
5 Comments
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 39196340
Copy this in D3 and copy down and then across

=IF(COUNTIF($A:$B,$A3)=COUNTIF($A3:$A3,$A3),SUMIF($A:$B,$A3,$C:$E),"")
0
 

Author Comment

by:gregfthompson
ID: 39196357
Thanks ssaqibh.

But it doesn't appear to sum where there are multiple postcodes.

Can you attach the file?

Thanks again,

Greg
0
 
LVL 35

Accepted Solution

by:
[ fanpages ] earned 500 total points
ID: 39196365
Hi,

Hmmm...

Unless I have misunderstood the requirements, I would suggest this formula in cell [D3]:

=IF(COUNTIF(A3:A$3123,A3)=1,SUMIF(A$3:A$3123,A3,C$3:C$3123),"")

Then copy that down column [D] until you reach cell [D3123].


I have attached a workbook with suitable formulae in the other columns.

BFN,

fp.
Q-28138893.xlsx
0
 

Author Closing Comment

by:gregfthompson
ID: 39196369
Perfect!! Thanks heaps.  Not sure what I did wrong but the file is perfect.
0
 
LVL 35

Expert Comment

by:[ fanpages ]
ID: 39196372
You're very welcome.

I don't think you did anything 'wrong'

The first suggestion was not correct & did not address your requirements.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Suggested Solutions

Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.
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…

820 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