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

Data Analysis

  • Working With Tables in Excel
  • How to count table rows in Excel
  • Understanding Anova in Excel
  • How To Create Pareto Chart in Excel
  • Conditional Formatting New Rule with Formulas in Excel

References

  • To count total rows in a range in Excel
  • How to get address of first cell in range in Excel
  • Extract data with helper column in Excel
  • How to get relative row numbers in a range in Excel
  • Lookup entire row in Excel

Data Validations

  • Excel Data validation must contain specific text
  • Data validation must not exist in list
  • Excel Data validation exists in list
  • Excel Data validation allow weekday only
  • Excel Data validation unique values only

Category: Excel Functions

Convert date to month and year in Excel

by

This tutorial shows how to Convert date to month and year in Excel using example below. To convert a normal Excel date into yyyymm format (e.g. 9/1/2017 > 201709), you can use the TEXT function. Formula =TEXT(date,”yyyymm”) Explanation In the example shown, the formula in C6 is: =TEXT(B6,”yyyymm”) How this formula works The TEXT function …

Continue Reading

Convert date to text in Excel

by

This tutorial shows how to Convert date to text in Excel using example below. If you need to convert dates to text (i.e. date to string conversion) , you can use the TEXT function. The TEXT function can use patterns like “dd/mm/yyyy”, “yyyy-mm-dd”, etc. to convert a valid date to a text value. See table below for …

Continue Reading

Convert decimal hours to Excel time

by

This tutorial shows how to Convert decimal hours to Excel time using example below. To convert hours in decimal format to a value Excel recognizes as time, divide by 24. Formula =hours/24 Explanation In the example shown the formula in C5 is: =B5/24 which returns 0.04167, the equivalent of 1 hours. Cell D6 shows the …

Continue Reading

Convert decimal minutes to Excel time

by

This tutorial shows how to Convert decimal minutes to Excel time using example below. To convert minutes in decimal format to a proper Excel time, divide by 1440. Formula =minutes/1440 Explanation In the example shown, the formula in C6 is: =B6/1440 Because B6 contains 60 (representing 360 minutes) the result is 60/1440 = 0.04167, since …

Continue Reading

Convert decimal seconds to Excel time

by

This tutorial shows how to Convert decimal seconds to Excel time  using example below. To convert seconds in decimal format to a proper Excel time, divide by 86400. Formula =seconds/86400 Explanation In the example shown, the formula in C6 is: =B6/86400 To display the result as time, apply a time format. Column D shows the …

Continue Reading

Convert Excel time to decimal hours in Excel

by

This tutorial shows how to Convert Excel time to decimal hours  using example below. To convert a valid Excel time into decimal hours, simply multiply by 24.  Formula =A1*24 Explanation In the example shown, the formula in C6 is: =B6*24 which returns a value of 1. How this formula works In the Excel time system, …

Continue Reading

Convert Excel time to decimal minutes

by

This tutorial shows how to Convert Excel time to decimal minutes using example below. To convert a valid Excel time into decimal minutes, you can multiply by 1440.  Formula =A1*1440 Explanation In the example shown, the formula in C6 is: =B6*1440 which returns a value of 30. How this formula works In the Excel time system, …

Continue Reading

Convert Excel time to decimal seconds

by

This tutorial shows how to Convert Excel time to decimal seconds using example below. To convert a valid Excel time into decimal seconds, you can multiply by 86400. Formula =A1*86400 Explanation In the example shown, the formula in C6 is: =B6*86400 which returns a value of 60, since there are 60 seconds in 1 minute. How …

Continue Reading

Convert Excel time to Unix time in Excel

by

This tutorial shows how to Convert Excel time to Unix time in Excel using example below. To convert a time in Excel’s format to a Unix time stamp, you can use a formula based on the DATE function. Formula =(A1-DATE(1970,1,1))*86400 > Explanation In the example shown, the formula in C5 is: =(B5-DATE(1970,1,1))*86400 How this formula …

Continue Reading

Custom weekday abbreviation in Excel

by

This tutorial shows how to create custom weekday abbreviation in Excel using example below. To create a custom weekday abbreviation, you can use a formula based on the CHOOSE and WEEKDAY functions. With this approach, you can generate a custom one-letter abbreviation, two-letter abbreviation, or any weekday that makes sense in your particular situation. Formula =CHOOSE(WEEKDAY(date),”S”,”M”,”T”,”W”,”T”,”F”,”S”) …

Continue Reading

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

Posts navigation

  • Previous
  • 1
  • …
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • …
  • 21
  • 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

  • IF function: Description, Usage, Syntax, Examples and Explanation
  • IF with wildcards in Excel
  • IFERROR function: Description, Usage, Syntax, Examples and Explanation
  • How to use Excel NOT Function
  • IF with boolean logic in Excel

Date Time

  • Add workdays no weekends in Excel
  • NOW function: Description, Usage, Syntax, Examples and Explanation
  • Convert Excel time to decimal seconds
  • DAY function: Description, Usage, Syntax, Examples and Explanation
  • Dynamic date list in Excel

Grouping

  • Map inputs to arbitrary values in Excel
  • If cell contains one of many things in Excel
  • Calculate conditional mode with criteria in Excel
  • Group arbitrary text values in Excel
  • Group times into unequal buckets in Excel

General

  • Using Existing Templates in Excel
  • Count cells that contain errors in Excel
  • How to calculate project complete percentage in Excel
  • Count cells that do not contain many strings in Excel
  • Customize Ribbon In Excel
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning