vep temp
vep temp

Reputation: 267

Compare months in excel

how to compare months in excel, for example I have Nov in cell A1 and Nov as well in cell B1, so if those are equal will display 1 else diplay 0.

Upvotes: 1

Views: 9639

Answers (1)

barry houdini
barry houdini

Reputation: 46371

If those are just text values try

=IF(A1=B1,1,0)

or are they actual dates formatted to show the month? In which case try

=IF(MONTH(A1)=MONTH(B1),1,0)

Upvotes: 3

Related Questions