Math + excel formula

Masha92

Board Regular
Joined
Jan 27, 2019
Messages
51
Office Version
  1. 365
hi all,

I need an excel formula to count the number of countries per I code that breached a 30% threshold. I am struggling to get this formula done. I used countifs but I only get the number of Keys per I code that breaches the limit. For instance, in the example below, I code B has one country (KR) that only breached the 30% threshold. I need a formula that gives me 1!
Can you please help?

[TABLE="width: 320"]
<colgroup><col width="64" span="5" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"]I Code[/TD]
[TD="width: 64"]Key[/TD]
[TD="width: 64"]COUNTRY OF LISTING[/TD]
[TD="width: 64"]FMC Country weight[/TD]
[TD="width: 64"]Formula?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]18050[/TD]
[TD]EG[/TD]
[TD="align: right"]0.012804[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]22631[/TD]
[TD]EG[/TD]
[TD="align: right"]0.012804[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]40887[/TD]
[TD]EG[/TD]
[TD="align: right"]0.012804[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]43489[/TD]
[TD]EG[/TD]
[TD="align: right"]0.012804[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]49079[/TD]
[TD]EG[/TD]
[TD="align: right"]0.012804[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]6273[/TD]
[TD]ID[/TD]
[TD="align: right"]0.128809[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]6273[/TD]
[TD]ID[/TD]
[TD="align: right"]0.133871[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]32199[/TD]
[TD]ID[/TD]
[TD="align: right"]0.133871[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]32199[/TD]
[TD]ID[/TD]
[TD="align: right"]0.128809[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]39656[/TD]
[TD]ID[/TD]
[TD="align: right"]0.133871[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]39656[/TD]
[TD]ID[/TD]
[TD="align: right"]0.128809[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]207104[/TD]
[TD]ID[/TD]
[TD="align: right"]0.133871[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]207104[/TD]
[TD]ID[/TD]
[TD="align: right"]0.128809[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]40194[/TD]
[TD]ID[/TD]
[TD="align: right"]0.133871[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]40194[/TD]
[TD]ID[/TD]
[TD="align: right"]0.128809[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]10919[/TD]
[TD]ID[/TD]
[TD="align: right"]0.128809[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]10919[/TD]
[TD]ID[/TD]
[TD="align: right"]0.133871[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]6281[/TD]
[TD]ID[/TD]
[TD="align: right"]0.133871[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]6281[/TD]
[TD]ID[/TD]
[TD="align: right"]0.128809[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]14940[/TD]
[TD]ID[/TD]
[TD="align: right"]0.128809[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]14940[/TD]
[TD]ID[/TD]
[TD="align: right"]0.133871[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]6308[/TD]
[TD]ID[/TD]
[TD="align: right"]0.133871[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]6308[/TD]
[TD]ID[/TD]
[TD="align: right"]0.128809[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]6309[/TD]
[TD]ID[/TD]
[TD="align: right"]0.133871[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]6309[/TD]
[TD]ID[/TD]
[TD="align: right"]0.128809[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]56411[/TD]
[TD]KR[/TD]
[TD="align: right"]0.607649[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]56411[/TD]
[TD]KR[/TD]
[TD="align: right"]0.584674[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]6387[/TD]
[TD]KR[/TD]
[TD="align: right"]0.607649[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]6387[/TD]
[TD]KR[/TD]
[TD="align: right"]0.584674[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]16909[/TD]
[TD]KR[/TD]
[TD="align: right"]0.584674[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]16909[/TD]
[TD]KR[/TD]
[TD="align: right"]0.607649[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]34543[/TD]
[TD]KR[/TD]
[TD="align: right"]0.584674[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]34543[/TD]
[TD]KR[/TD]
[TD="align: right"]0.607649[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]37791[/TD]
[TD]KR[/TD]
[TD="align: right"]0.607649[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]37791[/TD]
[TD]KR[/TD]
[TD="align: right"]0.584674[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]6426[/TD]
[TD]KR[/TD]
[TD="align: right"]0.584674[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]6426[/TD]
[TD]KR[/TD]
[TD="align: right"]0.607649[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]23486[/TD]
[TD]KR[/TD]
[TD="align: right"]0.584674[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]23486[/TD]
[TD]KR[/TD]
[TD="align: right"]0.607649[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]6439[/TD]
[TD]KR[/TD]
[TD="align: right"]0.584674[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]6439[/TD]
[TD]KR[/TD]
[TD="align: right"]0.607649[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]13906[/TD]
[TD]KR[/TD]
[TD="align: right"]0.607649[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]13906[/TD]
[TD]KR[/TD]
[TD="align: right"]0.584674[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]6442[/TD]
[TD]KR[/TD]
[TD="align: right"]0.584674[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]6442[/TD]
[TD]KR[/TD]
[TD="align: right"]0.607649[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]5856[/TD]
[TD]MX[/TD]
[TD="align: right"]0.145745[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]5856[/TD]
[TD]MX[/TD]
[TD="align: right"]0.140234[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]33863[/TD]
[TD]MX[/TD]
[TD="align: right"]0.145745[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]33863[/TD]
[TD]MX[/TD]
[TD="align: right"]0.140234[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]11062[/TD]
[TD]MX[/TD]
[TD="align: right"]0.145745[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]11062[/TD]
[TD]MX[/TD]
[TD="align: right"]0.140234[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]5862[/TD]
[TD]MX[/TD]
[TD="align: right"]0.145745[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]5862[/TD]
[TD]MX[/TD]
[TD="align: right"]0.140234[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]32866[/TD]
[TD]MX[/TD]
[TD="align: right"]0.140234[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]32866[/TD]
[TD]MX[/TD]
[TD="align: right"]0.145745[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]11059[/TD]
[TD]MX[/TD]
[TD="align: right"]0.145745[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]11059[/TD]
[TD]MX[/TD]
[TD="align: right"]0.140234[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]11145[/TD]
[TD]MX[/TD]
[TD="align: right"]0.145745[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]11145[/TD]
[TD]MX[/TD]
[TD="align: right"]0.140234[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]14930[/TD]
[TD]MX[/TD]
[TD="align: right"]0.145745[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]14930[/TD]
[TD]MX[/TD]
[TD="align: right"]0.140234[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]11095[/TD]
[TD]MX[/TD]
[TD="align: right"]0.140234[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]11095[/TD]
[TD]MX[/TD]
[TD="align: right"]0.145745[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]5854[/TD]
[TD]MX[/TD]
[TD="align: right"]0.140234[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]5854[/TD]
[TD]MX[/TD]
[TD="align: right"]0.145745[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]6462[/TD]
[TD]PH[/TD]
[TD="align: right"]0.068501[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]6462[/TD]
[TD]PH[/TD]
[TD="align: right"]0.065911[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]6463[/TD]
[TD]PH[/TD]
[TD="align: right"]0.068501[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]6463[/TD]
[TD]PH[/TD]
[TD="align: right"]0.065911[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]37240[/TD]
[TD]PH[/TD]
[TD="align: right"]0.065911[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]37240[/TD]
[TD]PH[/TD]
[TD="align: right"]0.068501[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]12081[/TD]
[TD]PH[/TD]
[TD="align: right"]0.065911[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]12081[/TD]
[TD]PH[/TD]
[TD="align: right"]0.068501[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]7307[/TD]
[TD]PH[/TD]
[TD="align: right"]0.065911[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]7307[/TD]
[TD]PH[/TD]
[TD="align: right"]0.068501[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]11050[/TD]
[TD]PH[/TD]
[TD="align: right"]0.068501[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]11050[/TD]
[TD]PH[/TD]
[TD="align: right"]0.065911[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]7646[/TD]
[TD]PH[/TD]
[TD="align: right"]0.068501[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]7646[/TD]
[TD]PH[/TD]
[TD="align: right"]0.065911[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]41588[/TD]
[TD]PH[/TD]
[TD="align: right"]0.065911[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]41588[/TD]
[TD]PH[/TD]
[TD="align: right"]0.068501[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]11044[/TD]
[TD]PH[/TD]
[TD="align: right"]0.065911[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]11044[/TD]
[TD]PH[/TD]
[TD="align: right"]0.068501[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]11046[/TD]
[TD]PH[/TD]
[TD="align: right"]0.068501[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]11046[/TD]
[TD]PH[/TD]
[TD="align: right"]0.065911[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]13501[/TD]
[TD]PK[/TD]
[TD="align: right"]0.00488[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]64670[/TD]
[TD]PK[/TD]
[TD="align: right"]0.00488[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]16781[/TD]
[TD]PK[/TD]
[TD="align: right"]0.00488[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]13516[/TD]
[TD]PK[/TD]
[TD="align: right"]0.00488[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]40943[/TD]
[TD]PK[/TD]
[TD="align: right"]0.00488[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]6708[/TD]
[TD]TR[/TD]
[TD="align: right"]0.044235[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]6708[/TD]
[TD]TR[/TD]
[TD="align: right"]0.042562[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]6713[/TD]
[TD]TR[/TD]
[TD="align: right"]0.042562[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]6713[/TD]
[TD]TR[/TD]
[TD="align: right"]0.044235[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]42064[/TD]
[TD]TR[/TD]
[TD="align: right"]0.042562[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]42064[/TD]
[TD]TR[/TD]
[TD="align: right"]0.044235[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]6726[/TD]
[TD]TR[/TD]
[TD="align: right"]0.042562[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]6726[/TD]
[TD]TR[/TD]
[TD="align: right"]0.044235[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]23482[/TD]
[TD]TR[/TD]
[TD="align: right"]0.042562[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]23482[/TD]
[TD]TR[/TD]
[TD="align: right"]0.044235[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]6735[/TD]
[TD]TR[/TD]
[TD="align: right"]0.042562[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]6735[/TD]
[TD]TR[/TD]
[TD="align: right"]0.044235[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]13581[/TD]
[TD]TR[/TD]
[TD="align: right"]0.042562[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]13581[/TD]
[TD]TR[/TD]
[TD="align: right"]0.044235[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]32063[/TD]
[TD]TR[/TD]
[TD="align: right"]0.042562[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]32063[/TD]
[TD]TR[/TD]
[TD="align: right"]0.044235[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]6748[/TD]
[TD]TR[/TD]
[TD="align: right"]0.044235[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]6748[/TD]
[TD]TR[/TD]
[TD="align: right"]0.042562[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]13884[/TD]
[TD]TR[/TD]
[TD="align: right"]0.042562[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD="align: right"]13884[/TD]
[TD]TR[/TD]
[TD="align: right"]0.044235[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]64855[/TD]
[TD]VN[/TD]
[TD="align: right"]0.020126[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD="align: right"]64855[/TD]
[TD]VN[/TD]
[TD="align: right"]1[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]211439[/TD]
[TD]VN[/TD]
[TD="align: right"]0.020126[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD="align: right"]211439[/TD]
[TD]VN[/TD]
[TD="align: right"]1[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD="align: right"]200633[/TD]
[TD]VN[/TD]
[TD="align: right"]1[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]200633[/TD]
[TD]VN[/TD]
[TD="align: right"]0.020126[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD="align: right"]64514[/TD]
[TD]VN[/TD]
[TD="align: right"]1[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]64514[/TD]
[TD]VN[/TD]
[TD="align: right"]0.020126[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="align: right"]788323[/TD]
[TD]VN[/TD]
[TD="align: right"]0.020126[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD="align: right"]788323[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]
[TD]?[/TD]
[/TR]
</tbody>[/TABLE]

Thanks,
Masha
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Try:
This is an array formula that must be entered with CTRL-SHIFT-ENTER.
Excel Workbook
ABCDEFG
1CodeKeyCOUNTRY OF LISTINGFMC Country weightCodeCount > 30%
2A18050EG0.012804A1
3A22631EG0.012804B1
4A40887EG0.012804C2
5A43489EG0.012804
6A49079EG0.012804
7A6273ID0.128809
8B6273ID0.133871
9B32199ID0.133871
112A64855VN0.020126
113C64855VN1
114A211439VN0.020126
115C211439VN1
116C200633VN1
117A200633VN0.020126
118C64514VN1
119A64514VN0.020126
120A788323VN0.020126
121C78832311
Sheet
 
Upvote 0
Flawless!!!

Did you build it up yourself?

Thank you sooo much! I really appreciate it!!

I will try to fraction it and interpret it to understand it!

Masha
 
Upvote 0
Hi AhoyNC,

Can you please help me one more time? :)

So I need something similar to the previous one, I need to sum the weights per i Code with countries weight exceeding 30%. To elaborate more with expected return values, please check the example below.

[TABLE="width: 689"]
<colgroup><col span="2"><col><col><col><col></colgroup><tbody>[TR]
[TD]I code[/TD]
[TD]Country[/TD]
[TD]Weight[/TD]
[TD][/TD]
[TD]Expected return[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]EG[/TD]
[TD="align: right"]0.12[/TD]
[TD][/TD]
[TD]A[/TD]
[TD]0.34+0.39[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]EG[/TD]
[TD="align: right"]0.11[/TD]
[TD][/TD]
[TD]B[/TD]
[TD="align: right"]0.75[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]EG[/TD]
[TD="align: right"]0.05[/TD]
[TD][/TD]
[TD]C[/TD]
[TD="align: right"]0.55[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]EG[/TD]
[TD="align: right"]0.06[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]RU[/TD]
[TD="align: right"]0.03[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]RU[/TD]
[TD="align: right"]0.36[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]CA[/TD]
[TD="align: right"]0.05[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]CA[/TD]
[TD="align: right"]0.12[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]CA[/TD]
[TD="align: right"]0.1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]US[/TD]
[TD="align: right"]0.2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]US[/TD]
[TD="align: right"]0.05[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]US[/TD]
[TD="align: right"]0.5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]IT[/TD]
[TD="align: right"]0.25[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]UK[/TD]
[TD="align: right"]0.05[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]UK[/TD]
[TD="align: right"]0.15[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]NL[/TD]
[TD="align: right"]0.55[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]CN[/TD]
[TD="align: right"]0.25[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Can you please help me out?
Thanks,
Masha
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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