+ Reply to Thread
Results 1 to 6 of 6

extract only 10 characters(numeric) in a cell

  1. #1
    Forum Contributor
    Join Date
    10-28-2010
    Location
    quebec, canada
    MS-Off Ver
    o365
    Posts
    187

    extract only 10 characters(numeric) in a cell

    Hi,

    in row A:A i have bunch of data, and sometimes there is a a 10 character numeric value. Can i, in B:B on top of each other, put all those 10 strings character that it find?

  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,953

    Re: extract only 10 characters(numeric) in a cell

    There are instructions at the top of the page explaining how to attach your sample workbook. Screenshots are of little practical use as we cannot manipulate them.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.
    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
    Forum Contributor
    Join Date
    10-28-2010
    Location
    quebec, canada
    MS-Off Ver
    o365
    Posts
    187

    Re: extract only 10 characters(numeric) in a cell

    example attached. in yellow would be the results
    Attached Files Attached Files

  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,953

    Re: extract only 10 characters(numeric) in a cell

    Try this:

    =LET(f,FILTER(A1:A471,ISNUMBER(A1:A471)),IF(LEN(f)=5,TEXT(f,"dd/mm/yyyy"),f))
    Attached Files Attached Files

  5. #5
    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,953

    Re: extract only 10 characters(numeric) in a cell

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

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: extract only 10 characters(numeric) in a cell

    That may not work if you want to use the date for any subsequent sums (differences, turn round times, etc). So, turn it on its head and use:

    =LET(f,FILTER(A1:A471,ISNUMBER(A1:A471)),IF(LEN(f)=10,TEXT(f,"0"),f))

    and format the column as a date. Now the converse it true. If you want to add/sum, etc the 10 digit numbers, it'll be more tricky. it depends on what you want to do next!!
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

+ 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 and return only alpha, numeric and also specified characters from a parameter str
    By brucemc777 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-23-2017, 11:27 AM
  2. Replies: 2
    Last Post: 03-17-2016, 08:55 AM
  3. Extract numeric value from a cell where Text and Numeric combined in a cell
    By Chandrahaas in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 10-07-2014, 10:58 AM
  4. Replies: 7
    Last Post: 02-25-2014, 02:00 AM
  5. only extract numeric value from alpha numeric cell
    By Fam via OfficeKB.com in forum Excel General
    Replies: 5
    Last Post: 04-26-2006, 01:55 PM
  6. [SOLVED] Can you ID a cell that has both Alpha AND Numeric characters?
    By Phil in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-18-2006, 04:35 PM
  7. [SOLVED] Allow Numeric Characters Only In A Cell
    By Mel in forum Excel General
    Replies: 5
    Last Post: 06-10-2005, 07:05 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