My Excel document has approximately 1100 worksheets.
Each has a varying number (some have 2 or 3, some have 110) of rows of data.
Each row looks something like this (I have used commas to express columns) from column A to D: 1931 , 04-15 , Name , SC
I would like to to have all of these rows include the sheet name in column A and split the hyphenated numbers into two columns B and C so that the final result would end up something like this from A to E: sheet1 , 4 , 15 , Name , SC
Another caveat is that the many of the cells containing the hyphenated number have spaces before the numbers.
Can somebody help with a macro that will make changes for the varying number of lines in each of the sheets?
Each has a varying number (some have 2 or 3, some have 110) of rows of data.
Each row looks something like this (I have used commas to express columns) from column A to D: 1931 , 04-15 , Name , SC
I would like to to have all of these rows include the sheet name in column A and split the hyphenated numbers into two columns B and C so that the final result would end up something like this from A to E: sheet1 , 4 , 15 , Name , SC
Another caveat is that the many of the cells containing the hyphenated number have spaces before the numbers.
Can somebody help with a macro that will make changes for the varying number of lines in each of the sheets?