+ Reply to Thread
Results 1 to 4 of 4

Keep or extract only 6 digit number

  1. #1
    Forum Contributor
    Join Date
    02-15-2016
    Location
    India
    MS-Off Ver
    2016
    Posts
    657

    Keep or extract only 6 digit number

    Hello Friends

    I need to extract only 6 digits numbers.

    Any other content other than 6 digit numbers need to be removed.

    Expected results plotted in the Light yellow color cells.

    thanks in advance
    Attached Files Attached Files
    Sekar

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,911

    Re: Keep or extract only 6 digit number

    Try this ...

    =IFERROR(INDEX(H:H,SMALL(IF((LEN($H$4:$H$20)=6)*ISNUMBER(--$H$4:$H$20),ROW($H$4:$H$20)),ROWS($J$4:J4))),"")

    Ctrl+Shift+Enter.

  3. #3
    Forum Contributor
    Join Date
    02-15-2016
    Location
    India
    MS-Off Ver
    2016
    Posts
    657

    Re: Keep or extract only 6 digit number

    Hello Phucoam

    Thanks for this array formula.

    It is working fine.

    Thanks again.

  4. #4
    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,206

    Re: Keep or extract only 6 digit number

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

+ 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 10 digit number only from text string
    By visha_1984 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-06-2015, 09:42 AM
  2. Extract first 5 digit number starting from the right
    By Cboggie in forum Excel General
    Replies: 5
    Last Post: 05-09-2014, 01:17 PM
  3. How to extract a 15 or 16 digit number from an email.
    By kaushalnaman in forum Excel General
    Replies: 4
    Last Post: 02-22-2014, 05:25 PM
  4. [SOLVED] Extract Exact 6 Digit Number From String
    By tt388 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-11-2013, 12:51 PM
  5. Extract 9 digit number from string
    By Jbentley in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-16-2011, 07:02 AM
  6. [SOLVED] Extract 10 digit number from string
    By R. Choate in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 10-27-2005, 06:05 PM
  7. [SOLVED] Extract 2, 3, 4 or 5-digit number from string
    By Jim in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-07-2005, 10:22 AM

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