Memuat
Memuat
Nested IF IFS SWITCH for crypto portfolio
0 views
Logic formulas decide discount, transaction tier and status label from the total. Three writing styles are compared so you can pick one.

Rule-based business decisions that run automatically.
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.
.xlsx workbook (.xlsx)
| Cell | Formula | What it does |
|---|---|---|
| H2 | =IF(G2>=AVERAGE(Data!$G$2:$G$61)*1.5,"Besar",IF(G2>=AVERAGE(Data!$G$2:$G$61),"Sedang","Kecil")) | Transaction tier with nested IF against the average. |
| I2 | =IFERROR(IFS(G2>=AVERAGE(Data!$G$2:$G$61)*1.5,0.1,G2>=AVERAGE(Data!$G$2:$G$61),0.05,TRUE,0),IF(G2>=AVERAGE(Data!$G$2:$G$61)*1.5,0.1,IF(G2>=AVERAGE(Data!$G$2:$G$61),0.05,0))) | Discount percent with IFS. |
| J2 | =IFERROR(SWITCH(F2,Rekap!$B$2,"Status 1",Rekap!$C$2,"Status 2","Lainnya"),IF(F2=Rekap!$B$2,"Status 1",IF(F2=Rekap!$C$2,"Status 2","Lainnya"))) | Status label with SWITCH. |
| K2 | =IF(AND(D2>0,E2>0),G2*(1-IF(G2>=AVERAGE(Data!$G$2:$G$61)*1.5,0.1,IF(G2>=AVERAGE(Data!$G$2:$G$61),0.05,0))),0) | Total after discount when qty and price are valid. |
Columns 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 (an .xlsx workbook) 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