Memuat
Memuat
Nested IF IFS SWITCH for neighborhood fund ledger
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:
| Cash Description | Amount |
|---|---|
| Resident Security Fee | 50,000 |
| Sanitation Fee | 25,000 |
| Social Fee | 20,000 |
| Security Guard Pay | 1,500,000 |
| Waste Collector Pay | 800,000 |
| Neighborhood Road Repair | 2,500,000 |
| Resident Meeting Snacks | 350,000 |
| Sick Resident Aid | 500,000 |
| Independence Day Contest | 3,000,000 |
| Guard Post Electricity | 150,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