Excel IFS Practice Question: Scores are in B2:B7. Grade them in D2:D7: 90 and above is A, 75 and above is…
The question
Scores are in B2:B7. Grade them in D2:D7: 90 and above is A, 75 and above is B, 60 and above is C, below 60 is D.
The data
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Student | Score | Grade | |
| 2 | Aarav | 93 | ? | |
| 3 | Diya | 78 | ? | |
| 4 | Ishaan | 61 | ? | |
| 5 | Kavya | 45 | ? | |
| 6 | Rohit | 88 | ? | |
| 7 | Tanvi | 72 | ? |
The yellow cells are where your answer goes.
Show answer
Expected results:
- D2 = A
- D3 = B
- D4 = C
- D5 = D
- D6 = B
- D7 = C
How it works
Explanation: IFS tests conditions in order and returns the result of the first true one. TRUE at the end works as the catch-all for everything else.
Syntax: =IFS(B2>=90,"A",B2>=75,"B",B2>=60,"C",TRUE,"D")
93 is A, 78 is B, 61 is C, 45 is D, 88 is B and 72 is C.
Try it yourself in the live sheet
Type your formula in the highlighted cell and get instant feedback. Free, no Excel install needed.
Try this question in the live sheet →IFS syntax
Checks multiple conditions in order and returns the value for the first one that's true. IFS is used to build decision rules directly into a spreadsheet instead of manually judging each row. Full IFS guide.
More IFS practice questions
- Write A for marks 90 or more, B for 60 or more, otherwise C. Put the grade in C2 to C4.
- Write Absent if the marks cell is empty, Pass if the marks are 40 or more, otherwise…
- Work out the commission: 10% of the sales if they are 100000 or more, 5% if they are…
- Find the shipping charge by weight: up to 1 kg is 40, up to 5 kg is 90, up to 10 kg is…
- Write the department name from the code start: HR is Human Resources, FIN is Finance,…
- Rate each student on two marks: Star if both are 90 or more, Good if at least one is 90…
- Find the amount (quantity times price) with a discount on the whole amount: 20% off for…
- Write the quarter for each month name: Jan to Mar is Q1, Apr to Jun is Q2, Jul to Sep is…
All practice questions · Excel exercises · Interview prep · Cheat sheet