+ Reply to Thread
Results 1 to 9 of 9

Retrieving String after specific character

  1. #1
    Registered User
    Join Date
    01-09-2014
    Location
    United Kingdom
    MS-Off Ver
    Mac Excel 2011
    Posts
    20

    Retrieving String after specific character

    Hi,

    I have a table with bank transactions (column A), where the description includes the budget it's allocated to. I found a formula that retrieves the characters after a particular character (a : in this case), but for some reason, it still includes a space before the resulting title (see column C).

    I tried using the TRIM function, but that doesn't do anything.

    Any ideas? See the attachment for a sample!

    Many thanks!

    TT
    Attached Files Attached Files

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

    Re: Retrieving String after specific character

    try:
    =RIGHT(A2,LEN(A2)-FIND(":",A2)-1)
    or
    =MID(A2,SEARCH(":",A2)+2,LEN(A2))
    Last edited by sandy666; 04-18-2016 at 01:53 PM. Reason: added 2nd formula

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Retrieving String after specific character

    Hi TicklyTigger,

    The TRIM function didn't work because of the char(160), a non-printing character that is present in the string.

    Here is another way to extract part of the string.

    Enter in C2 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Retrieving String after specific character

    Try
    =RIGHT(A2,LEN(A2)-FIND(":",A2)-1)

    Or
    =REPLACE(A2,1,FIND(":",A2)+1,"")

  5. #5
    Registered User
    Join Date
    01-09-2014
    Location
    United Kingdom
    MS-Off Ver
    Mac Excel 2011
    Posts
    20

    Re: Retrieving String after specific character

    Thanks everyone, this worked: =RIGHT(A2,LEN(A2)-FIND(":",A2)-1)

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

    Re: Retrieving String after specific character

    If anyone has helped you, then thank them by clicking on their reputation star * bottom left then mark thread SOLVED! (Above Your first post --> Thread Tools --> Mark thread as Solved)

  7. #7
    Registered User
    Join Date
    01-09-2014
    Location
    United Kingdom
    MS-Off Ver
    Mac Excel 2011
    Posts
    20

    Re: Retrieving String after specific character

    yup, done!

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

    Re: Retrieving String after specific character

    really?
    If anyone has helped you, then thank them by clicking on their reputation star * bottom left then mark thread SOLVED! (Above Your first post --> Thread Tools --> Mark thread as Solved)

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

    Re: Retrieving String after specific character

    Thank you

+ 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] SAMPLE - Extract no. from string after before Specific Character
    By Ram_G in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-25-2016, 01:44 AM
  2. Matching specific portion of a string and retrieving the whole string
    By mellowtang in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-27-2015, 07:06 AM
  3. [SOLVED] deleting a specific character in a string
    By FieldHaven in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-10-2014, 12:18 PM
  4. Replies: 5
    Last Post: 04-06-2014, 08:59 PM
  5. Sorting Specific Character String in Column
    By ian.cathey in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-16-2010, 05:08 PM
  6. Replies: 3
    Last Post: 04-17-2010, 05:02 AM
  7. Editing a specific character within a string in a cell?
    By drdavidge in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-10-2010, 01:56 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