how is the data stored / what kind of database do you use? SQL? Access? etc
what server side language do you wish to use asp? php?
how do you want to export the data? csv? xml?
are the queries going to be the same each day or will there be changing variables?
do they need to be run at the same time each day or ad hoc?

you will didn't give anywhere near enough info for me to supply a proper answer. However if i was doing it (adapt this as needed) I would set it up as so...

data stored in mySQL database
PHP script to pull data, sort and create a csv
script run at set times by a chron job
csv could be picked up and imported into excel whenever needed.