How do I use the IF command, or another in adjacent cells? Example, if A1 = 'knife' and the adjacent cell (A2) is equal to ‘fork’. That is, I need to identify an adjacent cell in the vertical direction.

How do I use the IF command, or another in adjacent cells? Example, if
Share
use the
AND()function:IF(AND(A1="knife";A2="fork");"ok";"")