How can I match column A with other C and E (columns are not adjacent to each other) and fill 0 in column G if column A matches either column C or E. If column A does not match neither C or E fill the value of column A in G? Examples:
A B C D E F G
2 3 4 5 6 7 2
3 4 5 6 7 8 3
4 5 6 7 8 9 0
5 6 7 8 9 10 0
6 7 8 9 10 11 0