Tip Printed from ExcelTip.com
Determining whether Two Given Dates Occur within the Same Week


Problem:

Determining whether each pair of corresponding dates in columns A & B occur within the same week.

Solution:

Use the WEEKNUM and IF functions as shown in the following formula:
=IF(WEEKNUM(A2,2)=WEEKNUM(B2,2),"Same Week","Different Week")