+ Reply to Thread
Results 1 to 12 of 12

How copy a specific type of characters from a middle of cell to new cell

  1. #1
    Registered User
    Join Date
    11-13-2017
    Location
    Islamabad, Pakistan
    MS-Off Ver
    2010
    Posts
    6

    Post How copy a specific type of characters from a middle of cell to new cell

    Hi,
    i tried google but can't find right formula to extract specific characters out of a cell.
    Kindly look at example below

    "Address - Apt # 80, Address line , Area Name Street Mob: 0000-0000000
    H/No. 586 Survey No. 627 Area : Full Name Distt : Distt Name: City"

    I want to copy contact numbers starting from "Mob: 0000-0000000" from every cell ( more then 800 rows).
    I hope i am in right place....
    Last edited by Nicolass; 11-13-2017 at 10:07 AM. Reason: info

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: How copy a specific type of characters from a middle of cell to new cell

    Hello and welcome to the forum.

    We are likely going to need more than one example to get you to a solution that works for all instances.

    That being said, what is the desired result that you are looking for based on your example? Is it "Mob: 0000-0000000", "0000-0000000", or something else entirely?

  3. #3
    Valued Forum Contributor than_gold's Avatar
    Join Date
    10-17-2017
    Location
    Coimbatore India
    MS-Off Ver
    Office 365
    Posts
    646

    Re: How copy a specific type of characters from a middle of cell to new cell

    Hi, You can use the below formula if "Mob: 0000-0000000" = 17 digits & same in all rows.

    =MID(A1,FIND("Mob",A1),17)
    Regards,
    Thangavel D

    Appreciate the help? CLICK *

  4. #4
    Registered User
    Join Date
    11-13-2017
    Location
    Islamabad, Pakistan
    MS-Off Ver
    2010
    Posts
    6

    Re: How copy a specific type of characters from a middle of cell to new cell

    Thank you for helping out...
    i want my result in this "0000-0000000" format. Any solution to find numbers in this format "0000-0000000" ?
    I have a column with more then 1000 rows and every cell in that column contains text like this
    "Address - Apt # 80, Address line , Area Name Street Mob: 0000-0000000
    H/No. 586 Survey No. 627 Area : Full Name Distt : Distt Name: City
    "

  5. #5
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: How copy a specific type of characters from a middle of cell to new cell

    Try this:

    =MID(A1,SEARCH("Mob:",A1)+5,12)
    Last edited by 63falcondude; 11-16-2017 at 10:35 AM. Reason: Typo

  6. #6
    Registered User
    Join Date
    11-13-2017
    Location
    Islamabad, Pakistan
    MS-Off Ver
    2010
    Posts
    6

    Re: How copy a specific type of characters from a middle of cell to new cell

    example in attachmentexcel.png

  7. #7
    Registered User
    Join Date
    11-13-2017
    Location
    Islamabad, Pakistan
    MS-Off Ver
    2010
    Posts
    6

    Re: How copy a specific type of characters from a middle of cell to new cell

    it doesn't work with all the cells.
    as u can see in example.

  8. #8
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: How copy a specific type of characters from a middle of cell to new cell

    In posts 1 and 4, you said that there was "Mob" in the text string. Now in post #6, you are showing that this will not always be the case.

    As mentioned in post #2, we are likely going to need more than one example to get you to a solution that works for all instances.

    Please upload a small representative sample of your data (not a picture).

    Make sure there is just enough data to demonstrate your need.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  9. #9
    Registered User
    Join Date
    11-13-2017
    Location
    Islamabad, Pakistan
    MS-Off Ver
    2010
    Posts
    6

    Re: How copy a specific type of characters from a middle of cell to new cell

    Ok i have attached excel file...

    I want to just copy numbers snice these numbers are all in same format. Like (Network Code - Number )
    Attached Files Attached Files
    Last edited by Nicolass; 11-16-2017 at 11:59 AM.

  10. #10
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: How copy a specific type of characters from a middle of cell to new cell

    This works for the samples that you shared:

    B1 =MID(A1,FIND(" 0",A1)+1,12)

  11. #11
    Registered User
    Join Date
    11-13-2017
    Location
    Islamabad, Pakistan
    MS-Off Ver
    2010
    Posts
    6

    Re: How copy a specific type of characters from a middle of cell to new cell

    Yes its working but it only copy one contact number, not the second contact number if there is one... as you can see in my attached example i have 2 contact numbers in a cell.
    Last edited by Nicolass; 11-16-2017 at 12:08 PM.

  12. #12
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: How copy a specific type of characters from a middle of cell to new cell

    That is because you never mentioned anything about extracting a second number. We can't read your mind.

    I think that a VBA solution will suit this more than a formulaic one. Hopefully someone else will be able to help you with that.

+ 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. Replies: 2
    Last Post: 09-14-2016, 01:29 PM
  2. [SOLVED] Adjust Code to Sort by specific Cell characters found with cell
    By boldcode in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-15-2014, 02:34 PM
  3. Replies: 15
    Last Post: 03-08-2014, 05:19 PM
  4. [SOLVED] Function that pulls the middle characters of a cell
    By bbrunof in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-18-2013, 05:43 PM
  5. [SOLVED] How to copy middle text of CELL A1:A to CELL B1:B ?
    By nur2544 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-07-2013, 03:44 AM
  6. Replies: 6
    Last Post: 05-04-2010, 02:57 PM
  7. Need to delete 2 characters from the middle of a cell.
    By catfish252 in forum Excel General
    Replies: 0
    Last Post: 04-04-2007, 02:38 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