For statistical reasons, I want an extensive analysis from a dataset. I already have a function that exports the data to Excel, but I have raw data that way; 500 lines, 35 columns, heaps of text sometimes…
Is it possible to include a macro into a function so that the excelfile is readymade to be analyzed?
I am using ASP, Javascript, and at the moment Excel 2003. This is the current function (written by one of my predecessors):
function exporttoexcel() { //export to excel if (tableSortArray.length > 0) { var t, arr; var tempArray=new Array(); for(var i=0; i, i<tableSortArray.length; i++) { arr = tableSortArray[i].toString(); arrr = (arr.split(',')); if (i==0) { t = arrr[1]; } else { t += ','+arrr[1]; } } document.excel.t.value = t; } // I left out some mumbojumbo about sorting here document.excel.submit(); }
I mean macro’s so that graphs are made ‘automatically’ as well as some turntables…
Stolen from mrexcel.com (google + cut_paste = faster than typing):
Alternatively you could also just setup a master excel file (say called ‘analysis.xls’) that references the data in the ‘data’ excel file, for example in a cell enter:
User opens up the master (‘analysis.xls’) and it in turn adds all the values from Z:\excel-data\Current-data.xls, just replace Current-data.xls with new data as needed.