I have a requirement, in which I have to compare two columns say A and B with F and G columns, If they match copy H column value and paste it in C column.

Please have a look at the example image:

BoGQE.jpg