﻿

## How to determine if a date falls between two dates or weekend in Excel?

Sometimes you may want to determine or check whether a date falls between two dates or weekend in Excel. This article will show you following tricky ways to check whether a date falls between two dates or weekend in Excel.

Determine if a date falls between two dates with formula

Determine if a date falls between two dates with Kutools for Excel (without formula)

Determine if a date falls on a weekend with formulas and VBA code

Convert dates to certain weekday to determine if a date falls on a weekend (without formula)

You may interest in:

 Combine multiple worksheets/workbooks into one worksheet / workbook:
 Combine multiple worksheets or workbooks into one single worksheet or workbook may be a huge task in your daily work. But, if you have Kutools for Excel, its powerful utility – Combine can help you quickly combine multiple worksheets, workbooks into one worksheet or workbook.

#### Recommended Productivity Software

Office Tab: Use tabbed interface in Office as the use of web browser Chrome, Firefox and Internet Explorer.
Kutools for Excel: Adds 120 powerful new features to Excel. Increase your productivity in 5 minutes. Save two hours every day!
Classic Menu for Office: Brings back your familiar menus to Office 2007, 2010 and 2013 (includes Office 365).

### Hint

An example may be easily to understand. We will show you how to determine if the dates in Column A fall between 7/1/2008 and 12/31/2009, and check whether they fall on a weekend too.

For example, you need to determine expenses occurred on specific dates whether falls on project duration from 7/1/2008 to 13/31/2009. And you can get the answer with following steps:

Step 1: In the blank cell, says Cell B2, enter the formula of =IF(AND(A2>\$B\$1,A2<\$c\$1),a2, FALSE), and press the Enter key.

This formula will check whether the date falls between 7/1/2008 and 12/31/2009. If the date falls in this period, it will return the date; if the date does not falls in this period, it will return the text of FALSE.

 Formula is too complicated to remember? The Auto Text feature of Kutools for Excel can save the formula as an Auto Text entry for reusing with only one click in future!Read More...   or   Download the free trail now!

Step 2: Select the Range of B2:B18, and click the Home >> Fill >> Down to copy this formula to this column.

Now you can identify whether a date falls within range or not.

#### Determine if a date falls between two dates in Excel with Kutools for Excel (without formula)

With the Select Specific Cells utility of Kutools for Excel, you can easily find out the date falls between two dates and then select them immediately.

 Kutools for Excel: with more than 120 handy Excel add-ins, free to try with no limitation in 60 days.

1. Select the range with dates you want to determine if they fall between two dates, and then click Kutools > Select > Select Specific Cells. See screenshot:

2. In the Select Specific Cells dialog box, select the Cell option in the Selection type section, and then specify the Greater than and Less than dates, and finally click the OK button.

You can see cells with dates which fall between two dates are selected immediately. See screenshot:

 If this utility is helpful, you can

#### Determine if a date falls on a weekend with formulas and VBA code

You can determine whether a date in Column A falls on weekends with following steps:

Method A: Using functions to check whether a date falls on a weekend.

Step 1: In a blank cell, enter formula of =IF(OR(WEEKDAY(A2)=1,WEEKDAY(A2)=7),A2,FALSE) in a blank cell, says Cell B2, and press the Enter key.

This formula will identify whether a date falls on weekends or not. If the date falls on weekends, it will returns the date; if the date does not fall on weekends, it will returns the text of FALSE.

 Formula is too complicated to remember? The Auto Text feature of Kutools for Excel can save the formula as an Auto Text entry for reusing with only one click in future!Read More...   or   Download the free trail now!

Step 2: Select the range of B2: B18, and paste the formula to each cell in the selected range with clicking Home >> Fill >> Down.

Method B: Using VBA to check whether a date falls on a weekend.

Step 1: Hold down the ALT + F11 keys, and it opens the Microsoft Visual Basic for Applications window.

Step 2: Click Insert >> Module, and paste the following macro in the Module Window.

Public Function IsWeekend(InputDate As Date) As Boolean
Select Case Weekday(InputDate)
Case vbSaturday, vbSunday
IsWeekend = True
Case Else
IsWeekend = False
End Select
End Function

Step 3: In a blank cell, enter the formula of =IsWeekend(A2), and press the Enter key.

If it returns the text of True, the date in Cell A2 is a weekend; if it returns the text of False, the date in Cell A2 does not falls on a weekend.

#### Convert dates to certain weekday to determine if a date falls on a weekend (without formula)

Besides the above method, you can convert all dates to certain weekday with the Apply Date Format utility of Kutools for Excel, and then determine if a date falls on a weekend (the weekend days are Sunday and Saturday).

 Kutools for Excel: with more than 120 handy Excel add-ins, free to try with no limitation in 60 days.

1. Select the date range, and then click Kutools > Format > Apply Date Formatting. See screenshot:

2. In the Apply Date Formatting dialog box, select Wednesday in the Date formatting box, and then click the OK button.

Now the selected dates are converted to weekdays immediately. You can determine if a date falls on a weekend or not directly based on its content. See screenshot:

Notes:

1. The converted results worked directly in the original data;

2. This utility support UndoCtrl + Z”.

 If this utility is helpful, you can

### Recommended Productivity Tools

The following tools will greatly save your time and effort, which one do you prefer?
Office Tab: Using handy tabs in your Office, as the way of Chrome, Firefox and New Internet Explorer.
Kutools for Excel: 120 powerful new functions for Excel, Increase your productivity in 5 minutes. Save two hours every day!
Classic Menu for Office: Bring back familiar menus to Office 2007, 2010, 2013 and 365, as if it were Office 2000 and 2003.

### Kutools for Excel

Amazing! Increase your productivity in 5 minutes. Don't need any special skills, save two hours every day!

More than 120 powerful advanced functions which designed for Excel:

• Merge Cell/Rows/Columns without Losing Data.
• Combine and Consolidate Multiple Sheets and Workbooks.
• Compare Ranges, Copy Multiple Ranges, Convert Text to Date, Unit and Currency Conversion.
• Count by Colors, Paging Subtotals, Advanced Sort and Super Filter,