Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • How To Create Frequency Distribution in Excel
  • How to create dynamic reference table name in Excel
  • How To Remove Duplicates In Excel Column Or Row?
  • Excel Line Chart
  • Understanding Pivot Tables in Excel

References

  • How to get last row in mixed data with blanks in Excel
  • Extract data with helper column in Excel
  • How to use Excel MATCH Function
  • Vlookup Examples in Excel
  • VLOOKUP function: Description, Usage, Syntax, Examples and Explanation

Data Validations

  • Excel Data validation don’t exceed total
  • Excel Data validation require unique number
  • Excel Data validation date in specific year
  • How To Create Drop-down List in Excel
  • Excel Data validation only dates between

Category: Date and Time Functions

Excel Date and Time Functions return a dynamic date or time in a cell.

Create date range from two dates in Excel

by

This tutorial shows how to Create date range from two dates in Excel using example below. To display a date range in one cell based on dates in different cells, you can use a formula based on the TEXT function. Formula =TEXT(date1,”format”)&” – “&TEXT(date2,”format”) Explanation In the example shown, the formula in cell E5 is: …

Continue Reading

Convert text date dd/mm/yy to mm/dd/yy in Excel

by

This tutorial shows how to Convert text date dd/mm/yy to mm/dd/yy in Excel using example below. To convert dates in text format dd/mm/yy to a true date in mm/dd/yy format, you can use uses a formula based on the DATE function. Formula =DATE(RIGHT(A1,2)+2000,MID(A1,4,2),LEFT(A1,2)) Explanation In the example shown, the formula in C5 is: =DATE(RIGHT(B5,2)+2000,MID(B5,4,2),LEFT(B5,2)) Which …

Continue Reading

Count times in a specific range in Excel

by

This tutorial shows how to Count times in a specific range in Excel using example below. To count times that occur within a certain range, you can use the COUNTIFs function. Formula =COUNTIFS(range,”>=”&start,range,”<“&end) Explanation In the example shown, the formula in E7 is: =COUNTIFS(B5:B11,”>=”&E5,B5:B11,”<“&E6) How this formula works The COUNTIFS function takes one or more …

Continue Reading

Count holidays between two dates in Excel

by

This tutorial shows how to Count holidays between two dates in Excel using example below. To count holidays that occur between two dates, you can use the SUMPRODUCT function.  Formula =SUMPRODUCT((holidays>=start)*(holidays<=end)) Explanation In the example shown, the formula in F8 is: =SUMPRODUCT((B4:B12>=F5)*(B4:B12<=F6)) How this formula works This formula uses two expressions in a single array …

Continue Reading

Count day of week between dates in Excel

by

This tutorial shows how to Count day of week between dates in Excel using example below. To count the number of Mondays, Fridays, Sundays, etc. between two dates you can use an array formula that uses several functions: SUMPRODUCT, WEEKDAY, ROW, and INDIRECT.  Formula =SUMPRODUCT(–(WEEKDAY(ROW(INDIRECT(date1&”:”&date2)))=dow)) Explanation In the example shown, the formula in cell E6 …

Continue Reading

Count dates in current month in Excel

by

This tutorial shows how to Count dates in current month in Excel using example below. To count dates in the current month, you can use a formula based on the COUNTIFS or SUMPRODUCT function as explained below. Formula =COUNTIFS(range,”>=”&EOMONTH(TODAY(),-1)+1, range,”<“&EOMONTH(TODAY(),0)+1) Explanation In the example shown above, the formula in E7 is: =COUNTIFS(dates,”>=”&EOMONTH(TODAY(), -1)+1,dates,”<“&EOMONTH(TODAY(),0)+1) Where “dates” …

Continue Reading

Steps to create Dynamic calendar grid in Excel

by

This tutorial show how to  create Dynamic calendar grid in Excel using the example below. You can set up dynamic calendar grid on an Excel worksheet with a series of formulas, as explained in this article. Explanation of how this formula works In the example shown, the formula in B6 is: =start-CHOOSE(WEEKDAY(start),0,1,2,3,4,5,6) where “start” is the named …

Continue Reading

Display the current date and time in Excel

by

This tutorial show how to Display the current date and time in Excel using the example below. If you need to display the current date and time in a worksheet, you can use the NOW function. The date and time will update whenever the worksheet is recalculated or opened. Formula =NOW() Explanation of how this formula …

Continue Reading

Display the current date in Excel

by

This tutorial show how to Display the current date in Excel using the example below. If you need to display the current date in a worksheet, you can use the TODAY function. This date will update whenever the worksheet is recalculated or opened.  Formula =TODAY() Explanation of how this formula works Simply enter the formula above …

Continue Reading

Display Days until expiration date in Excel

by

This tutorial show how to Display Days until expiration date in Excel using the example below. To calculate the days until an expiration date, you can use a simple formula based on the TODAY function. Formula =A1-TODAY() Explanation of how this formula works In the example shown, the formula in C6 is: =B6-TODAY() Dates in Excel …

Continue Reading

Display Days in month in Excel

by

This tutorial shows how to Display Days in month in Excel using example below. To get the number of days in a given month from a date, you can use a formula based on the EOMONTH and DAY functions. Formula =DAY(EOMONTH(date,0)) Explanation In the example shown, the formula in cell B5 is: =DAY(EOMONTH(B5,0)) How this …

Continue Reading

Display Date is workday in Excel

by

This tutorial show how to Display Date is workday in Excel using the example below. To determine if a date is a workday or not, you can use a formula based on the WORKDAY function. =WORKDAY(date-1,1,holidays)=date Explanation of how this formula works In the example shown, the formula in C5 is: =WORKDAY(B5-1,1,holidays)=B5 which returns TRUE, since Monday, …

Continue Reading

Display Date is same month in Excel

by

This tutorial show how to Display Date is same month in Excel using the example below. To test two dates to see they both have the same month, you can do so with a simple formula that uses the MONTH function.  Formula =MONTH(date1)=MONTH(date2) Explanation of how this formula works In the example shown, the formula in …

Continue Reading

Get first Monday before any date in Excel

by

To find the first Monday before any date you can use a formula based on the WEEKDAY function. Formula =date-WEEKDAY(date-2) In the example shown, the formula in C6 is: =B5-WEEKDAY(B5-2) Explanation If you imagine you have any random date and want to look back in time to find the nearest Monday, you can see that …

Continue Reading

Get date from day number in Excel

by

This tutorial show how to get date from day number in Excel using the example below. To get a real date from day number, or “nth day of year” you can use the DATE function. Formula =DATE(year,1,daynum) Explanation of how this formula works In the example shown, the formula in C5 is: =DATE(2015,1,B5) The DATE function build …

Continue Reading

Get age from birthday in Excel

by

This tutorial shows how to get age from birthday in Excel using example below. If you need to calculate a person’s age from their birth date, you can do so with the YEARFRAC, INT, and TODAY functions. As stated in the formula below, birthdate is the person’s birthday with year, and TODAY supplies the date …

Continue Reading

Get first day of previous month in Excel

by

To get the first day of the previous month for a given date, you can use a simple formula based on the EOMONTH function. Formula =EOMONTH(date,-2)+1 Explanation In the example shown, the formula in cell B5 is: =EOMONTH(B5,-2)+1 In the example shown, months is supplied as -2, which causes EOMONTH to return 4/30/2015. Then, 1 …

Continue Reading

Get first day of month in Excel

by

This tutorial shows how to get first day of month in Excel using the example below. To get the first day of the month for a given date, you can use a simple formula based on the DAY function. Formula =date-DAY(date)+1 In the example shown, the formula in cell C5 is: =B5-DAY(B5)+1 Explanation   The …

Continue Reading

Get days, months, and years between dates in Excel

by

This tutorial show how to Get days, months, and years between dates in Excel using the example below. To calculate and display the time between dates in days, months, and years, you can use the a formula based on the DATEDIF function. Note: The DATEDIF function is designed to calculate the difference between dates in years, …

Continue Reading

Get days, hours, and minutes between dates in Excel

by

To calculate and display the days, hours, and minutes between two dates, you can use the TEXT function with a little help from the INT function. Alternatively, you can adapt the formula using SUMPRODUCT. Formula =INT(end-start)&” days “&TEXT(end-start,”h”” hrs “”m”” mins “””) Explanation In the example shown, the formula in D5 is: =INT(C5-B5)&” days “&TEXT(C5-B5,”h”” hrs …

Continue Reading

Get days between dates ignoring years in Excel

by

To calculate days between two dates, ignoring year values, use the DATEDIF function. Formula =DATEDIF(start_date,end_date,”yd”) In the example shown, the formula in D6 is: =DATEDIF(B6,C6,”yd”) Explanation The DATEDIF function can handle a variety of “date difference” calculations to calculate the difference between two dates in years, months, and days.  DATEDIF takes 3 arguments: start date, …

Continue Reading

Get days between dates in Excel

by

To calculate the number of days between two dates you can simply subtract the older date from the newer date. The result will be an integer that represent the days between dates. Formula =later_date-earlier_date Explanation In the example shown, the formula in D6 is: =C6-D6 The result is 365, since there are 365 days between …

Continue Reading

Get days before a date in Excel

by

To calculate the number of days before a certain date in Excel, you can use subtraction and the TODAY function. See example below: Formula =date-TODAY() Explanation In the example, D5 contains this formula: =B4-TODAY() How this formula works In Excel, dates are simply serial numbers. In the standard date system for windows, based on the …

Continue Reading

Get day name from date in Excel

by

If you need to get the day name (i.e. Monday, Tuesday, etc.) from a date or to convert the date into a day name, there are several options depending on your needs. Formula TEXT(B4,”dddd”) Explanation Do you just want to display the day name? If you only want to display a day name, you don’t need a …

Continue Reading

Check If Two Dates are same month in Excel

by

This tutorial shows how to compare dates in Excel. To test two dates to see they both have the same month, you can do so with a simple formula that uses the MONTH function. Formula =MONTH(date1)=MONTH(date2) Explanation In the example shown, the formula in cell D6 is: =MONTH(B6)=MONTH(C6) How the formula works In this case, …

Continue Reading

Get month name from date in Excel

by

If you need to get the month name (i.e. January, February, March, etc.) from a date, you have several options depending on your needs. Formula =TEXT(date,”mmmm”) Explanation To convert the date into a month name If you want to convert the date value to a text value, you can use the TEXT function with a custom number …

Continue Reading

Get month from date in Excel

by

If you need to extract the month from a date, you can use the MONTH function. Note: The date in the  formula below must be in a form that Excel recognizes as a valid date.  Formula =MONTH(date) Explanation The MONTH function takes just one argument, the date from which you want to extract the month. …

Continue Reading

Get last working day in month in Excel

by

If you need to determine the last working day of a given month and year, then this tutorials is for you. To get the last working day in a month, you can use the WORKDAY function together with the EOMONTH function. See example below: Formula =WORKDAY(EOMONTH(date)+1,-1) > In the example, the formula in C4 is: …

Continue Reading

Get last weekday in month in Excel

by

This tutorial shows you how to find the last weekday of the month in Excel. To get the last weekday in a month (i.e. the last Saturday, the last Friday, the last Monday, etc) you can use a formula based on the EOMONTH and WEEKDAY functions. Formula =EOMONTH(date,0)+1-WEEKDAY(EOMONTH(date,0)+1-dow) Explanation First, this formula determines the first …

Continue Reading

Get last day of month in Excel

by

If you want to calculate the last day of a month based on a given date, then this tutorials is for you. The example below shows two different ways to achieve this. First, use the EOMONTH function. Formula =EOMONTH(date,0) Explanation In the example shown, the formula in cell B5 is: =EOMONTH(B5,0) The 2nd argument (months) …

Continue Reading

Get fiscal year from date in Excel

by

To get a fiscal year from a date, you can use a formula based on the YEAR and MONTH functions. Formula =YEAR(date)+(MONTH(date)>=startmonth) Explanation In the example shown, the formula in D5 is: =YEAR(B5)+(MONTH(B5)>=C5) How this formula works By convention a fiscal year is denoted by the year in which it ends. So, if a fiscal …

Continue Reading

Get fiscal quarter from date in Excel

by

This tutorial show how to Get fiscal quarter from date in Excel. If you want to calculate the fiscal quarter from a date, and the fiscal quarter starts in a month other than January, you can use a formula based on the CHOOSE function. Formula =CHOOSE(MONTH(date),1,1,1,2,2,2,3,3,3,4,4,4) > Explanation Note: if you just need to calculate a …

Continue Reading

Get day from date in Excel

by

This tutorial show how to Get day from date in Excel using the example below. If you need to extract the day from a date, you can use the DAY function. Formula =DAY(date) Explanation of how this formula works In the generic form of the formula above, the date must be in a form that Excel …

Continue Reading

How to calculate most recent day of week in Excel

by

If you want to find the most recent Wednesday, or Saturday, or Monday, given a specific start date, you can use a formula that uses the MOD function. Formula =date-MOD(date-dow,7) Note: If the the date has the same day of week, date will be returned. Explanation   Formulas that use the concept of “day of …

Continue Reading

How to calculate next day of week in Excel

by

To return the next specific day of week (i.e. the next Wednesday, or Friday, or Monday) with a given start date, you can use a formula based on the WEEKDAY function. Formula =date+7-WEEKDAY(date+7-dow) Explanation  In the example shown, the formula in D6 is: =B6+7-WEEKDAY(B6+7-2) Where B6 contains the date Friday, January 16, 2015, and 2 represents Monday, the “dow”. …

Continue Reading

How to calculate next scheduled event in Excel

by

To get the next scheduled event from a list of events with dates, you can use an array formula based on the MIN and TODAY functions to find the next date, and INDEX and MATCH  to display the event on that date. Formula {=MIN(IF((range>=TODAY()),range))} Note: this is an array formula and must be entered with Control + …

Continue Reading

How to calculate nth day of week in month in Excel

by

To get the nth day if week in a month (i.e. the first Tuesday, third Tuesday, forth Thursday, etc.) you can use a formula based on the DAY and WEEKDAY functions. Formula =date-DAY(date)+1+n*7-WEEKDAY(date-DAY(date)+8-dow) Note:  Day of week is abbreviated “dow” in the generic form of the formula. This is a number between 1 (Sunday) and 7 …

Continue Reading

How to calculate months between dates in Excel

by

To calculate months between two dates as a whole number, you can use the DATEDIF function. Formula =DATEDIF(start_date,end_date,”m”) Explanation In the example shown, the formula in D6 is: =DATEDIF(B6,C6,”m”) Note that the DATEDIF automatically rounds down. To round up to the nearest month, see below. The mystery of DATEDIF The DATEDIF function is a “compatibility” …

Continue Reading

How to calculate nth day of year in Excel

by

To get the nth day of year based on a given date, you can use a formula based on the DATE and YEAR functions. Formula =date-DATE(YEAR(date),1,0) Explanation In the example shown, the formula in C5 is: =B4-DATE(YEAR(B4),1,0) With the date “June 1, 2016” in cell B4, the formula returns 153, since June 1st is the 153rd day …

Continue Reading

How to calculate percent of year complete in Excel

by

If you need to calculate the percent remaining in a year, based on a given date, you do so with a formula based on the YEARFRAC function. Formula =YEARFRAC(DATE(YEAR(date),1,1),date) Explanation In the example, the formula in C5, which calculates percentage of year remaining, is: =YEARFRAC(DATE(YEAR(B5),1,1),B5) How the formula works the YEARFRAC function takes two dates, …

Continue Reading

Posts navigation

  • Previous
  • 1
  • 2
  • 3
  • 4
  • Next

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • Nested IF function example in Excel
  • FALSE function: Description, Usage, Syntax, Examples and Explanation
  • Extract multiple matches into separate rows in Excel
  • IF with wildcards in Excel
  • How to use Excel AND Function

Date Time

  • Convert Excel time to decimal minutes
  • How to calculate Day of the Year in Excel
  • Calculate total hours that fall between two times in Excel
  • Excel Date & Time Functions Example
  • DAYS function: Description, Usage, Syntax, Examples and Explanation

Grouping

  • Group arbitrary text values in Excel
  • If cell contains one of many things in Excel
  • Calculate conditional mode with criteria in Excel
  • How to randomly assign people to groups in Excel
  • Running count group by n size in Excel

General

  • How to generate random date between two dates in Excel
  • Excel Autofill Cell Ranges, Copy, Paste
  • Hide and Unhide Columns or Rows in Excel
  • How to get original number from percent change in Excel
  • How to calculate percent of students absent in Excel
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning