Pinterest Pixel

How to Convert Date as a Number in Excel

John Michaloudis
Microsoft Excel is a great tool that allows users to manage and analyze data.
One of its versatile features is the ability to convert dates into numerical values.

In this article, you will learn how to convert date as a number in Excel. Key Takeaways:

Understand Excel’s Date and Number Systems

Excel stores each date as a unique serial number. This allows Excel to perform calculations using dates easily. For example, January 1, 1900, is stored as serial number 1. The serial number increases by one for each new day.

When you see a date in a cell, Excel may actually be displaying a number using a Date format. Changing the cell format to General or Number shows the underlying serial number. You can also use date serial numbers in formulas, reports, and data analysis.

 

How to Convert Date as a Number

Format tool

STEP 1: Click on the cell or cells containing the dates that you want to convert to number format.

date as a number

STEP 2: Go to the Ribbon and click on the “Home” tab. Locate the “Number” group.

date as a number

STEP 3: Select the “Number” from the dropdown.

date as a number

The TEXT Function

STEP 1: Prepare your data with dates to be converted.

date as a number

STEP 2: Use the TEXT function in column B. Insert the formula “=TEXT(A2,”0″)” in cell B2 to convert the date in A2 to a number.

date as a number

STEP 3: Drag the output in cell A2 to all the rows below to emulate the same outcome

date as a number

DATEVALUE Function

The DATEVALUE function specializes in turning text-based dates into serial numbers that Excel can comprehend.

date as a number

Format Cells Dialog Box

STEP 1: Select the dates.

date as a number

STEP 2: Right-click, and choose ‘Format Cells’.

date as a number

STEP 3: Under the ‘Number’ tab, click ‘General’ or ‘Number’.

date as a number

Click OK

date as a number

 

Common Pitfalls

Sometimes Excel’s default date format plays hard to get and doesn’t jive with your data’s aesthetic. Fear not—taming this unruly beast is within reach. Step into the Control Panel on your computer and navigate to ‘Clock and Region’ and select ‘Region’.

date as a number

Here, you can court and coax Excel’s underlying preferences to your liking, be it to align with American month-day-year or the day-month-year flourish favored elsewhere.

date as a number

 

FAQs

How to convert date into serial number in Excel?

To convert a date into a serial number,

  • Select the date cell
  • Press ‘Ctrl+1’ to open the ‘Format Cells’ dialog
  • Under Number tab, choose General.

Why are converted numbers still shown as dates?

If converted numbers appear as dates, it is because the cell format is still set to ‘Date’. You can change it by following these steps:

  • Press Ctrl + 1
  • In the dialog box, go to Number tab
  • Select General or Number

Can I convert a range of dates to numbers all at once?

Absolutely! You can convert an entire range of dates to numbers in one fell swoop. Just highlight the range, right-click, choose ‘Format Cells’, switch to ‘General’ or ‘Number’, and click OK. Excel will perform the mass conversion instantly.

How to convert date format in Excel?

To convert date format in Excel,

  • Select the date cells
  • Press ‘Ctrl+1’ to bring up the ‘Format Cells’ dialog
  • Under the ‘Number’ tab, click ‘Date
  • Choose your preferred format
  • Click OK

How to convert date into no of days in Excel?

To convert a date into the number of days, use the DATEDIF function. Enter “=DATEDIF(start_date, end_date, “d”)” in a cell, replacing start_date and end_box with your specific dates. Excel will then display the days between the two dates.

If you like this Excel tip, please share it


Founder & Chief Inspirational Officer

at

John Michaloudis is a former accountant and finance analyst at General Electric, a Microsoft MVP since 2020, an Amazon #1 bestselling author of 4 Microsoft Excel books and teacher of Microsoft Excel & Office over at his flagship MyExcelOnline Academy Online Course.

See also  How to Calculate How Many Days in 4 Years in Excel

Star 30 Days - Full Access Star

One Dollar Trial

$1 Trial for 30 days!

Access for $1

Cancel Anytime

One Dollar Trial
  • Get FULL ACCESS to all our Excel & Office courses, bonuses, and support for just USD $1 today! Enjoy 30 days of learning and expert help.
  • You can CANCEL ANYTIME — no strings attached! Even if it’s on day 29, you won’t be charged again.
  • You'll get to keep all our downloadable Excel E-Books, Workbooks, Templates, and Cheat Sheets - yours to enjoy FOREVER!
  • Practice Workbooks
  • Certificates of Completion
  • 5 Amazing Bonuses
Satisfaction Guaranteed
Accepted paymend methods
Secure checkout

Get Video Training

Advance your Microsoft Excel & Office Skills with the MyExcelOnline Academy!

Dramatically Reduce Repetition, Stress, and Overtime!
Exponentially Increase Your Chances of a Promotion, Pay Raise or New Job!

Learn in as little as 5 minutes a day or on your schedule.

Learn More!

Share to...