I have a data set like this,
| Parent | Region | Fig.1 | Fig.2 | Type | Class |
| A | Germany | 456 | 67 | Y | R |
| A | Ireland | 0 | 98 | N | I |
| B | Germany | 87 | 24 | N | I |
B | Ireland | 98 | 0 | Y | R |
| B | UK | 45 | 0 | Y | I |
| C | US | 57 | 6 | Y | R |
| C | Lux | 0 | 90 | N | R |
Want to create different output based on following conditions. Please note that I cannot use formula tool to define specific region (Germany) or Parent names (A,B,C) as the source data sheet has many of them. These conditions are more or less similar hence even if I get solution for 1 or 2 that will be really helpful.
Condition 1: If Fig.1 for Parent in a region is "0" OR the region is not present in dataset for the Parent then "No Data", else if Fig.1 of Class "R" for a Parent in a region is >= 25% of sum of Fig.1 for that Parent in all regions then "Oppt'y" else "No Oppt'y" EndIf
Expected Output
| Parent | Germany | UK | Ireland | Lux | US |
| A | Oppt'y | No Data | No Data | No Data | No Data |
| B | No Oppt'y | No Oppt'y | Oppt'y | No Data | No Data |
| C | No Data | No Data | No Data | No Data | Oppt'y |
Condition 2: Condition for "No Data" remains same, else if Fig.2 of Type "Y" for a Parent in a region is >= 10% of sum of Fig.1 for that Parent in all regions then "Oppt'y" else "No Oppt'y" EndIf
Expected Output
| Parent | Germany | UK | Ireland | Lux | US |
| A | Oppt'y | No Data | No Data | No Data | No Data |
| B | No Oppt'y | No Oppt'y | No Oppt'y | No Data | No Data |
| C | No Data | No Data | No Data | No Data | Oppt'y |
Condition 3: Condition for "No Data" remains same, else if Fig.2 for a Parent in a region is Greater than 0 but less than 70 then "Oppt'y" else "No Oppt'y" EndIf
Expected Output
| Parent | Germany | UK | Ireland | Lux | US |
| A | Oppt'y | No Data | No Data | No Data | No Data |
| B | Oppt'y | No Oppt'y | No Oppt'y | No Data | No Data |
| C | No Data | No Data | No Data | No Data | Oppt'y |
Condition 4: Condition for "No Data" remains same, else if Fig.2 for a Parent in a region is "0" then "Oppt'y" else "No Oppt'y" EndIf
Expected Output
| Parent | Germany | UK | Ireland | Lux | US |
| A | No Oppt'y | No Data | No Data | No Data | No Data |
| B | No Oppt'y | Oppt'y | Oppt'y | No Data | No Data |
| C | No Data | No Data | No Data | No Data | No Oppt'y |
Please suggest.
Thanks in advance