Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Converting large excel simulation to MySQL - Tools & Steps

Posted on 2008-06-10
5
Medium Priority
?
397 Views
Last Modified: 2013-12-13
In Excel I have a simulation that I have been slowly adding to over a series of months.  The simulation is entirely based in Excel and simulates a 8 season period of a football clubs league life.

It allows for 8 clubs to be 'played' over the 8 season period, and each season you enter data for each club.

I want to convert the project to a MySQL database, some of which is simple , some is complex.

The key problem is the worksheet which represents the 'engine' of the simulation, this takes several hundred complext calculations based on the input from all 8 clubs and generates data based on them, this data is then in turn displayed in reports.  

How can I go about breaking the incrediably complex excel spreadhseet apart strategically ?

How can I programme an MySQL table to derive data from other table values ? Is this possible or will the PHP script need to handle the calculations and then post them into the 'stats' table.

Can I use a function as a cell value within a MySQL table, and when will this data update if the function returns a new value, say for example when the club data is added ?

Ultimately I want to build an intelligent MySQL that can store the data , and perform all lthe calculations on the fly as data is updated.
0
Comment
Question by:ecommercedeveloper
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 3

Expert Comment

by:caseyrharris
ID: 21751419
Depending on how the data is entered into the Excel DB you have several option via transactional SQL.  You may create insert/update stored procedures in the SQL DB.  These would then run the business logic you desire populating the data to the other tables.  Another option is to utilize triggers on insert to the club data in order to complete the logic needed to populate the other tables.  

I believe SP's and Triggers are the most effiecient way to do this as all of the computations and work is done at the SQL Server level.  Anymore detail on what the "complex excel computations" you are using?  Maybe with examples I or someone else on here could get you started with the procs/triggers.
0
 

Author Comment

by:ecommercedeveloper
ID: 21751501
Many thanks for your suggestions.

The triggers would have to handle upto 100 calculations all feeding into the 'engine' db, and all pulling data from oher tables containing 'static' data and other club data

A simple example would be, once the club entered its total gate footfall, the sp/trigger for the update would then do

100/allclubfootfall * clubfootfall

to calculate the percentage of football fans the club attracts.  The problem I have is there are hundreds of calculations built up over months of time , for example random weather factors affect the attendence.

How can I possibly extract all the formulas and cell mapping from excel in a manner that allows easy recreation in MySQL
0
 
LVL 3

Accepted Solution

by:
caseyrharris earned 2000 total points
ID: 21752704
Doesn't seem like an easy task, take a look at this thread, it might be helpful:

 http://www.mrexcel.com/archive2/30200/34400.htm

0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This post looks at MongoDB and MySQL, and covers high-level MongoDB strengths, weaknesses, features, and uses from the perspective of an SQL user.
In this article, I’ll talk about multi-threaded slave statistics printed in MySQL error log file.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
Suggested Courses

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question