Copy data from one excel to another excel using header wise

Thanks i already tried that but issue is Excel Main is dynamic means sometime Coulomb A have data sometime Coulomb B have data

Above method will not handle dynamic excel(Main)