Hi there,
First of all, I'm sorry because I don't know if I can explain this in a understandable way (I don't know how to search for it). And maybe is not posible.
I'll have a file with electoral results with this structure (simplified):
Example with PartyA, PartyB, PartyC:
The problem is that parties are ordered in each row from most voted to less voted. So the order of parties change in each row according to the amount of votes.
The ideal output format for me is this, where each column has data for the same party:
After that, I'll do some calculations and comparisons with Excel.
Is this posible?
Thank you!
First of all, I'm sorry because I don't know if I can explain this in a understandable way (I don't know how to search for it). And maybe is not posible.
I'll have a file with electoral results with this structure (simplified):
Code:
Place 1 name | Voters | Blank votes | 1st party | votes for 1st party | %vote for 1st party | 2nd party | votes for 2nd party | %vote for 2nd party | 3rd party | votes for 3rd party | %vote for 3rd party | etc (8 parties in total)Place 2 name | Voters | Blank votes | 1st party | votes for 1st party | %vote for 1st party | 2nd party | votes for 2nd party | %vote for 2nd party | 3rd party | votes for 3rd party | %vote for 3rd party | etc (8 parties in total; around 1000 places)
Example with PartyA, PartyB, PartyC:
Code:
Place1 | 100 | 0 | PartyA | 50 | 50% | PartyC | 30 | 30% | PartyB | 20 | 20% | etc
Place2 | 100 | 0 | PartyC | 80 | 80% | PartyB | 20 | 20% | PartyA | 0 | 0% | etc
The problem is that parties are ordered in each row from most voted to less voted. So the order of parties change in each row according to the amount of votes.
The ideal output format for me is this, where each column has data for the same party:
Code:
Place 1 name | Voters | Blank votes | partyA | votes for partyA | %vote for partyA | partyB | votes for partyB | %vote for partyB | etc
Place 2 name | Voters | Blank votes | partyA | votes for partyA | %vote for partyA | partyB | votes for partyB | %vote for partyB | etc
After that, I'll do some calculations and comparisons with Excel.
Is this posible?
Thank you!