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?

I CodeKeyCOUNTRY OF LISTINGFMC Country weightFormula?
A18050EG0.012804?
A22631EG0.012804?
A40887EG0.012804?
A43489EG0.012804?
A49079EG0.012804?
A6273ID0.128809?
B6273ID0.133871?
B32199ID0.133871?
A32199ID0.128809?
B39656ID0.133871?
A39656ID0.128809?
B207104ID0.133871?
A207104ID0.128809?
B40194ID0.133871?
A40194ID0.128809?
A10919ID0.128809?
B10919ID0.133871?
B6281ID0.133871?
A6281ID0.128809?
A14940ID0.128809?
B14940ID0.133871?
B6308ID0.133871?
A6308ID0.128809?
B6309ID0.133871?
A6309ID0.128809?
B56411KR0.607649?
A56411KR0.584674?
B6387KR0.607649?
A6387KR0.584674?
A16909KR0.584674?
B16909KR0.607649?
A34543KR0.584674?
B34543KR0.607649?
B37791KR0.607649?
A37791KR0.584674?
A6426KR0.584674?
B6426KR0.607649?
A23486KR0.584674?
B23486KR0.607649?
A6439KR0.584674?
B6439KR0.607649?
B13906KR0.607649?
A13906KR0.584674?
A6442KR0.584674?
B6442KR0.607649?
B5856MX0.145745?
A5856MX0.140234?
B33863MX0.145745?
A33863MX0.140234?
B11062MX0.145745?
A11062MX0.140234?
B5862MX0.145745?
A5862MX0.140234?
A32866MX0.140234?
B32866MX0.145745?
B11059MX0.145745?
A11059MX0.140234?
B11145MX0.145745?
A11145MX0.140234?
B14930MX0.145745?
A14930MX0.140234?
A11095MX0.140234?
B11095MX0.145745?
A5854MX0.140234?
B5854MX0.145745?
B6462PH0.068501?
A6462PH0.065911?
B6463PH0.068501?
A6463PH0.065911?
A37240PH0.065911?
B37240PH0.068501?
A12081PH0.065911?
B12081PH0.068501?
A7307PH0.065911?
B7307PH0.068501?
B11050PH0.068501?
A11050PH0.065911?
B7646PH0.068501?
A7646PH0.065911?
A41588PH0.065911?
B41588PH0.068501?
A11044PH0.065911?
B11044PH0.068501?
B11046PH0.068501?
A11046PH0.065911?
A13501PK0.00488?
A64670PK0.00488?
A16781PK0.00488?
A13516PK0.00488?
A40943PK0.00488?
B6708TR0.044235?
A6708TR0.042562?
A6713TR0.042562?
B6713TR0.044235?
A42064TR0.042562?
B42064TR0.044235?
A6726TR0.042562?
B6726TR0.044235?
A23482TR0.042562?
B23482TR0.044235?
A6735TR0.042562?
B6735TR0.044235?
A13581TR0.042562?
B13581TR0.044235?
A32063TR0.042562?
B32063TR0.044235?
B6748TR0.044235?
A6748TR0.042562?
A13884TR0.042562?
B13884TR0.044235?
A64855VN0.020126?
C64855VN1?
A211439VN0.020126?
C211439VN1?
C200633VN1?
A200633VN0.020126?
C64514VN1?
A64514VN0.020126?
A788323VN0.020126?
C78832311?

<colgroup><col width="64" span="5" style="width:48pt"> </colgroup><tbody>
</tbody>

Thanks,
Masha
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
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.

I codeCountryWeightExpected return
AEG0.12A0.34+0.39
AEG0.11B0.75
AEG0.05C0.55
AEG0.06
ARU0.03
ARU0.36
ACA0.05
ACA0.12
ACA0.1
BUS0.2
BUS0.05
BUS0.5
BIT0.25
CUK0.05
CUK0.15
CNL0.55
CCN0.25

<colgroup><col span="2"><col><col><col><col></colgroup><tbody>
</tbody>
Can you please help me out?
Thanks,
Masha
 
Upvote 0

Forum statistics

Threads
1,214,400
Messages
6,119,289
Members
448,885
Latest member
LokiSonic

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