+ Reply to Thread
Results 1 to 6 of 6

Getting a text year date to be recognised as a date

  1. #1
    Registered User
    Join Date
    01-09-2020
    Location
    Warwick, England
    MS-Off Ver
    2010
    Posts
    5

    Getting a text year date to be recognised as a date

    hi all
    I have data (column M) entered as a year in text format ie the text says "2020". I need to get Excel to recognise that text as a date (eg yyyy) for use in other formulae but if I convert it Excel recognises it as 1905 in date format-presumably because it is changing it to a serial number. The year 2021 in text also changes to "1905" when converted as does 2019 etc (see attached screenshot). Is there a formula I can use to convert the text to a date but also have it record the same as the text says eg so that the text says 2019 and the cell that holds that as yyyy in date format also shows and recognises the data as 2019? Snip.PNG

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Getting a text year date to be recognised as a date

    Welcome to the forum.

    M2 needs to be entered as a proper date (e.g. 01/04/2020), then the column (M) can be formatted to show just the year with custom cell formatting.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    01-09-2020
    Location
    Warwick, England
    MS-Off Ver
    2010
    Posts
    5

    Re: Getting a text year date to be recognised as a date

    hi Ali
    unfortunately I am not in control of the data being entered into column M. It comes to me as data from an external survey tool which I then paste into the spreadsheet to analyse.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Getting a text year date to be recognised as a date

    In that case, try this in AE2:

    =YEAR(DATE(M2,1,1))

  5. #5
    Registered User
    Join Date
    01-09-2020
    Location
    Warwick, England
    MS-Off Ver
    2010
    Posts
    5

    Re: Getting a text year date to be recognised as a date

    hi Ali, that works perfectly-thank you so much!!

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Getting a text year date to be recognised as a date

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 7
    Last Post: 07-11-2019, 11:27 AM
  2. [SOLVED] transforming a text date/year into a date
    By tinkerbelle in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-20-2018, 11:04 AM
  3. Replies: 3
    Last Post: 10-06-2015, 05:30 PM
  4. Replies: 1
    Last Post: 04-22-2015, 08:08 AM
  5. Replies: 5
    Last Post: 08-01-2014, 04:33 AM
  6. [SOLVED] Plotting Year wise maximum value & occurance date - the input date is in text format.
    By thilag in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-08-2014, 06:34 AM
  7. Replies: 3
    Last Post: 08-14-2012, 05:14 AM

Tags for this Thread

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