Tell me more ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I have a function that is set up to write to a database with 10-20 standard variables with 10 fields each, but the application is going to a place where database access is not available. Can Mathematica read an Excel file and pick up the portions of the file that relate to one of these 20 variables, change them if needed and write the whole thing back again? If so, how would that be accomplished? Thanks!

share|improve this question
1  
Yes. See reference.wolfram.com/mathematica/guide/… You could keep each "table" in a separate Excel file or de-normalize the entire database and store it in a single file. You could also just store everything in CSV. – Jagra Jun 18 '12 at 22:29
5  
Beware of where you are going ... Excel is not transactional, not multiuser, not robust, ... it is NOT a DB – belisarius Jun 18 '12 at 22:37
@belisarius Totally agree. I was trying for a read it all in and write it all out type of solution. No transactions available. – R Hall Jun 18 '12 at 22:55
1  
There is a way to manipulate Excel like you would with VBA: mathematica.stackexchange.com/questions/4594/… – Faysal Aberkane Jun 19 '12 at 6:14
2  
It's probably much better to go with a real database. Having said that, perhaps you could use Leonid's SQL DSL as a starting point and just operate on mathematica lists, which you could export to a file. – Ajasja Jun 19 '12 at 8:06
show 5 more comments

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.