+ Reply to Thread
Results 1 to 7 of 7

Copying part cell containing text and numbers to another cell

  1. #1
    Registered User
    Join Date
    03-24-2016
    Location
    Canada
    MS-Off Ver
    Mac
    Posts
    63

    Lightbulb Copying part cell containing text and numbers to another cell

    Hi there,

    I have been having trouble with figuring out the code I would use to do the following;

    I need to copy the number part of the cell to another cell.
    Example Numbers:

    COLUMN A COLUMN B
    AB.C.DE.1.1 -> 1.1
    AB.C.DE.10.12 -> 10.12
    AB.C.DEF.11.1 -> 11.1
    AB.C.DEF.1.1 -> 1.1

    I just need the numbers to be copied over to another cell leaving the original cell unchanged.
    I've been using a function that recognizes some of them, but then gets confused when there are more than 2 characters (when DE is DEF). So, I need a bit of help, please.

    Thank you in advanced for the help!!!!

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Copying part cell containing text and numbers to another cell

    With your example, try
    =MID(MID(A1,SEARCH("E",A1),LEN(A1)),SEARCH(".",MID(A1,SEARCH("E",A1),LEN(A1)))+1,LEN(A1))
    I assumed there is E letter as constans

    result
    1.1
    10.12
    11.1
    1.1

  3. #3
    Forum Contributor
    Join Date
    01-05-2017
    Location
    New York
    MS-Off Ver
    Office 2016
    Posts
    206

    Re: Copying part cell containing text and numbers to another cell

    If your excel has "Flash Fill" you don't even need a formula. Just manually type the first one or two, then click "Flash Fill" (Data tab, Data Tools group).

  4. #4
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Copying part cell containing text and numbers to another cell

    If there are always three sets of letters (that is, the format is always letters . letters . letters . numbers . numbers) then this will work:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Copying part cell containing text and numbers to another cell

    Another option with no limitations:
    =MID(A1,MIN(IF(ISNUMBER(--MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1))=FALSE,LEN(A1)+1,ROW(INDIRECT("1:"&LEN(A1))))),LEN(A1))
    array entered
    Last edited by sandy666; 05-03-2017 at 04:38 PM.

  6. #6
    Registered User
    Join Date
    03-24-2016
    Location
    Canada
    MS-Off Ver
    Mac
    Posts
    63

    Re: Copying part cell containing text and numbers to another cell

    Quote Originally Posted by Aardigspook View Post
    If there are always three sets of letters (that is, the format is always letters . letters . letters . numbers . numbers) then this will work:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Thank you everyone! This one worked the best for me.

  7. #7
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Copying part cell containing text and numbers to another cell

    You're welcome. Glad we could be of help and thanks for the rep.

+ 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. Copying Row based on part text in a Cell
    By Bob Folks in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-08-2014, 03:46 PM
  2. Formula to identify part of a text in cell from range of cells & insert adjacent cell text
    By Novicebutnotforlong in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 11-19-2013, 02:11 AM
  3. Copying a part of a cell
    By buhaj47 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-31-2012, 12:36 PM
  4. [SOLVED] Create a Macro for copying data from one cell and pasting into certain part other cell
    By Paul M in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 12-03-2012, 10:17 AM
  5. [SOLVED] Copying part of cell to separate cell
    By zuzz1991 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-24-2012, 11:24 PM
  6. Copying part of a Cell
    By Em30 in forum Excel General
    Replies: 6
    Last Post: 03-23-2010, 10:25 AM
  7. Copying part of a title (after a '-') to another cell
    By shmee150 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-16-2009, 05:28 AM

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