I tried this once before for another project and never really got a solution, because I made the question one of changing rows to columns which is not precisely what I'm trying to do.
I have raw data for a number of precincts voting results.
Unfortunately, it is just one long set of records with
Precinct Number, Number of Votes, Candidate Name
so sample data looks like this
725,874,Candidate Elephant Mayor
725,1025,Candidate Donkey Mayor
725,650,Candidate Moose Mayor (I'm from RI where we have the Cool Moose Party)
726,1065,Candidate Elephant Mayor
726,780,Candidate Donkey Mayor
726,825,Candidate Moose Mayor
725,1015,Candidate Elephant City Council
725,937,Candidate Donkey City Council
725,705,Candidate Moose City Council
726,957,Candidate Elephant City Council
726,831,Candidate Donkey City Council
726,1054,Candidate Moose City Council
So what I'm trying to accomplish is to query the first column for unique precinct numbers and place those as unique entries as Row labels in column A on sheet 2 which currently has not data in it.
then I want to query the third column for unique entries and make those into column labels in Row 1 on sheet 2.
Then I need to have a macro run through the data and match Row and Column headings for each record in the original data in order to know where to place the actual data, i.e. the number of votes from column 2 in the original data, in the array I've created on Sheet 2.
This is the second project I've run into this where data is delivered as a runon rather than already separated into fields across the range of data labels.
Hope I have helpfully titled this request and I always appreciate the thoughtful attention that members of this forum and the moderaters devote to such questions.
Brian
Bookmarks