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.
如何在 excel 中比较月份,例如我有Novincell A1和Novin cell B1,所以如果它们相等将显示1else diplay 0。
Nov
cell A1
cell B1
1
0
如果这些只是文本值,请尝试
=IF(A1=B1,1,0)
还是它们的实际日期被格式化为显示月份?在这种情况下尝试
=IF(MONTH(A1)=MONTH(B1),1,0)