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

Easily 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

Easily 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.


arrow blue right bubble Determine if a date falls between two dates in Excel


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.

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.


arrow blue right bubble 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 you want to have a free trial of this utility, please go to free download the software first, and then go to apply the operation according above steps.


arrow blue right bubble 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:

blue-dotMethod 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.

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

blue-dotMethod 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.


arrow blue right bubble 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 you want to have a free trial of this utility, please go to free download the software first, and then go to apply the operation according above steps.

 

Recommended Productivity Tools

Office Tab

gold star1 Bring handy tabs to Excel and other Office software, just like Chrome, Firefox and new Internet Explorer.

Kutools for Excel

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

gold star1 200 New Features for Excel, Make Excel Much Easy and Powerful:

  • 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,
  • More Select/Insert/Delete/Text/Format/Link/Comment/Workbooks/Worksheets Tools...

Screen shot of Kutools for Excel

btn read more btn download btn purchase

Comments  

Permalink 0 Lily
I'm tryin to see if cell L8 contains a specific date if it doesn then there is one of two values I want it to give me; if it doesn't contact neither of the dates then bring back the valude from a totally different cell.
For example. I'm in an empty cell i.e. W8 and want to look at cell L8 which contains a date and if it equals 12/14/2013 then I want it to return the value of 26, however if the date in cell L8 equals 12/28/2013 then it to return the value of 25 if cell L8 has any other date than the above then I want it to return the value from cell V8. How would I write this???
2013-12-12 04:29 Reply Reply with quote Quote
Permalink 0 Lily
I want to do the following:

I'm in cell w8 which is a empty cell

Cell L8 contains a date

if cell L8 equals 12/14/2013 I want it to return the value of 26 however if it contains the date 12/28/2013 ; if cell L8 doesn't contain either date then I want it to go to cell V8 and give me that cell value.

How would I create the formula?
2013-12-12 04:34 Reply Reply with quote Quote
Permalink 0 Paolo
Hi, very helpful info. Im trying to do a range date let me give you the example if payment is made between " Jan. 1-16 the answer should be 7th of the following month and if payment falls Jan. 17-31 excel should be able to answer 21st of the following month. how could i create this kind of fomula
2014-05-19 01:26 Reply Reply with quote Quote
Permalink 0 BIJEESH.P
I want to know how many times a date or how many dates from a list are present in a range of dates.
For example
Date Range is 1-1-2014 31-1-2014.
The date list is
05-01-2014
11-01-2014
19-01-2014
08-02-2014

want to know the excel formula for count how many times the above list of dates present in the above range of dates.
2014-09-26 10:16 Reply Reply with quote Quote
Permalink 0 KANNAN
Using IF Function i need the following formula. Any one can assist

On A2 cell I will provide a date. On B2 it should indicate 2 Days after A2. If the second day falls on Monday to Friday it should indicate the actual date. If the second day falls on Saturday or sunday it should indicate on Monday automatically

On the same way I need third day,fourth day and fifth day using Macros. Also advice to how to create macros in Excel.
2015-03-05 07:20 Reply Reply with quote Quote
Permalink 0 Gary Devletian
My question falls along these lines.
I have two date ranges A through B, and X through Y.
I need to conditionally format a cell if any dates in range A-B fall within range X-Y.
2015-09-08 15:01 Reply Reply with quote Quote
Permalink 0 Sarathraj r
I want to show a certain date in a cell from a date range which is between two dates.
eg: 01-05-2016 to 05-05-2016 may shown as in other cell as 01-05-2016 .

pls help me..
2016-07-18 07:27 Reply Reply with quote Quote
Permalink 0 zoe
I am recording the SLA duration between dates
40 day SLA starting on day XXXX
I am looking for a formula to show if client holds for x number of days that comes off the SLA too
ie
01 june 2016 + 40 days = 11 July 2016 but project finishes 15 July shows as 4 days overdue

However
01 June 2016 Start
15 July 2016 End date of project
client Held 7 Day
3 days before SLA

Any help?
2016-08-01 12:41 Reply Reply with quote Quote
Permalink 0 Dwarkanath bari
Hello to all,
I have a requirement in excel i.e.
i want to generate dates if design actual date is delay for 2 days then for costing department date is increase by delay date.

design target actual complete costing target marketing target

05-04-2016 07-04-2016 09-04-2016 10-04-2016

in above design target date is 05/04/2016 but design task completed on 07-04-2016 so costing target date will be automatically calculated as per delay days.
2016-09-13 10:04 Reply Reply with quote Quote
Permalink 0 Albert MUKIZA
i want to monitor the dates and set the the alert in my excel , example i want to set in my excel to find the difference days between the request date and deadline to order date and automatically compare this difference with the policy date if the difference is greater than policy date , excel consider not done with an alert color , and if the difference is less than the policy days , excel consider the done with alert color. thank you
2016-11-28 08:59 Reply Reply with quote Quote
Permalink 0 Dani
I want to find all projects that fall within today's date +30 days (Within a month) and have the Project Number displayed when in the range, if not in range keep blank
2017-02-06 03:20 Reply Reply with quote Quote

Add comment


Security code
Refresh