Memuat
Memuat
CSV Import and Backup for crypto portfolio
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:
| Crypto Asset | Buy Price |
|---|---|
| Bitcoin BTC per Coin | 1,450,000,000 |
| Ethereum ETH per Coin | 55,000,000 |
| Solana SOL per Coin | 2,800,000 |
| BNB per Coin | 9,500,000 |
| XRP per Coin | 35,000 |
| Dogecoin per Coin | 2,500 |
| Polygon per Coin | 8,000 |
| Tether USDT | 16,300 |
| USDC per Coin | 16,300 |
| Chainlink LINK | 250,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