Click here to Skip to main content
15,921,226 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am just new to the system.
Not that good in Excel as well, but I make use of it to calculate, and make a report using the summary.
In our stats, I need to have the final total, average, and also the specific details.

What I do, is I have to copy and paste the table from the server to excel, then perform the necessary calculations.

But the hard part is that when there are new encodings or updates in the server, I cannot see that in Excel and I have to copy and paste the whole thing again in Excel and then make necessary computations.

It takes so much of my time and effort.

Please HELP.

Thank you.
Posted
Comments
PIEBALDconsult 8-Nov-15 21:58pm    
What does that have to do with PHP?
Where is the data stored? You can probably have the Excel file connect to the data source and pull the data in. (Don't ask me how, I've never done it.)

My preference is just to produce XML or CSV (for anyone who wants to see data in Excel).

You might also want to consider using SSIS to produce an Excel report.
danilo servano jr 8-Nov-15 22:59pm    
The server is maintained by other person. It's like a 3rd party contractor. I have to request from time to time if I want to see some updates. Since it's a raw file, I have to calculate the sub-totals and overall totals.
What I have is just a view of the data.
He is using PHP. I am not sure what that is. Hahaha...
What I can do is just copy the tables and all the figures in excel, then calculate for the total and the average.
That is why I just want to link the data to excel, and perform the calculations.
Hope that makes sense.
Patrice T 8-Nov-15 22:19pm    
Why do you need Excel at all ? can't you do the calculus without Excel ?
danilo servano jr 8-Nov-15 23:00pm    
I am not sure if you can see my comment below or should I reply to your comments personally. But in case, I am posting it here personally to reply to you.
Thanks by the way.

The server is maintained by other person. It's like a 3rd party contractor. I have to request from time to time if I want to see some updates. Since it's a raw file, I have to calculate the sub-totals and overall totals.
What I have is just a view of the data.
He is using PHP. I am not sure what that is. Hahaha...
What I can do is just copy the tables and all the figures in excel, then calculate for the total and the average.
That is why I just want to link the data to excel, and perform the calculations.
Hope that makes sense.
danilo servano jr 8-Nov-15 22:25pm    
The server is maintained by other person. It's like a 3rd party contractor. I have to request from time to time if I want to see some updates. Since it's a raw file, I have to calculate the sub-totals and overall totals.
What I have is just a view of the data.
He is using PHP. I am not sure what that is. Hahaha...
What I can do is just copy the tables and all the figures in excel, then calculate for the total and the average.
That is why I just want to link the data to excel, and perform the calculations.
Hope that makes sense.

1 solution

I'll make a leap and presume your data is in SQL Server:

Google Results:
https://www.google.com/search?q=run+sql+query+inside+excel&ie=utf-8&oe=utf-8[^]

I've done this. The only weakness is that the login credential are available within the spreadsheet as plain-text (if one has a hex-editor to get at it). Thus, it is recommend you obtain a read-only guest account if you go this route.

As was state above: you've not really given enough information for a definitive answer.
 
Share this answer
 
Comments
danilo servano jr 11-Nov-15 1:48am    
Thank you for this response. I was able to export the file from database server to excel.
Thanks for the link.
Cheers!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900