Memuat
Memuat
Nested IF IFS SWITCH for tax and income tax
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:
| Tax Object | Amount |
|---|---|
| Monthly Gross Income | 12,000,000 |
| Personal Tax Free Income Yearly | 54,000,000 |
| Marital Allowance | 4,500,000 |
| Monthly SMB Turnover Final Tax | 45,000,000 |
| Occupational Cost | 600,000 |
| Pension Contribution | 240,000 |
| Income Tax 21 Withheld | 350,000 |
| Income Tax 23 Services | 200,000 |
| VAT on Sales | 1,100,000 |
| Tax 25 Installment | 500,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