DATEVALUE function - Microsoft Support (2024)

Excel for Microsoft 365 Excel for Microsoft 365 for Mac Excel for the web Excel 2021 Excel 2021 for Mac Excel 2019 Excel 2019 for Mac Excel 2016 More...Less

This article describes the formula syntax and usage of the DATEVALUEfunction in Microsoft Excel.

Description

The DATEVALUE function 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. Find links to more information about displaying numbers as dates in the See Also section.

Syntax

DATEVALUE(date_text)

The DATEVALUE function syntax has the following arguments:

  • Date_textRequired. 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.

Remarks

Example

Copy the example data in the following table, and paste it in cell A1 of a new Excel worksheet. For formulas to show results, select them, press F2, and then press Enter. If you need to, you can adjust the column widths to see all the data.

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

Need more help?

Want more options?

Discover Community

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

DATEVALUE function - Microsoft Support (2024)
Top Articles
5.1 Criminal Defenses – Criminal Law
How Many Actively Managed Mutual Funds Regularly Beat the Market? | Finax.eu
Use Copilot in Microsoft Teams meetings
AMC Theatre - Rent A Private Theatre (Up to 20 Guests) From $99+ (Select Theaters)
Craigslist Monterrey Ca
Missed Connections Inland Empire
Arkansas Gazette Sudoku
OSRS Fishing Training Guide: Quick Methods To Reach Level 99 - Rune Fanatics
DENVER Überwachungskamera IOC-221, IP, WLAN, außen | 580950
EY – все про компанію - Happy Monday
Umn Pay Calendar
What's Wrong with the Chevrolet Tahoe?
Espn Expert Picks Week 2
2021 Tesla Model 3 Standard Range Pl electric for sale - Portland, OR - craigslist
Toonily The Carry
What Was D-Day Weegy
Notisabelrenu
Troy Athens Cheer Weebly
Bfg Straap Dead Photo Graphic
Connect U Of M Dearborn
Epro Warrant Search
Weather Rotterdam - Detailed bulletin - Free 15-day Marine forecasts - METEO CONSULT MARINE
How Much Is Tay Ks Bail
3S Bivy Cover 2D Gen
Royal Cuts Kentlands
Ratchet & Clank Future: Tools of Destruction
Catherine Christiane Cruz
Universal Stone Llc - Slab Warehouse & Fabrication
Maxpreps Field Hockey
Miltank Gamepress
Loslaten met de Sedona methode
Jailfunds Send Message
Craftybase Coupon
12657 Uline Way Kenosha Wi
Obituaries, 2001 | El Paso County, TXGenWeb
Ringcentral Background
UPC Code Lookup: Free UPC Code Lookup With Major Retailers
Craigslist Cars And Trucks Mcallen
Restaurants Near Calvary Cemetery
Grand Teton Pellet Stove Control Board
Teenbeautyfitness
oklahoma city community "puppies" - craigslist
Muziq Najm
Myql Loan Login
Elisabeth Shue breaks silence about her top-secret 'Cobra Kai' appearance
Fototour verlassener Fliegerhorst Schönwald [Lost Place Brandenburg]
2 Pm Cdt
Xxn Abbreviation List 2023
Jaefeetz
Dicks Mear Me
Chitterlings (Chitlins)
Latest Posts
Article information

Author: Fredrick Kertzmann

Last Updated:

Views: 6149

Rating: 4.6 / 5 (66 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Fredrick Kertzmann

Birthday: 2000-04-29

Address: Apt. 203 613 Huels Gateway, Ralphtown, LA 40204

Phone: +2135150832870

Job: Regional Design Producer

Hobby: Nordic skating, Lacemaking, Mountain biking, Rowing, Gardening, Water sports, role-playing games

Introduction: My name is Fredrick Kertzmann, I am a gleaming, encouraging, inexpensive, thankful, tender, quaint, precious person who loves writing and wants to share my knowledge and understanding with you.