Hello!
First off, I apologize if I'm somewhat vague. I couldn't come up with a better title.
I have a relatively large database with number of votes per voting district (I can share this data - it's not protected or anything). These voting districts are of course located in municipalities. I want a total of votes per municipality. The trouble is that the number of voting districts per municipality differs, so with my limited knowledge I am left in the dark on how to solve this. I'd just do it manually, but with more than 90k cases, that would be quite an ordeal.
I've attached the first 32 cases. Details:
A2-33 = municipality (number)
B2-33 = municipality (name)
C2-33 = voting district (name + postal code)
D2-33 = votes of two parties I have data of. So this number is X votes for the two parties per voting district
E2-33 = total number of votes (per voting district)
What I would like to have is:
F2-33 -> number of votes for the two parties per municipality (so I want the data of D2-33 aggregated per municipality number (A2-33))
G2-33 -> number of total votes per municipality (this data is now in E2-33 per voting district)
Many thanks if you could help me!
PS In the attached document I left some non-working formula in G2 and H2 by accident (it's irrelevant).
Bookmarks