
For an entirely different way to determine if a date is between two other dates, you could use the following formulaic approach: Comparing text strings using the DATEVALUE function to convert strings into dates.Įach of the formulas, so far, has been the same basic formula the only thing different between them is the adding of additional functions to compensate for the characteristics of how the dates are stored in the cells. The result of using the DATEVALUE function would be similar to the following figure: (See Figure 2.)įigure 2. You could place the date to check into cell D1 and use the following formula: For instance, let's assume that you have your starting date (August 1, 2018) in cell A1 and your ending date (July 31, 2019) in cell A2. Since dates and times are stored as numbers, it becomes a relatively easy task to simply compare the numbers to determine which is higher or lower and if something is between the high and low.
#EXCEL HOW MANY ROWS HAVE START AND END DATES EQUAL TO 14 SERIAL NUMBER#
The portion of the date before the decimal point (the integer portion of the number) is the serial number for the date, and the portion to the right of the decimal place is the time. Before doing so, it is good to remember that dates (and times) are stored internally by Excel as numbers. In this tip, though, I'll focus on the shorter formulaic approaches. There are actually a wide range of formulas you could use, ranging from the short to the very long. She is trying to figure out the formula that will make this determination. For instance, she may need to determine if November 8, 2018, is between August 1, 2018, and July 31, 2019. Johna needs to determine if a particular date is between two other dates.
