Exercises
/
Logical functions
/

IFS, SWITCH and IFERROR

IFS, SWITCH and IFERROR

Multi-way choices with IFS and SWITCH, and clean error handling with IFERROR and IFNA.

  1. IFS instead of nested IFs: in cell C3, assign a grade — 86 and above "Excellent", from 71 "Good", from 56 "Satisfactory".
  2. The formulas in C2:C4 have no "everything else" case. Write an IFS in cell C5 for Malika: a score below 56 is "Unsatisfactory".
  3. The bonus rate depends on the department: IT — 15%, Finance — 10%, Marketing — 12%, all others — 5%. In cell D5, find Doniyor's rate with SWITCH.
  4. Average receipt = revenue ÷ number of receipts. The new Sergeli branch has no sales yet. Write a formula in D4 that shows "No data" if there is an error.
  5. Code P07 in B7 is not in the catalog. In cell B8, look up the price with VLOOKUP and wrap it in IFNA: if not found show "Not in catalog".
  6. Delivery tariff: within Tashkent, orders of 500 000 UZS or more are free (0), other Tashkent orders cost 20 000, other regions 45 000. Calculate it in cell D2 with IFS.
  7. Stock is kept in two warehouses. In cell B9, find the stock for the code in B8: look in the main warehouse first, and if it isn't there — in the reserve one.