Memuat
Memuat
Save Button from Dashboard Form for personal shopping and pre-orders
0 views
Fill three cells on the Dashboard then click a button to save a new row into the Data sheet. Price and category are looked up from Master.

Data entry takes one click with no direct editing of the Data table.
The real project file is available. It is not just the picture above: you get the working file with every formula in place. It can be downloaded after payment, and we send the download link by WhatsApp or email.
ZIP: .xlsx workbook + Apps Script module (.zip)
| Cell | Formula | What it does |
|---|---|---|
| B27 | =IFERROR(VLOOKUP(B25,Master!A:B,2,FALSE),0) | Price preview from Master. |
| B28 | =B26*B27 | Total preview. |
| B29 | =IFERROR(VLOOKUP(B25,Master!A:C,3,FALSE),"") | Category preview. |
| B30 | =COUNTA(Data!B2:B61) | Saved row count. |
The script is delivered as a separate Code.gs file inside the ZIP. Paste it into Extensions, Apps Script. A short excerpt:
function simpanDariForm() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var form = ss.getSheetByName("Dashboard");
var data = ss.getSheetByName("Data");
var master = ss.getSheetByName("Master").getDataRange().getValues();
var tanggal = form.getRange("B24").getValue();
var item = form.getRange("B25").getValue();
var qty = form.getRange("B26").getValue();
var harga = 0, kategori = "";
for (var i = 1; i < master.length; i++) {
if (master[i][0] == item) { harga = master[i][1]; kategori = master[i][2]; }
}
if (!item || qty <= 0 || harga == 0) {
SpreadsheetApp.getUi().alert("Item atau qty belum benar.");
return;
}
data.appendRow([tanggal, item, kategori, qty, harga, "Baru", ""]);
var r = data.getLastRow();
data.getRange(r, 7).setFormula("=D" + r + "*E" + r);
form.getRange("B25:B26").clearContent();
SpreadsheetApp.getActive().toast("Tersimpan di baris " + r);
}Columns of the Data sheet:
| Requested Item | Item Price |
|---|---|
| Korean Skincare Set | 450,000 |
| Outlet Branded Bag | 1,800,000 |
| Imported Running Shoes | 1,500,000 |
| Japanese Chocolate Box | 120,000 |
| Bandung Cake Souvenirs | 150,000 |
| Premium Coffee Pack | 95,000 |
| Original Perfume 50 ml | 650,000 |
| K-Pop Album Merchandise | 350,000 |
| Collectible Blind Box Toy | 180,000 |
| Shopping Fee per Kg | 50,000 |
The sample data is synthetic.
Yes. The picture above is only a preview. After payment we send the download link of the real project file (a ZIP containing the .xlsx workbook and the macro module) by WhatsApp or email.
No. The sample data is synthetic and only shows how the formulas behave. Replace it with your own data and the formulas keep working.
Yes, as a separate order. Message us on WhatsApp with a short description of your columns and what you want to see.
Sample data is synthetic. Google Sheets is a trademark of Google LLC.
Back to Google Sheets portfolio