Date & Time All versions ◉ 5 views

=DATEVALUE()

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.

Applies To: Excel for Microsoft 365Excel for Microsoft 365 for MacExcel 2024Excel 2024 for MacExcel 2021Excel 2021 for MacExcel 2019Excel 2016
=DATEVALUE(date_text)
Hover argument names in the table for details.
Output typeNumber
Popularity35 / 100
VolatileNo
Dynamic ArrayNo
📥 Download sample .xlsx — Coming soon ▦ Try in Playground Dedicated file for this function — safe & lightweight · sample data + live formulas
Share:

⬇ Download Sample Workbook

A dedicated .xlsx for =DATEVALUE() with Persian sample data & live formulas — open in Excel and practice.

  • Sheet “Sample” — data table + formula in place
  • Sheet “Guide” — syntax, arguments & tips from this page
  • Instant & secure (token + rate limit)
📥 Download DATEVALUE.xlsx — Coming soon ~ 8–12 KB · No macros

⇪ Share

Send this function to friends

🧠 🧠 Quiz this function

%d questions — syntax, example & errors — test yourself!

◧ Arguments

ArgumentTypeRequiredDescription
date_text Text Required 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
dATEVALUE Number Optional function returns the #VALUE! error value if the value of the

▣ Examples

شماره سریال تاریخی که به‌صورت متن وارد شده است. =DATEVALUE("8/22/2011")
شماره سریال تاریخی که به‌صورت متن وارد شده است. =DATEVALUE("22-MAY-2011")
شماره سریال تاریخی که به‌صورت متن وارد شده است. =DATEVALUE("2011/02/23")
شماره سریال تاریخی که به‌صورت متن وارد شده، با سیستم تاریخ ۱۹۰۰ و با فرض اینکه ساعت داخلی رایانه سال جاری را ۲۰۱۱ برمی‌گرداند. =DATEVALUE("5-JUL")
شماره سریال تاریخی که با ترکیب مقادیر سلول‌های A2 و A3 و A4 ایجاد شده است. =DATEVALUE(A2 & "/" & A3 & "/" & A4)

✦ Tips

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

⚠ Common Errors

#VALUE! function returns the #VALUE! error value if the value of the
Fix: Check the text format, or build the date with DATE

💬 Comments & Q&A 0 approved

🔒 Your comment will be published after review.

Share your thoughts — visible after admin approval

No comments yet — be the first!

✍️ Add comment / question

captcha
🔒 Your comment will be published after review.