4. Elections 2013
An application was developed for Visual Basic for Applications (VBA), that
when executed from Excel “live” did the following:
1. Connected to the official site presenting the electoral results minute by
minute, presenting data from each province, locality, and department.
2. With those data it did an analysis and generated Excel Spreadsheets with the
following data:
- Total and partial number of votes for deputies and senators, by party,
province, and locality, in absolute values and percentages referred to the
total voter registration, effective votes, percentages of votes counted, etc.
- Number of votes for deputies in each province and, applying the D’Hont
method, it indicated the seats obtained by each party and the name of the
candidate occupying a seat.
- The names of the candidates that obtained seats in each chamber
- Results by related zones, such as: rural zones, urban zones, soya plantation
zones, oil zones, glacier zones, insecure zones, flood zones, Sarmiento
railroad area, provinces dominated by Kirchnerism, areas dominated by
Massa, areas dominated by Insaurralde, Patagonia, Cuyo (central western
Andes zone), and others.
5. Primaries and General Election
• For the Primaries (August 12) the News App
identify the parties, and the lists inside each
party, and the results were shown in
decreasing order.
• For General Elections (October 27th) only
parties, the premises were the same.
6. Benefits
• The set of Excel spreadsheets generated by the
NewsApp allowed the Staff to apply filters and organize
the data with different criteria to produce conclusions
that otherwise required the analysis of unrelated
tables or graphs, and with a variety of scenarios
including the names of legislators that won seats, the
vote difference with the candidates immediately above
and below, and many more.
• But fundamentally the result offered consistency, being
data obtained as the votes were being counted.
7. NewsApp basis
Two tables are the basis for this newsapp:
• Table containing the name of each province, de
number of senate seats (only one third of the
provinces) and deputies seats, and the number of
votants (D´Hont model requires more than 1,5%
votes of the total).
• Table containing the name and ID of each party
and list, and the name of candidates, in the same
order they appear in the list.
• Runs the election day every 10 minutes searching
in the official site for new results.
8. Base Table and Results, for cross verification
Base table for
the App, with
info for each
province, for
each type of
legislator
Results table,
generated by
the App.
9. Base Table: Name of the canditates, for Senate and Deputies, presented by each party
for each province.
X = No candidates for that party on that province. Not offered, or not available for that province.
15. Parties, name of candidataes and order in wich they get access to seats .
(From Base Table with that data, simply changing backgroud color to yellow)
16. Parties that get acces to deputies seats, in which order and
candidate names
17. Parties that get acces to Senate seats, in which order and
candidate names
20. Performance by Zones
• Journalists could define any number of “zones”, containing each any number of
districts, that shares a common characteristics, among others, like rural zones,
cities qith more than 500.000 residents, soja zone, affected by flooding,
insecurity or trains accidents.