+ Reply to Thread
Results 1 to 4 of 4

Copy the last 10 spaces of a cell to another cell

  1. #1
    Registered User
    Join Date
    12-29-2008
    Location
    united, states
    MS-Off Ver
    Excel 2003
    Posts
    18

    Copy the last 10 spaces of a cell to another cell

    i have a text field that has last name, first name and an id number.
    all of this data is in the same cell.
    i want to take the id number from this cell, and paste it into an adjacent cell. The id number takes up the last 9 or 10 spaces in the cell.
    is this something i could do in a formula or would i need to use vba?
    Last edited by trixxnixon; 04-06-2009 at 06:29 PM.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Copy the last 10 spaces of a cell to another cell

    Is there a space before the ID number? If so try

    =TRIM(RIGHT(A1,10))

  3. #3
    Registered User
    Join Date
    12-29-2008
    Location
    united, states
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Copy the last 10 spaces of a cell to another cell

    solved!!! thank you!!!

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Copy the last 10 spaces of a cell to another cell

    Be sure to EDIT your original post (Go Advanced) and mark the PREFIX box [SOLVED]
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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