Hi all, first time user! My eyes fee like they are falling out and I'd appreciate your help!
I am working with 18 databases (1 per year x 18 yrs) and I need to make a standardized header row for each of them. The goal is to merge all 18 databases together in another program. The variables I am working with are very inconsistent from year to year. Some have been recoded for more consistency but many variables are only available for one year. So, what I am doing is creating placeholders for those odd variables in the years they are unavailable. That way they will contain values if the label is applicable for that entry and will be blank if the label is not applicable. I want all 18 years to have the exact same variable labels.
So I have the master list of variable labels. When my header row for any year's database is incomplete, I need to draw from the master list to make sure every label is represented. I only want to draw from the master list if a particular value isn't in the header row.
I originally tried to just append the entire master list to the tail end of the header row for every year, then sort and delete duplicates. The databases are very large and excel can't handle these functions very quickly...and I will lose my mind if I have to do this 18 times.
Right now I have the master list in "sheet 1" A1:A205
Actual data is in another sheet in same workbook, labeled by year i.e. "2001"
It would be extremely awesome if I could also get the macro to maintain alphabetical order in the header row but at this time it looks like the sheet will sort the columns, although slowly...
Anyone have any ideas for me? I'm sure this a simpler issue than I'm anticipating but I'm at the end of my rope trying to figure it out!!!!![]()
Bookmarks