Memuat
Memuat
Automatic Summary Email for wedding planner
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:
| Wedding Item | Price |
|---|---|
| Venue Rental | 25,000,000 |
| Catering per Plate | 85,000 |
| Stage Decoration | 12,000,000 |
| Bridal Makeup and Attire | 8,000,000 |
| Photographer and Videographer | 9,000,000 |
| Wedding Rings | 7,500,000 |
| Printed Invitations | 4,500 |
| MC and Entertainment | 3,500,000 |
| Guest Souvenirs | 6,500 |
| Wedding Organizer | 10,000,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