How to do regional aggregation based on country data in Excel

comper

New Member
Joined
Nov 29, 2013
Messages
3
<embed id="xunlei_com_thunder_helper_plugin_d462f475-c18e-46be-bd10-327458d045bd" type="application/thunder_download_plugin" height="0" width="0">HI, everyone, I working on some country group numbers.
Given the aggregation of the country often change, so it will be convenient to have a flexible setting on this, and automatically sum the country data to group data. But I tried sum product and index, vlookup.
Seems doesn't work, and the difficulty is mainly on a. three sheets are from different places. b. how to map one aggregated region to the country regions in Excel.

Attached, please help me, thanks!.

Sheet 1: Region_mapping, e.g. EUG4 =France +Germany +Italy +UK.
Sheet 2: Data for these countries (this table is always from exogenous source, so change directly on this table might not be convenient).
Sheet 3, I want to get the summation of these 4 countries as the number for EUG4.

For example, for EUG4
Sumproduct (--(Aggeregation_region="EUG4"),--(Euro_region..=…),). I don't how to map from data to country and then to aggregation further together.




Thanks!

Comper<embed id="xunlei_com_thunder_helper_plugin_d462f475-c18e-46be-bd10-327458d045bd" type="application/thunder_download_plugin" height="0" width="0"><embed id="xunlei_com_thunder_helper_plugin_d462f475-c18e-46be-bd10-327458d045bd" type="application/thunder_download_plugin" height="0" width="0"><embed id="xunlei_com_thunder_helper_plugin_d462f475-c18e-46be-bd10-327458d045bd" type="application/thunder_download_plugin" height="0" width="0">
 
Last edited:

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
aggregationcountry
OE5Norway
OE5Switzerland
OE5
OE5
EUG4France
EUG4Germany (until 1990 former territory of the FRG)
EUG4Italy
EUG4United Kingdom

<colgroup><col><col></colgroup><tbody>
</tbody>

201020112012
Belgium17,75517,75014,521
Bulgaria6,1206,5186,286
Czech Republic14,76214,98514,403
Denmark10,57312,02512,292
Germany (until 1990 former territory of the FRG)252,462265,025254,499
Estonia1,3881,5611,599
Ireland8,2217,4707,419
Greece25,25616,80916,486
Spain146,194142,323133,368
France164,325168,242156,449
Croatia4,5474,3754,145
Italy149,248127,681111,785
Cyprus1,066923880
Latvia2,5612,6462,616
Lithuania2,2922,3202,438
Luxembourg5746501,047
Hungary11,32910,5349,181
Netherlands33,78233,59332,654
Austria13,91414,47514,118
Poland82,21889,73489,013
Portugal12,88112,67311,180
Romania12,09611,85812,673
Slovenia2,2882,1771,849
Slovakia5,1984,9065,073
Finland25,15623,73221,928
Sweden32,73233,40230,370
United Kingdom137,753::
Liechtenstein:::
Norway16,34416,13116,983
Switzerland9,5509,9129,987

<colgroup><col><col span="3"></colgroup><tbody>
</tbody>

201020112012
OE5???
EUG4???

<colgroup><col><col span="3"></colgroup><tbody>
</tbody>
 
Last edited:
Upvote 0
Welcome to the Forum, try something like this. Use a helper column and assign a number to the countries then you can simply use a SUMIF to gather the year information for that regions example shown below:
Excel Workbook
ABCDE
1Country201020112012Helper
2Belgium17,75517,75014,521
3Bulgaria6,1206,5186,286
4Czech Republic14,76214,98514,403
5Denmark10,57312,02512,292
6Germany (until 1990 former territory of the FRG)252,462265,025254,4991
7Estonia1,3881,5611,599
8Ireland8,2217,4707,419
9Greece25,25616,80916,486
10Spain146,194142,323133,368
11France164,325168,242156,4491
12Croatia4,5474,3754,145
13Italy149,248127,681111,7851
14Cyprus1,066923880
15Latvia2,5612,6462,616
16Lithuania2,2922,3202,438
17Luxembourg5746501,047
18Hungary11,32910,5349,181
19Netherlands33,78233,59332,654
20Austria13,91414,47514,118
21Poland82,21889,73489,013
22Portugal12,88112,67311,180
23Romania12,09611,85812,673
24Slovenia2,2882,1771,849
25Slovakia5,1984,9065,073
26Finland25,15623,73221,928
27Sweden32,73233,40230,370
28United Kingdom137,753::1
29Liechtenstein:::
30Norway16,34416,13116,983
31Switzerland9,5509,9129,987
Sheet1
Then SUMIF table results
Excel Workbook
FGHIJ
1201020112012
2
3OE5???
4EUG4 =France +Germany +Italy +UKEUG4700168596624
Sheet1
 
Upvote 0
many thanks. It works like this. But still, it need I put a new flag to the regional aggregation. So the problem seems to be: how I can express the condition to judge whether a country belonging to a group or not, then sum the number of the country to the group.

Any hints on the best method???
 
Upvote 0

Forum statistics

Threads
1,215,455
Messages
6,124,937
Members
449,196
Latest member
Maxkapoor

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top