+ Reply to Thread
Results 1 to 3 of 3

Problem with converting dates to text

  1. #1
    Registered User
    Join Date
    09-25-2011
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    45

    Problem with converting dates to text

    Hi,

    I have the following code, trying to convert a column of dates to a specific text format:

    Please Login or Register  to view this content.
    The problem is the dates remain as numeric dates. I have since found this is to do with the .Values property.

    Any suggestions for a quick way to get around this? Copy and paste special?

    Thanks

  2. #2
    Valued Forum Contributor
    Join Date
    11-02-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    564

    Re: Problem with converting dates to text

    To change the format.
    Please Login or Register  to view this content.
    Last edited by haripopuri; 03-04-2013 at 10:16 AM.

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2509 Win 11
    Posts
    24,994

    Re: Problem with converting dates to text

    TEXT is a worksheet function and not a VBA function.

    Try using the Format function

    =FORMAT(C2,"dd mm yy")
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1