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

Data Analysis

  • Randomize/ Shuffle List in Excel
  • How To Remove Duplicates In Excel Column Or Row?
  • Conditional Formatting Icon Sets Examples in Excel
  • How To Create Frequency Distribution in Excel
  • How to create a Histogram in Excel

References

  • Find Closest Match in Excel Using INDEX, MATCH, ABS and MIN functions
  • Count unique text values with criteria
  • How to get address of last cell in range in Excel
  • How to get relative row numbers in a range in Excel
  • How to use Excel MMULT Function

Data Validations

  • Excel Data validation must contain specific text
  • Excel Data validation whole percentage only
  • Excel Data validation only dates between
  • How To Create Drop-down List in Excel
  • Excel Data validation unique values only

DATEVALUE function: Description, Usage, Syntax, Examples and Explanation

by

What is DATEVALUE function in Excel?

DATEVALUE function is one of Date and Time functions in Microsoft Excel that converts a date that is stored as text to a serial number that Excel recognizes as a date. For example, the formula =DATEVALUE(“1/1/2008”) returns 39448, the serial number of the date 1/1/2008. Remember, though, that your computer’s system date setting may cause the results of a DATEVALUE function to vary from this example

The DATEVALUE function is helpful in cases where a worksheet contains dates in a text format that you want to filter, sort, or format as dates, or use in date calculations.To view a date serial number as a date, you must apply a date format to the cell.

Worked Example:   Convert date string to date time in Excel

Syntax of DATEVALUE function

DATEVALUE(date_text)

The DATEVALUE function syntax has the following arguments:

  • Date_text: Text that represents a date in an Excel date format, or a reference to a cell that contains text that represents a date in an Excel date format. For example, “1/30/2008” or “30-Jan-2008” are text strings within quotation marks that represent dates.Using the default date system in Microsoft Excel for Windows, the date_text argument must represent a date between January 1, 1900 and December 31, 9999. The DATEVALUE function returns the #VALUE! error value if the value of the date_text argument falls outside of this range.If the year portion of the date_text argument is omitted, the DATEVALUE function uses the current year from your computer’s built-in clock. Time information in the date_text argument is ignored.
Worked Example:   Convert date string to date time in Excel

DATEVALUE formula explanation

  • Excel stores dates as sequential serial numbers so that they can be used in calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008 is serial number 39448 because it is 39,447 days after January 1, 1900.
  • Most functions automatically convert date values to serial numbers.

Example of DATEVALUE function

Steps to follow:

1. Open a new Excel worksheet.

2. Copy data in the following table below and paste it in cell A1

Note: For formulas to show results, select them, press F2 key on your keyboard and then press Enter.

Worked Example:   Convert date string to date time in Excel

You can adjust the column widths to see all the data, if need be.

Data
11
3
2011
Formula Description Result
=DATEVALUE(“8/22/2011”) Serial number of a date entered as text. 40777
=DATEVALUE(“22-MAY-2011”) Serial number of a date entered as text. 40685
=DATEVALUE(“2011/02/23”) Serial number of a date entered as text. 40597
=DATEVALUE(“5-JUL”) Serial number of a date entered as text, using the 1900 date system, and assuming the computer’s built-in clock returns 2011 as the current year. 39634
=DATEVALUE(A2 & “/” & A3 & “/” & A4) Serial number of a date created by combining the values in cells A2, A3, and A4. 40850

Post navigation

Previous Post:

DAY function: Description, Usage, Syntax, Examples and Explanation

Next Post:

DATEDIF function: Description, Usage, Syntax, Examples and Explanation

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

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

  • Complete List of Excel Logical Functions, References and Examples
  • IF, AND, OR and NOT Functions Examples in Excel
  • OR function: Description, Usage, Syntax, Examples and Explanation
  • How to use Excel NOT Function
  • TRUE function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • Get date from day number in Excel
  • Steps to create Dynamic calendar grid in Excel
  • Convert Unix time stamp to Excel date
  • Get work hours between dates in Excel
  • Convert decimal hours to Excel time

Grouping

  • Group numbers at uneven intervals in Excel
  • Calculate conditional mode with criteria in Excel
  • Categorize text with keywords in Excel
  • Group arbitrary text values in Excel
  • Group times into unequal buckets in Excel

General

  • Subtotal by invoice number in Excel
  • How to count total columns in range in Excel
  • Cell References: Relative, Absolute and Mixed Referencing Examples
  • How to make excel worksheets print on one page?
  • How to calculate percent change in Excel
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning