+ Reply to Thread
Results 1 to 3 of 3

Extract Year from Date

  1. #1
    Registered User
    Join Date
    04-26-2021
    Location
    Switzerland
    MS-Off Ver
    2010
    Posts
    1

    Extract Year from Date

    I have columns of format Date displayed like 22.10.2018 and want to extract the year like 2018 but the function YEAR() returns 1905-07-10. According to the documentation YEAR() applied to a valid Date in Date format should return the year. What am I doing wrong?

    Thank you for any suggestions!
    Attached Images Attached Images

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: Extract Year from Date

    Try

    =YEAR(SUBSTITUTE(A2,".","/"))

    or

    =--RIGHT(A1,4)
    Last edited by JohnTopley; 04-26-2021 at 05:20 AM.

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,452

    Re: Extract Year from Date

    Just format B2 as general, not date.
    Quang PT

+ 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. [SOLVED] extract date and current year
    By Howardc1001 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-29-2019, 10:38 AM
  2. Extract date from year and week
    By HereComesTheBoom in forum Excel Formulas & Functions
    Replies: 33
    Last Post: 07-27-2017, 06:02 AM
  3. [SOLVED] Extract Year, Month, Day from date
    By stoicy in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-28-2016, 11:48 PM
  4. Extract Year, Month, Day from date
    By stoicy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-28-2016, 01:41 PM
  5. [SOLVED] Extract Date To Year With Criteria
    By Jhon Mustofa in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 09-14-2015, 02:37 AM
  6. [SOLVED] How to extract last 2 digits from date year in next column?
    By mso3 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 12-02-2014, 12:02 PM
  7. extract year from the date in a cell
    By DKY in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-17-2006, 03:10 PM

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