Column Name Comparison

Hi Team,

I want to check month-year which i was taking from one of the different excel sheet by looping for each row. once i get month and year i need to compare that month-year with another excel which is containing columns as on the basis of month-year. so need to loop each column name with the month-year and extract the that columns values