Cellgrids Cellgrids
Home › Practice questions › AND › Question 9

Excel AND Practice Question: Years of service are in B2:B7 and the rating (1 to 5) in C2:C7. An employee…

By Rinkesh Shah, founder of Cellgrids.

The question

Years of service are in B2:B7 and the rating (1 to 5) in C2:C7. An employee gets a bonus only if they have at least 2 years of service AND a rating of 4 or more. Show Yes or No in E2:E7.

The data

ABCDE
1EmployeeYearsRatingBonus
2Amit34?
3Neha15?
4Rahul53?
5Priya25?
6Karan44?
7Sneha23?

The yellow cells are where your answer goes.

Show answer

Expected results:

  • E2 = Yes
  • E3 = No
  • E4 = No
  • E5 = Yes
  • E6 = Yes
  • E7 = No

How it works

Explanation: AND returns TRUE only when every condition is true. Wrapping it in IF turns the TRUE or FALSE into Yes or No.
Syntax: =IF(AND(B2>=2,C2>=4),"Yes","No")
Amit (3 years, rating 4) is Yes. Neha has 1 year, so No. Rahul has rating 3, so No.

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 →

AND syntax

=AND(logical1, [logical2], ...)

Returns TRUE only if every condition given is true. AND is used to build decision rules directly into a spreadsheet instead of manually judging each row. Full AND guide.

More AND practice questions

All practice questions · Excel exercises · Interview prep · Cheat sheet