+ Reply to Thread
Results 1 to 6 of 6

Obtaining Last Six Digits in A Cell

  1. #1
    Registered User
    Join Date
    11-23-2014
    Location
    York
    MS-Off Ver
    2010
    Posts
    5

    Obtaining Last Six Digits in A Cell

    Hello,

    I have a document which has certain texts in E cell. It starts from E3 but the ending cell depends on my main document size. (could be 10,800,1000 etc.)

    Is there anyway to get only the last 6 characters from this string and copy paste the same column that has the long string so I the column only shows 6 characters?

    Thank you

    Ras

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Obtaining Last Six Digits in A Cell

    Does this help?

    Please Login or Register  to view this content.
    Will place the last 6 characters from A1 into B1.

  3. #3
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Obtaining Last Six Digits in A Cell

    Yes.
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    11-23-2014
    Location
    York
    MS-Off Ver
    2010
    Posts
    5

    Re: Obtaining Last Six Digits in A Cell

    Quote Originally Posted by walruseggman View Post
    Yes.
    Please Login or Register  to view this content.
    Works perfect, thank you so much for your quick response!

  5. #5
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Obtaining Last Six Digits in A Cell

    Have a look on the function "Right"
    in A1 = Right(E1,6)
    where the characters to extract are at the end of cell E1
    - Battle without fear gives no glory - Just try

  6. #6
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Obtaining Last Six Digits in A Cell

    Hi Ras,

    Try this formula

    =IF(LEN(E2)>5,MID(E2,LEN(E2)-5,LEN(E2)),E2)

    Then copy and Paste the new column over the old one, using "Values Only".
    No VBA needed, and it will work a lot faster.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say 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. how to remove first x digits and last y digits from a cell?
    By maixent in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 09-28-2009, 02:06 AM
  2. Obtaining Cell Values from Worksheets
    By rclewis51 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-27-2009, 10:00 AM
  3. Replies: 5
    Last Post: 12-08-2008, 11:47 AM
  4. Obtaining The Functions Cell
    By BassMan449 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-27-2007, 03:06 PM
  5. Obtaining a value and assigning to a cell
    By knowtrump in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-26-2007, 07:42 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