TeachUcomp, Inc.

 MY CART
  • VIDEO COURSES
    • All-Access Subscriptions
    • Business Licensing
    • Course List
      • Accounting
      • Adobe
        • Acrobat
        • Lightroom Classic
        • Photoshop
        • Photoshop Elements
      • Crystal Reports
      • Employment Skills
        • Interview Skills
        • Resume Skills
      • For Lawyers
        • Excel for Lawyers
        • Outlook for Lawyers
        • QuickBooks for Lawyers
        • Word for Lawyers
      • HTML
      • JavaScript
      • Microsoft Office
        • Access
        • Excel
        • Microsoft Office Suite
        • OneNote
        • Outlook
        • Outlook on the Web
        • PowerPoint
        • Publisher
        • Word
      • Microsoft Project
      • Microsoft Teams
      • QuickBooks Online
      • QuickBooks Pro
      • Sage
        • Peachtree
        • Sage 50
      • SQL
      • Windows
    • Video Course Options
  • SUBSCRIPTIONS
  • MANUALS
    • Adobe
      • Acrobat
      • Lightroom Classic
      • Photoshop
      • Photoshop Elements
    • Crystal Reports
    • For Lawyers
      • Excel for Lawyers
      • Outlook for Lawyers
      • QuickBooks for Lawyers
      • Word for Lawyers
    • HTML
    • JavaScript
    • Microsoft Office
      • Access
      • Excel
      • OneNote
      • Outlook
      • Outlook on the Web
      • PowerPoint
      • Publisher
      • Word
    • Microsoft Project
    • Microsoft Teams
    • QuickBooks Online
    • QuickBooks Pro
    • Sage
      • Peachtree
      • Sage 50
    • SQL
    • Windows
  • REFERENCE CARDS
    • Adobe
      • Acrobat
      • Lightroom Classic
      • Photoshop
      • Photoshop Elements 2025
      • Photoshop Elements 2024
      • Photoshop Elements 2023
      • Photoshop Elements 2022
      • Photoshop Elements 2021
      • Photoshop Elements 2020
      • Photoshop Elements 2019
      • Photoshop Elements 2018
      • Photoshop Elements 15
    • Google
      • Google Classroom for Teachers
      • Google Docs
      • Google Drive
      • Google Forms
      • Google Sheets
      • Google Slides
    • Mac OS
      • Mac OS Keyboard Shortcuts
    • Microsoft Office
      • Excel Formulas and Functions
      • Excel Keyboard Shortcuts
      • Excel Tables PivotTables and Charts
      • Microsoft 365
        • Access for Microsoft 365
        • Excel for Microsoft 365
        • Microsoft Office 365
        • Outlook for Microsoft 365 Classic Edition
        • Outlook for Microsoft 365 (New Outlook)
        • PowerPoint for Microsoft 365
        • Publisher for Microsoft 365
        • Word for Microsoft 365
      • Microsoft Office 2021
        • Access 2021
        • Excel 2021
        • Microsoft Office 2021
        • OneNote for Windows 10
        • Outlook 2021
        • PowerPoint 2021
        • Publisher 2021
        • Word 2021
      • Microsoft Office 2019
        • Access 2019
        • Excel 2019
        • Microsoft Office 2019
        • Outlook 2019
        • PowerPoint 2019
        • Publisher 2019
        • Word 2019
      • Microsoft Office 2016
        • Access 2016
        • Excel 2016
        • Microsoft Office 2016
        • OneNote 2016
        • Outlook 2016
        • PowerPoint 2016
        • Publisher 2016
        • Word 2016
      • Microsoft Office 2013
        • Excel 2013
        • Microsoft Office 2013
        • OneNote 2013
        • Outlook 2013
        • PowerPoint 2013
        • Word 2013
      • Microsoft Office for iPad
        • Microsoft Office for iPad
      • Word Keyboard Shortcuts
    • Microsoft Teams
      • Microsoft Teams
    • QuickBooks Online
      • QuickBooks Online
    • QuickBooks Pro
      • QuickBooks Pro 2024
      • QuickBooks Pro 2023
      • QuickBooks Pro 2022
      • QuickBooks Pro 2021
      • QuickBooks Pro 2020
      • QuickBooks Pro 2019
      • QuickBooks Pro 2018
      • QuickBooks Pro 2017
      • QuickBooks Pro 2016
      • QuickBooks Pro 2015
      • QuickBooks Pro 2014
    • Sage
      • Sage 50 Accounting
    • SQL
      • SQL
    • Windows
      • Windows 11
      • Windows 11 and 10 Keyboard Shortcuts
      • Windows 10
  • STICKERS
    • Chrome OS
      • Chrome OS for Chromebooks
    • Mac OS
      • Mac OS
    • Microsoft Office
      • Word and Excel (Mac) 2022
      • Word and Excel (PC/Windows) 2021-2016 and 365
    • QuickBooks Desktop
      • QuickBooks Desktop (PC/Windows) 2024
      • QuickBooks Desktop (PC/Windows) 2023
      • QuickBooks Desktop (PC/Windows) 2022-2015
    • Windows
      • Windows 11 and 10
  • SUPPORT
    • Company
      • About Us
      • Blog
      • Contact Us
      • Our History
      • Our Philosophy
        • Customer Service
        • Mission
      • Policies
      • Testimonials
    • Contact Us
    • FAQ
    • Help
    • Lost Password
    • Register a Product
  • LOGIN
    • Manage My Account
    • Member Login
    • My Courses
Shop Now

How to Use the TEXT Function in Excel to Format Dates

by Joseph Brownell / Wednesday, July 02 2025 / Published in Excel for Office 365, Latest, Microsoft, Office 365

Video Lesson:

      This video lesson, titled “How to Use the TEXT Function in Excel to Format Dates,” shows you how to use the TEXT function in Excel to format dates.

How to Use the TEXT Function in Excel to Format Dates:

            The TEXT function in Excel lets you convert dates and numbers to text and specify their format. The real world example we’ll look at in this video shows you how to convert a date/time number to text and specify its date formatting by using the TEXT function in Excel. It also explains why you may need to do that. This example shows order data from a query exported from the Northwind sample database in Access.

            After opening the exported data in Excel, it shows each order’s date in the “OrderDate” column. To analyze the sales by date, we’ve added a criteria range to the side of the data that uses a data validation drop-down, which lets the user select a date value from the “OrderDate” column. Next to that, we’ve added a formula cell containing the SUMIF function that sums the “OrderTotal” column of a data record if its “OrderDate” value matches the selection from the data validation drop-down.

            However, if a user selects a date from the data validation drop-down, the formula shows incorrect order total information. This is because while the “OrderDate” field displays the date value, it actually contains a more specific date/time value, which you can see by clicking on any date in the “OrderDate” field and then looking in the Formula Bar. So, the order dates are not being grouped together correctly for the formula, as they have different date/times associated with them.

How to Fix This Using the TEXT Function:

            One way to fix this is to replace the date/time value in the “OrderDate” field with the text value of its date only by using the TEXT function in a new formula. Doing this then allows the rows to be grouped together correctly and show the order totals by date. To use the TEXT function, click into a cell where you want to show the results. Then type:

 

=TEXT(

 

            Then type or select the cell containing the date/time value to convert, followed by a comma. Next, type the desired date format to apply to the cell. For this example, we’ll use the standard 2 digit month, two digit day, and 4 digit year format, separated by forward slashes. So, type:

 

“mm/dd/yyyy”

 

            Finally, close the parenthesis and then press the “Enter” key on your keyboard. Then copy or fill the formula down the column to convert the values. Going back to our example, we would then copy the selected cells and use paste special to paste only the values over the existing values in the “OrderDate”column. This then replaces the date/time values with the new formatted text values, allowing the existing data validation drop-down and SUMIF function formula to work correctly to show order totals by date.

A picture showing how to use the TEXT function in Excel to format dates.

More Information:

            If you want to learn more about the format codes used by the TEXT function in Excel, you can easily see more commonly used format codes by looking within the “Custom” format category on the “Number” tab of the “Format Cells” dialog box. Alternatively, Microsoft also lists additional types of formats you can use on the help page for the TEXT function in Excel.

Tagged under: convert data, convert date/time to text, convert dates to text, course, excel, Excel for Microsoft 365, Excel for Office 365, excel tips and tricks, Excel training, Excel tutorial, format date/time, format dates, format text, formula, formulas, function, functions, guide, help, how to use excel, how-to, instructions, learn, Learn excel, lesson, manual, microsoft, Microsoft 365, microsoft excel, office 365, overview, reference, software, teach, text function, training, tutorial, video, Windows 11

About Joseph Brownell

Joseph Brownell is founder and Vice President of TeachUcomp, Inc. He is the author of dozens of titles across the TeachUcomp, Inc. product line.
Save $150! One Year Online Entire Library $49. Click here for more info.

 

Excel Quick Reference Guide. Buy Now.
 

Categories

  • GET SOCIAL

© 2001-2025 Copyright TeachUcomp, Inc. All rights reserved.

TOP
SALE! $49 All-Access 3 Days 11 Hours 54 Minutes 15 Seconds      $199 $49 Entire Library!
See Deal