+ Reply to Thread
Results 1 to 3 of 3

Get year from an ID number

Hybrid View

  1. #1
    Registered User
    Join Date
    06-10-2020
    Location
    New York, NY
    MS-Off Ver
    MS Office 2016
    Posts
    34

    Get year from an ID number

    Hi,

    I have a column of ID numbers that start with two characters and then the year and then 4 or 5 corresponding characters. For example, EJ18211S, HL19900NE, PK20100N, etc. The year is located after the first two letters of the ID; in my examples, the years would be 18,19, and 20. All of the IDs are the same format: two characters, then the year in two characters, and then 4 or 5 characters. Is there a way I can make a new column next to the ID column that shows just the year; in other words, is there a formula that lets me take out the 3rd and 4th characters from a text cell?

    Thanks

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,485

    Re: Get year from an ID number

    The MID function

    =MID(A1,3,2)
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    06-10-2020
    Location
    New York, NY
    MS-Off Ver
    MS Office 2016
    Posts
    34

    Re: Get year from an ID number

    Thanks Andy!

+ 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] Year From 4 digit Number
    By xjohnson in forum Excel General
    Replies: 10
    Last Post: 11-24-2018, 09:50 AM
  2. [SOLVED] Get year from Number
    By rajeshn_in in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-04-2018, 10:08 AM
  3. How to match donor data from year to year (ID Number and Associated Data)
    By TCooper12 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-02-2015, 02:28 PM
  4. Automatically update year interval cycles from year to year
    By trumptight in forum Word Programming / VBA / Macros
    Replies: 8
    Last Post: 08-21-2014, 10:38 PM
  5. Replies: 3
    Last Post: 09-04-2013, 10:49 AM
  6. Number of days in a year
    By XtraNeed in forum Excel General
    Replies: 4
    Last Post: 09-21-2005, 11:05 AM
  7. Day number of given date in a year
    By Jeff Gordon in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-20-2005, 02:06 PM

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