Memuat
Memuat
CSV Import and Backup for laundry
0 views
Pick a CSV file and its rows are appended to the Data sheet. Before importing, the macro saves a backup copy stamped with date and time.

Import thousands of rows safely because a backup always exists.
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 + VBA macro module (.zip)
| Cell | Formula | What it does |
|---|---|---|
| J2 | =COUNTA(Data!B2:B5000) | Row count after import. |
| J3 | ="Backup_"&TEXT(NOW(),"yyyymmdd_hhmm")&".xlsx" | Backup file name pattern. |
| J4 | =SUMPRODUCT(--(Data!G2:G61<>Data!D2:D61*Data!E2:E61)) | Check: rows whose total differs from qty times price. |
The macro module is delivered as a separate Modul_Makro.bas file inside the ZIP. Import it through Alt+F11. A short excerpt:
Sub ImporCSV()
Dim f As Variant, wb As Workbook, wd As Worksheet, n As Long, t As Long
Set wd = ThisWorkbook.Sheets("Data")
ThisWorkbook.SaveCopyAs ThisWorkbook.Path & "\Backup_" & Format(Now, "yyyymmdd_hhmm") & ".xlsx"
f = Application.GetOpenFilename("CSV (*.csv),*.csv")
If f = False Then Exit Sub
Set wb = Workbooks.Open(f)
n = wb.Sheets(1).Cells(wb.Sheets(1).Rows.Count, "A").End(xlUp).Row
If n >= 2 Then
t = wd.Cells(wd.Rows.Count, "A").End(xlUp).Row + 1
wb.Sheets(1).Range("A2:F" & n).Copy
wd.Cells(t, 1).PasteSpecial xlPasteValues
wd.Range("G" & t & ":G" & (t + n - 2)).Formula = "=D" & t & "*E" & t
End If
Application.CutCopyMode = False
wb.Close SaveChanges:=False
MsgBox (n - 1) & " baris diimpor.", vbInformation
End SubColumns 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. Excel is a trademark of Microsoft Corporation.
Back to Excel portfolio