Index and Match with Sum having 2 columns

srinivaspokala

New Member
Joined
Feb 9, 2021
Messages
6
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
Hi All,
I need country wise total(Weight %) under each sectors displayed in column heading from list securities. Can you please check and advice the better formula to use, have tried doing with index and match and not getting exact results

Output should be like below with values.

Portfolio absolute weights
(excl. cash, derivatives, money market funds)
(incl. equity funds)
Consumer ServicesEnergyMaterialsCapital GoodsCommercial & Professional ServicesTransportationAutomobiles & ComponentsConsumer Durables & ApparelHotels Restaurants & LeisureMedia & EntertainmentRetailingFood & Staples RetailingFood, Beverage & TobaccoHousehold & Personal ProductsHealth Care Equipment & ServicesPharmaceuticals, Biotechnology & Life SciencesBanksDiversified FinancialsInsuranceReal EstateSoftware & ServicesTechnology Hardware & EquipmentSemiconductors & Semiconductor EquipmentTelecommunication ServicesUtilitiesTotal
United States
Canada
Other North American Developped (describe)
UK
France
Switzerland
Germany

Data I have is below

NameWeight %SectorCountry of Risk
MARVELL TECH GRP LTD
0.284027​
Semiconductors & Semiconductor EquipmentUnited States
ATLASSIAN CORP PLC
0.251582​
Software & ServicesUnited States
0.024015​
UnknownIreland
CHECK POINT SOFTWARE
0.14749​
Software & ServicesIsrael
NXP SEMICONDUCTR
0.369721​
Semiconductors & Semiconductor EquipmentNetherlands
ACTIVISION BLIZZARD
0.579235​
Media & EntertainmentUnited States
ADOBE INC
1.8178​
Software & ServicesUnited States
ADV MICRO DEVICES
0.851615​
Semiconductors & Semiconductor EquipmentUnited States
ALEXION PHARM INC
0.279837​
Pharmaceuticals, Biotechnology & Life SciencesUnited States
ALIGN TECH INC
0.344706​
Health Care Equipment & ServicesUnited States
ALPHABET INC
3.28378​
Media & EntertainmentUnited States
ALPHABET INC
2.979856​
Media & EntertainmentUnited States



Thanks
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Welcome to the board!

INDEX / MATCH would be perfect if you wanted to get the values from your matrix to the table below but I believe you're trying to sum the values from table below to the first table.

I think you could write an INDEX / MATCH formula if you tried hard enough but usually the best solution is the easiest one:
Excel Formula:
=SUMIFS(Table1[Weight %],Table1[Sector],C$1,Table1[Country of Risk],$A3)
Adjust the ranges to match your data.

If you want to see the average instead of sum use AVERAGEIFS with the same parameters.
 
Upvote 0
Welcome to the board!

INDEX / MATCH would be perfect if you wanted to get the values from your matrix to the table below but I believe you're trying to sum the values from table below to the first table.

I think you could write an INDEX / MATCH formula if you tried hard enough but usually the best solution is the easiest one:
Excel Formula:
=SUMIFS(Table1[Weight %],Table1[Sector],C$1,Table1[Country of Risk],$A3)
Adjust the ranges to match your data.

If you want to see the average instead of sum use AVERAGEIFS with the same parameters.
Amazing, worked out successfully in first attempt. I don't know that we can do lot with sumif. Thanks a lot for your quick help.
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,196
Members
452,616
Latest member
intern444

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