+ Reply to Thread
Results 1 to 3 of 3

Extract characters from a cell

  1. #1
    Registered User
    Join Date
    02-10-2021
    Location
    Bogotá. Colombia
    MS-Off Ver
    2013
    Posts
    14

    Extract characters from a cell

    Dear all, kind regards

    I am working on some data and I need to extract from column A:A exactly only the dates that start in 2017 and end in number, that is to say with a length of 8 characters [20171015], the problem is that I am performing this operation in column C:C but due to the extension of some characters in some rows it does not bring me the totality of numbers that I am requesting. Is there an additional method to make this possible or can I fix the formula that I am using in a wrong way?

    I appreciate your collaboration.

    PS: the formula I am using is
    =MID(A9,FIND(" ",A9,B9+1),9)
    Attached Files Attached Files
    Last edited by ferfer20; 06-09-2021 at 01:41 PM. Reason: SOLVED

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

    Re: Extract characters from a cell

    You may do not need column B
    If year is exact 2017:
    =MID(A2,SEARCH(" 2017",A2)+1,8)
    Or year that >2000
    =MID(A2,SEARCH(" 20",A2)+1,8)
    Or, more generic, extract first 8-digit number:
    =AGGREGATE(14,6,MID(A2,ROW(INDIRECT("1:"&LEN(A2))),8)+0,1)
    Quang PT

  3. #3
    Registered User
    Join Date
    02-10-2021
    Location
    Bogotá. Colombia
    MS-Off Ver
    2013
    Posts
    14

    Re: Extract characters from a cell

    Dear, thank you very much for your attention and collaboration, it is a very precise formula for what I am looking for and it responds to what I need, a big hug!

+ 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. Extract some characters from the cell value
    By Barieq in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-11-2018, 09:04 AM
  2. [SOLVED] Extract all the special characters from each cell
    By SunOffice in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-08-2018, 04:24 PM
  3. How to extract alphanumeric characters from a cell?
    By TECHO in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 12-08-2016, 01:41 AM
  4. Extract only uppercase characters in a cell
    By shmekerie in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-22-2012, 09:39 AM
  5. Extract the first 7 characters of a cell
    By nander in forum Excel General
    Replies: 3
    Last Post: 09-25-2009, 11:13 AM
  6. Extract Text characters only from a cell
    By judasdac in forum Excel General
    Replies: 2
    Last Post: 05-06-2009, 12:22 PM
  7. Extract characters from a cell
    By JBasch in forum Excel General
    Replies: 2
    Last Post: 03-09-2006, 10:30 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