Please give your input excel file and sample ouput here. So that we will get more clear picture.
Regards
Sreejith S S