Inputfile1
| Z | A | B | C |
| 1 | Fund1 | Entity1 | |
| 2 | Fund2 | Entity2 | |
| 3 | Fund3 | Entity3 | |
| 4 | Fund5 | Entity1 | |
| 5 | Fund4 | Entity4 | |
Inputfile 2
Team,
I am looking to create new column as shown above.
Conditions:
1. If (A=fund1 or B=Entity1 or B=entity2) then fill column c with value 'zero'
2. If(B=entity3 or B=entity4) then value of column c will be the lookup value of corresponding value of its Z in source2 and returns the corresponding value from column y.
Example: If B= entity3 then z value is 3. so it checks for this z in source 2 and take the value of column y corresponding to z=3 which is 'r' and keeps it in column c of first table.
Please help me how to build this logic.