I am trying to make a macro where I add the formula below into a cell and then drag it down the whole column and replicate the same formula in H column
Data where I'd like to enter formulas in column F and H

Range("F1").formula = "=IF(ISERROR(MATCH(E1,G:G,0)),"",E1)"
Range("H1").formula = "=IF(ISERROR(MATCH(E1,I:I,0)),"",E1)"