osullivanja
New Member
- Joined
- Oct 12, 2012
- Messages
- 2
Hi,
I have a tricky situation I'm working through here and I'd appreciate some help.
I have output from a program that converts pdf phone bills and makes a summary in Excel. However when there's thousands of bills these summaries sometimes need to be done in parts, say 1-2 thousand at a time. What I want to do is consolidate these summaries in to 1 sheet.
The problem is because the conversion is done in parts, the columns won't match exactly so the consolidate feature won't work. You'll get a better idea of why if you take a look at the sample data below.
Up to a certain point the columns are identical, which is always the same column. After that however, each sheet may contain different columns. The headings of these columns, if they match, will have the exact same name but they may not be in the same column.
To start with, I've copied the column headings from all sheets in to a master sheet and removed the duplicates. So now I have all the possible columns in the master sheet. What I've managed to do so far is to take the columns that match and copy them in to a new sheet.
So now I'm up to the point where I need to start checking if each of the variable column headings in the first summary exists in the master sheet and if it does, copy all the rows and then move on to the next sheet.
I'm not that experienced with Excel VBA so this is quite tricky for me and it's been a nightmare trying to find a solution online as it's difficult to describe. I found some software, DigDB, that does exactly this but it only has a 15 day trial and if you subscribe it renews automatically. Some reviews I read said that they had trouble contacting the developer so I thought I'd take a shot at it myself.
This is a sample spreadsheet with my desired output
https://docs.google.com/spreadsheet/ccc?key=0Ak7ET7Q86O0cdGdfY2VNT180Tk9aMW9LaUcxSEk3bGc
To keep the data small, I'm saying everything up to column E will always be the same and in the same order. It's all the rows after that that I need to check for now.
I hope someone can put me on the right path with this! I appreciate you taking the time
I have a tricky situation I'm working through here and I'd appreciate some help.
I have output from a program that converts pdf phone bills and makes a summary in Excel. However when there's thousands of bills these summaries sometimes need to be done in parts, say 1-2 thousand at a time. What I want to do is consolidate these summaries in to 1 sheet.
The problem is because the conversion is done in parts, the columns won't match exactly so the consolidate feature won't work. You'll get a better idea of why if you take a look at the sample data below.
Up to a certain point the columns are identical, which is always the same column. After that however, each sheet may contain different columns. The headings of these columns, if they match, will have the exact same name but they may not be in the same column.
To start with, I've copied the column headings from all sheets in to a master sheet and removed the duplicates. So now I have all the possible columns in the master sheet. What I've managed to do so far is to take the columns that match and copy them in to a new sheet.
So now I'm up to the point where I need to start checking if each of the variable column headings in the first summary exists in the master sheet and if it does, copy all the rows and then move on to the next sheet.
I'm not that experienced with Excel VBA so this is quite tricky for me and it's been a nightmare trying to find a solution online as it's difficult to describe. I found some software, DigDB, that does exactly this but it only has a 15 day trial and if you subscribe it renews automatically. Some reviews I read said that they had trouble contacting the developer so I thought I'd take a shot at it myself.
This is a sample spreadsheet with my desired output
https://docs.google.com/spreadsheet/ccc?key=0Ak7ET7Q86O0cdGdfY2VNT180Tk9aMW9LaUcxSEk3bGc
To keep the data small, I'm saying everything up to column E will always be the same and in the same order. It's all the rows after that that I need to check for now.
I hope someone can put me on the right path with this! I appreciate you taking the time