Skip to content
xlsoffice. All Rights Reserved
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Lookup and Reference Examples

  • CHOOSE function: Description, Usage, Syntax, Examples and Explanation
  • How to get relative row numbers in a range in Excel
  • Complete List of Excel Lookup and Reference Functions, References and Examples
  • How to get last row in mixed data with blanks in Excel
  • Count unique text values with criteria

Data Analysis Examples

  • Conditional Formatting Icon Sets Examples in Excel
  • What-If Analysis: Scenarios and Goal Seek in Excel
  • How To Insert and Customize Sparklines in Excel
  • Conditional Formatting Color Scales Examples in Excel
  • How to create dynamic reference table name in Excel

Data Validation Examples

  • Excel Data validation must contain specific text
  • Excel Data validation number multiple 100
  • Excel Data validation only dates between
  • Excel Data validation with conditional list
  • Excel Data validation date in specific year

Category: Excel Functions

Convert Unix time stamp to Excel date

by

This tutorial show how to Convert Unix time stamp to Excel date using the 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/86400)+DATE(1970,1,1) Explanation of how this formula works In the example shown, the formula in C5 is: =(B5/86400)+DATE(1970,1,1) The Unix …

Continue Reading

Convert time to time zone in Excel

by

This tutorial show how to Convert time to time zone in Excel using the example below. To convert a time from one time zone to another, you can use a formula that converts hours entered as whole numbers to the decimal values that Excel recognizes as times.  Formula =MOD(time+(hours/24),1) Explanation of how this formula works In …

Continue Reading

Convert text to date in Excel

by

This tutorial show how to Convert text to date in Excel using the example below. To convert text in an unrecognized date format to a proper Excel date, you can parse the text and assemble a proper date with a formula based on several functions: DATE, LEFT, MID, and RIGHT. Note: Before you go the formula route, see …

Continue Reading

Convert text timestamp into time in Excel

by

This tutorial show how to Convert text timestamp into time in Excel using the example below. Top convert a timestamp entered as text into a proper Excel time, you can use the MID function to extract components and the TIME function to assemble the time. Formula =TIME(MID(A1,1,2),MID(A1,4,2),MID(A1,7,2)) Explanation of how this formula works In the example …

Continue Reading

Extract time from a date and time in Excel

by

This tutorial show how to Extract time from a date and time in Excel using the example below. If you have dates with time values and you want to extract only the time portion (the fractional part), you can use a formula that uses the MOD function. Note: Excel handles dates and time using a scheme in which …

Continue Reading

Extract date from a date and time in Excel

by

This tutorial show how to Extract date from a date and time in Excel using the example below. If you have dates with time values and you want to extract only the date portion, you can use a formula that uses the INT function. Note: Excel handles dates and time using a scheme in which …

Continue Reading

Dynamic date list in Excel

by

This tutorial show how to Dynamic date list in Excel using the example below. To create a dynamic date list, you can use a formula that increments a start date to create and display additional dates.  Formula =start+ROWS(exp_rng)-1-offset Explanation of how this formula works In the example shown, the formula in B5 is: =start+ROWS($B$5:B5)-1-offset where “start” is …

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

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

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

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

Basic timesheet formula with breaks in Excel

by

This tutorials shows Basic timesheet formula with breaks in Excel. To calculate work hours, taking into account break time that needs to be subtracted, you can use a formula based on the MOD function. MOD is used to handle start and end times that cross midnight. Formula =MOD(workstart-workend,1)-MOD(breakstart-breakend,1) Explanation In the example shown, the formula in …

Continue Reading

Calculate years between dates in Excel

by

If you want to calculated the number of years between two dates,  then this tutorials is for you. See example below; To calculated the number of years between two dates, you can use the YEARFRAC function, which will return a decimal number representing the fraction of a year between two dates. Here are a few examples …

Continue Reading

Calculate retirement date in Excel

by

If you need to calculate retirement date in Excel, then this tutorials is for you. To calculate a retirement date based on a birth date, you can use the EDATE function. See example below; Formula =EDATE(A1,12*60) Explanation In the example shown, the formula in D6 is: =EDATE(C6,12*60) How this formula works The EDATE function is fully automatic, and will …

Continue Reading

Calculate number of hours between two times in Excel

by

This tutorials shows how to calculate number of hours between two times in Excel. To calculate the number of hours between two times, you can use a formula that simply subtracts the start time from the end time. This is useful to calculate working time, calculate elapsed time, etc. However, when times cross a day boundary …

Continue Reading

Calculate expiration date in Excel

by

If you need to calculate an expiration in the future, you can use a variety of formulas. See example below; Formula =A1+30 // 30 days Explanation In the example shown, the formulas used in column D are: =B5+30 // 30 days =B5+90 // 90 days =EOMONTH(B7,0) // end of month =EDATE(B8,1) // next month =EOMONTH(B7,0)+1 …

Continue Reading

Calculate days remaining in Excel

by

If you need to calculate the days remaining from one date to another, you can use a simple formula that subtracts the earlier date from the later date. See example below; Formula =end_date-start_date Explanation In the example shown, the formula in D5 is: =C5-B5 How this formula works Dates in Excel are just serial numbers …

Continue Reading

Calculate date overlap in days in Excel

by

If you need to calculate the number of days that overlap in two date ranges, then this tutorials is for you. You can use basic date arithmetic, together with the the MIN and MAX functions. See example below; Formula =MAX(MIN(end1,end2)-MAX(start1,start2)+1,0) Explanation In the example shown, the formula in D6 is: =MAX(MIN(end,C6)-MAX(start,B6)+1,0) How this formula works Excel dates …

Continue Reading

Add business days to date in Excel

by

If you need to add or subtract business days (workdays) to a date so that you can calculate a date in the future or past that skips weekends (and holidays),  then this tutorials is for you. The example below shows how to  Add business days to date in Excel. You can use the WORKDAY function. Holidays …

Continue Reading

Add days exclude certain days of week in Excel

by

It you need to add days and exclude certain days of week in Excel then this tutorials is for you. To add days to a date while excluding specific days (i.e. exclude Tuesdays and Thursdays, Wednesdays only, etc.) you can use the WORKDAY.INTL function with a special pattern code see the example below: Formula =WORKDAY.INTL(date,days,”pattern”) Explanation …

Continue Reading

Add days to date in Excel

by

It you need to add days to date in Excel then this tutorials is for you. See example below: To add a given number of years to a date, you can use the EDATE function. Formula =date+days Explanation In the example shown, the formula in D5 is: =B5+C5 How this formula works Dates in Excel are …

Continue Reading

Posts navigation

  • Previous
  • 1
  • …
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • …
  • 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
  • How to translate letters to numbers in Excel
  • How to check if cell contains all of many things in Excel
  • T function: Description, Usage, Syntax, Examples and Explanation
  • Put names into proper case — Manipulating NAMES in Excel
  • How to compare two text strings in Excel
  • Calculate series of dates by workdays in Excel
  • How to get year from date in Excel
  • DATE function: Description, Usage, Syntax, Examples and Explanation
  • DATEDIF function: Description, Usage, Syntax, Examples and Explanation
  • YEARFRAC function: Description, Usage, Syntax, Examples and Explanation
  • TBILLPRICE function: Description, Usage, Syntax, Examples and Explanation
  • CUMIPMT function: Description, Usage, Syntax, Examples and Explanation
  • ODDLPRICE function: Description, Usage, Syntax, Examples and Explanation
  • CUMPRINC function: Description, Usage, Syntax, Examples and Explanation
  • YIELD function: Description, Usage, Syntax, Examples and Explanation
© 2022 xlsoffice . All Right Reserved. | Teal Smiles