Memuat
Memuat
Automatic PDF Export for vehicle garage
0 views
One click turns the Dashboard sheet into a neat PDF and saves it to Google Drive. The PDF link is written back to the Dashboard.

A PDF report ready to send to clients or managers in one click.
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 |
|---|---|---|
| B24 | =SUM(Data!G2:G61) | Total shown in the report. |
| B25 | =COUNTA(Data!B2:B61) | Transactions in the report. |
| B26 | ="Laporan per "&TEXT(TODAY(),"DD MMMM YYYY") | Dated report title. |
| B27 | =IFERROR(AVERAGE(Data!G2:G61),0) | Average per transaction. |
The script is delivered as a separate Code.gs file inside the ZIP. Paste it into Extensions, Apps Script. A short excerpt:
function eksporPdfDashboard() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheetByName("Dashboard");
var url = "https://docs.google.com/spreadsheets/d/" + ss.getId() + "/export?" +
"format=pdf&gid=" + sheet.getSheetId() +
"&size=A4&portrait=false&fitw=true&gridlines=false";
var token = ScriptApp.getOAuthToken();
var respon = UrlFetchApp.fetch(url, {
headers: { Authorization: "Bearer " + token }
});
var nama = "Dashboard " + Utilities.formatDate(new Date(), "Asia/Jakarta", "yyyy-MM-dd") + ".pdf";
var berkas = DriveApp.createFile(respon.getBlob().setName(nama));
sheet.getRange("B28").setValue(berkas.getUrl());
SpreadsheetApp.getActive().toast("PDF tersimpan: " + nama);
}Columns of the Data sheet:
| Service or Spare Part | Price |
|---|---|
| Motorbike Oil Change | 55,000 |
| Car Oil Change | 350,000 |
| Routine Motorbike Service | 90,000 |
| Car Tune Up | 450,000 |
| Front Brake Pad Replacement | 120,000 |
| Motorbike Tire Replacement | 250,000 |
| Car Battery Replacement | 900,000 |
| Spark Plug Replacement | 30,000 |
| Radiator Flush | 150,000 |
| Alignment and Balancing | 200,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