Memuat
Memuat
Automatic Summary Email for laundry
0 views
One function emails the transaction count and total value to the address on the Dashboard. Send time is logged on the Rekap sheet.

Summaries reach email without copying numbers by hand.
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 |
|---|---|---|
| B26 | =SUM(Data!G2:G61) | Total to be sent. |
| B27 | =COUNTA(Data!B2:B61) | Transaction count. |
| B28 | =IF(REGEXMATCH(B24,"^[^@ ]+@[^@ ]+\.[^@ ]+$"),"Alamat valid","Alamat salah") | Check email address format. |
| H2 | =IF(Rekap!H1="","Belum pernah kirim","Terkirim") | Send status from the log in H1. |
The script is delivered as a separate Code.gs file inside the ZIP. Paste it into Extensions, Apps Script. A short excerpt:
function kirimEmailRingkasan() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var data = ss.getSheetByName("Data").getDataRange().getValues();
var tujuan = ss.getSheetByName("Dashboard").getRange("B24").getValue();
var total = 0, jumlah = 0;
for (var i = 1; i < data.length; i++) {
if (data[i][1] !== "") {
total += Number(data[i][6]) || 0;
jumlah++;
}
}
var isi = "Ringkasan " + ss.getName() + "\n" +
"Jumlah transaksi: " + jumlah + "\n" +
"Total nilai: Rp " + total.toLocaleString("id-ID") + "\n" +
"Dikirim: " + new Date();
MailApp.sendEmail(tujuan, "Ringkasan otomatis", isi);
ss.getSheetByName("Rekap").getRange("H1").setValue("Email terkirim " + new Date());
}Columns of the Data sheet:
| Laundry Service | Price |
|---|---|
| Wash and Iron per Kg | 7,000 |
| Wash and Fold per Kg | 5,000 |
| Iron Only per Kg | 4,000 |
| Express 6 Hour Wash per Kg | 12,000 |
| Blanket per Piece | 25,000 |
| Bed Sheet Set | 20,000 |
| Suit or Blazer | 30,000 |
| Sneakers Cleaning | 35,000 |
| Large Stuffed Toy | 25,000 |
| Pickup and Delivery | 10,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