seeking help

A

angel

Suppose I have the following data:
Column A Column B
Hong Kong 200
Hong Kong 300
Hong Kong 400
Australia 200
Australia 300
UK 100
France 400


I would like to make a summary in the bottom of the spreadsheet like
HK xx
Australia xx
UK xx
France xx

Therefore, I would like to set some formula in which i can calculate the
total sum of Hong Kong (eg, 200+300+400), Australia, UK, France separately
and automatically

I've tried the lookup functions but i cant do so since there are duplicate
data. can anyone advise me on this? thanks.
 
R

Rick Rothstein \(MVP - VB\)

This will sum up only the Hong Kong numbers in your list from Row 1 to Row
7...

=SUMPRODUCT((A1:A7="Hong Kong")*(B1:B7))

Adjust the the two 7's to the last row number containing data. For the other
locations, change the name "Hong Kong" to the location name you want the
totals for.

Rick
 
A

angel

perfect, thanks.

Rick Rothstein (MVP - VB) said:
This will sum up only the Hong Kong numbers in your list from Row 1 to Row
7...

=SUMPRODUCT((A1:A7="Hong Kong")*(B1:B7))

Adjust the the two 7's to the last row number containing data. For the other
locations, change the name "Hong Kong" to the location name you want the
totals for.

Rick
 

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