In a directory, there are multiple identically structured Excel workbooks with one sheet in each. The sheet names are all labelled the same (i.e. Sheet 1). I need to consolidate the dataset into one sheet and extract the last 8 characters of the file name for each book and add this as a column in the combined dataset
- Sheet name in each workbook (Sheet1)
- File Name: Accounting_Details_-_MMDDYYYY
I used the wildcard feature to import along with file names (i.e. Accounting_Details*), but for some reason it is not importing all the workbooks. It only imports 3/12 workbooks. Total record count is 4.8K, whereas I am expecting 27k. What could be causing the issue?