Dear experiences …
I have many excel file in certain folder 100+ (D:\source), where these files are named in the following structre {0.xlsx, 1.xlsx,2.xlsx, ….etc}, all excel files havin the following columns contents look like the following ..
No Index File Name1 6 2012-07-20-18-23-022 7 3097-success-edit3 8 2012-07-20-18-30-444 11 2012-large-columns5 13 2012-admins-logsetc..
so i need to combine all these files into single excel file involve the following contents:
Id Index File Name file_label1 6 2012-07-20-18-23-02 02 7 3097-success-edit 03 8 2012-07-20-18-30-44 04 11 2012-large-columns 15 13 2012-admins-logs 1
where ID here is numeric count for the rows, index whatever extracted from every excel file, File name whetever extracted from every file, and finally labels is give value based on file name, in the above example for the file names that extracted from 0.xlsx file its give an (0) values to all file names that comes from this 0.xlsx file, and (1) for the file names that comes from 1.xlsx file, and (2) for the file names that come from 2.xlsx file and so on..
i would thank any one can help me in this issue.
thanks
Best Answer