Thread: SUM of areas
View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Eduardo Eduardo is offline
external usenet poster
 
Posts: 2,276
Default SUM of areas

Hi,
Let's assume you have a list of your Post codes in column C starting in C1
in D1 enter

=sumproduct(--(C1=$A$1:$A$100),$B$1:$B$100)

change the range to fit your needs but remember the range has to be the same
in both sides of the formula

if you are using excel 2007

=sumproduct(--(C1=A:A),B:B)

"Natalie" wrote:

Hi there, I have a list of invoices with postcodes, and I want to know the
amount per postcode. For example.

Column A Column B
Postcode Invoice amount
AB £600
CH £40
AB £50
CH £30
SO £100
SG £40
SO £200
CH £300

And I want to know the total of each postcode but without using a pivot chart?
Can anyone help? I think I need SUMPRODUCT but I'm not sure.

Thanks

Natalie