Memuat
Memuat
Nested IF IFS SWITCH for vehicle garage
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:
| Service or Spare Part | Price |
|---|---|
| Motorbike Oil Change | 55,000 |
| Car Oil Change | 350,000 |
| Routine Motorbike Service | 90,000 |
| Car Tune Up | 450,000 |
| Front Brake Pad Replacement | 120,000 |
| Motorbike Tire Replacement | 250,000 |
| Car Battery Replacement | 900,000 |
| Spark Plug Replacement | 30,000 |
| Radiator Flush | 150,000 |
| Alignment and Balancing | 200,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