Function: DATEVALUE()
🔍 Purpose:
The DATEVALUE() function converts a text date (a date written in text format) into an Excel-recognized serial date number.
This helps Excel perform calculations with dates that were originally stored as text — for example, dates imported from another system or written manually.
🧮 Syntax: =DATEVALUE(date_text)
Parameters:
-
date_text → The date written as text (for example,
"15-Aug-2025"or"08/15/2025").
📘 Explanation:
When Excel reads a date as plain text (e.g., “15-Aug-2025”), it can’t calculate with it (like finding the difference between dates).
The DATEVALUE() function solves this by converting that text into an actual date value that Excel recognizes as a serial number.
For instance:=DATEVALUE("15-Aug-2025") → returns 45404 (which Excel formats as 15-Aug-2025).
Example 1: Employee Joining Dates (Imported from HR Software)
| Employee Name | Joining Date (Text) | Formula | Result |
|---|---|---|---|
| Ramesh Kumar | “12-Mar-2022” | =DATEVALUE(B2) |
44634 |
| Sneha Roy | “25-Apr-2023” | =DATEVALUE(B3) |
45043 |
| Arjun Das | “07-Jul-2021” | =DATEVALUE(B4) |
44386 |
| Priya Sen | “31-Jan-2024” | =DATEVALUE(B5) |
45324 |
Now, if you change the cell format to Date, Excel will show:
→ 12-Mar-2022, 25-Apr-2023, etc.
Example 2: Loan Start Date Conversion
| Customer | Start Date (Text) | Formula | Actual Date |
|---|---|---|---|
| Mr. Singh | “01-05-2024” | =DATEVALUE(B2) |
01-May-2024 |
| Mrs. Sharma | “10-08-2024” | =DATEVALUE(B3) |
10-Aug-2024 |
| Mr. Roy | “25-09-2024” | =DATEVALUE(B4) |
25-Sep-2024 |
| Mrs. Das | “15-12-2024” | =DATEVALUE(B5) |
15-Dec-2024 |
✅ Very useful when dealing with text dates imported from software, websites, or Google Forms.
⚙️ Real-Life Uses:
-
Converting text dates (from external systems or forms) into Excel-recognized dates.
-
Calculating duration, age, or tenure when source data is in text form.
-
Cleaning imported CSV data where Excel fails to identify proper dates.
-
Combining with functions like
TODAY(),DAYS(), orYEARFRAC()for calculations.
🧩 Project Tasks for Students
🧠 Project 1: Admission Data Conversion
You’ve received student admission data from Google Forms where all joining dates are text. Convert them into Excel-recognized dates.
| Student ID | Name | Joining Date (Text) | Formula | Converted Date |
|---|---|---|---|---|
| ST101 | Riya Sen | “05-Apr-2024” | =DATEVALUE(C2) |
05-Apr-2024 |
| ST102 | Kunal Das | “10-Jun-2024” | =DATEVALUE(C3) |
10-Jun-2024 |
| ST103 | Arnav Paul | “15-Jul-2024” | =DATEVALUE(C4) |
15-Jul-2024 |
| ST104 | Sneha Ghosh | “20-Aug-2024” | =DATEVALUE(C5) |
20-Aug-2024 |
💼 Project 2: Vendor Invoice Tracking
Convert invoice dates (text form) to real Excel dates, then calculate how many days since the invoice was issued.
| Vendor | Invoice Date (Text) | Formula (Date) | Days Passed |
|---|---|---|---|
| ABC Traders | “01-Apr-2025” | =DATEVALUE(B2) |
=TODAY()-C2 |
| Bharat Distributors | “15-Apr-2025” | =DATEVALUE(B3) |
=TODAY()-C3 |
| City Mart | “28-Apr-2025” | =DATEVALUE(B4) |
=TODAY()-C4 |
| Lotus Tech | “05-May-2025” | =DATEVALUE(B5) |
=TODAY()-C5 |
🏦 Project 3: Loan Repayment Tenure
Convert text-form start dates to real dates and calculate how many years have passed using YEARFRAC().
| Customer | Loan Start (Text) | Formula (Real Date) | Tenure (Years) |
|---|---|---|---|
| Mr. Verma | “10-Jan-2020” | =DATEVALUE(B2) |
=YEARFRAC(C2,TODAY()) |
| Mrs. Gupta | “15-Jul-2021” | =DATEVALUE(B3) |
=YEARFRAC(C3,TODAY()) |
| Mr. Mehta | “01-Sep-2022” | =DATEVALUE(B4) |
=YEARFRAC(C4,TODAY()) |
🧾 Project 4: Attendance Log
Convert attendance timestamps received as text to date format for reporting.
| Employee Name | Timestamp (Text) | Formula (Date) | Date Only |
|---|---|---|---|
| Rahul Sen | “2025-10-24 09:30:00” | =DATEVALUE(LEFT(B2,10)) |
24-Oct-2025 |
| Priya Ghosh | “2025-10-25 08:45:00” | =DATEVALUE(LEFT(B3,10)) |
25-Oct-2025 |
📅 Project 5: Festival Planning Tracker
A marketing agency keeps festival dates as text. Convert and calculate days left for each festival.
| Festival | Festival Date (Text) | Formula (Date) | Days Left |
|---|---|---|---|
| Diwali | “20-Oct-2025” | =DATEVALUE(B2) |
=C2-TODAY() |
| Christmas | “25-Dec-2025” | =DATEVALUE(B3) |
=C3-TODAY() |
| Holi | “17-Mar-2026” | =DATEVALUE(B4) |
=C4-TODAY() |
✅ Key Tip:
Always ensure your system’s regional date format (DD/MM/YYYY) matches your data entry style — otherwise Excel might read "08/03/2025" as either 8th March or 3rd August depending on locale.