COL1        COL2              COL3
Hi          T_M12345678       T_455462    
            T_M12345670       T_M12345678
bye         T_M123456781      T_M12345670
            T_M123            T_M589646
            T_M894545         T_M123456781
            T_M418554651      
            T_M4546565
I need to compare COL2 and COL3; if any match is found then I need to compare with COL1 for that match found and if there is any value in COL1 then it should return a value on below mentioned scenarios true in COL4.
For Example,
Scenario 1: Data
T_M12345678is present in COL2 and COL3 so match is found then, I need to check whether I have any value in COL1 for this data in COL2 and in this case, it is YES (Hiis the value in COL1) so I should printTRUEin COL4.Scenario 2: Data
T_M12345670is present in COL2 and COL3 so match is found; then I need to check whether I have any value in COL1 for this data in COL2 and in this case, it is NO so I should printTRUE1in COL4.Scenario 3: Data
T_M589646in COL3 is not present in COL2 so I need to printFALSEin COL4.
                        
Since you did not post the expected outcome, I created 2 additional columns (1 for values in COL2, other for values in COL3). The following formulas work as you defined.
COL2 value check:
COL3 value check: