I have a couple of Google Spreadsheets. This Spreadsheets have the same columns number and columns names, but diffrent data.
I want to merge all of this Spreadsheets
You can use Google Apps Scripts for this.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var All = ss.insertSheet("All-Values");
function TotalsSheet() {
var totaldata = [];
var sheets = ss.getSheets();
var totalSheets = 2;
for (var i=0; i < totalSheets; i++) {
var sheet = sheets[i];
var range = sheet.getDataRange();
var values = range.getValues();
for (var row in values) {
totaldata.push(values[row]);
}
}
return totaldata;
}
function Start() {
var totaldata = TotalsSheet();
for (var i =0; i < totaldata.length; i++) {
All.appendRow(totaldata[i]);
}
}