Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在相邻单元格中使用 IF 命令或其他命令?例如,如果A1 = 'knife'和相邻单元格(A2)等于'fork'。也就是说,我需要在垂直方向上识别一个相邻的单元格。
A1 = 'knife'
使用AND()功能:
AND()
IF(AND(A1="knife";A2="fork");"ok";"")