?
Solved

Converting large excel simulation to MySQL - Tools & Steps

Posted on 2008-06-10
5
Medium Priority
?
400 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
  • 2
3 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

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Windows Explorer let you handle zip folders nearly as any other folder: Copy, move, change, and delete, etc. In VBA you can also handle normal files and folders, but zip folders takes a little more - and that you'll find here.
Article by: Tammy
MySQLTuner is a script written in Perl that allows you to review a MySQL installation quickly and make adjustments to increase performance and stability. The current configuration variables and status data is retrieved and presented in a brief forma…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Enter Foreign and Special Characters Enter characters you can't find on a keyboard using its ASCII code ... and learn how to make a handy reference for yourself using Excel ~ Use these codes in any Windows application! ... whether it is a Micr…

589 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