+ Reply to Thread
Results 1 to 14 of 14

How to retrieve text from another cell AFTER a certain character

  1. #1
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    How to retrieve text from another cell AFTER a certain character

    Hi guys,

    Can anyone help me with a formula to retrieve text from Cell A3 which will always have text starting with DD/MM - Name: Info text is here

    I want a formula I.E. using the RIGHT function which always retrieves text (length of text will always vary) AFTER the ':'.

    Can anyone advise?

    Thank you!
    Thanks,

    R.



  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,444

    Re: How to retrieve text from another cell AFTER a certain character

    Assuming that there is only one instance of ':' in each text string:

    =TRIM(RIGHT(A1,LEN(A1)-FIND(":",A1)))
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

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

    Re: How to retrieve text from another cell AFTER a certain character

    Use PowerQuery: Extract - Text after delimiter

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,444

    Re: How to retrieve text from another cell AFTER a certain character

    Which reminds me that you could use the text to columns feature on the data ribbon, setting ':' as the delimiter.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: How to retrieve text from another cell AFTER a certain character

    Same sort of formula as Ali's:

    =TRIM(RIGHT(SUBSTITUTE(A1,":",REPT(" ",100)),100))
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  6. #6
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    Re: How to retrieve text from another cell AFTER a certain character

    Hi AliGW,

    thanks for the response. I am getting a #VALUE! error message...

    just to re-iterate the ':' DOES NOT have a space in front of it, i.e. 10/11 - Name:

  7. #7
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    Re: How to retrieve text from another cell AFTER a certain character

    Hi Glenn,

    This returns a blank cell...?

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,444

    Re: How to retrieve text from another cell AFTER a certain character

    Doesn't matter - it will work regardless. Something else must be at play. You will need, therefore, to provide a sample workbook.

    Excel 2016 (Windows) 32 bit
    B
    C
    4
    skdhfoihsdfj:kahsfkh kahsfkh
    5
    kashdkhsd : lhslfh lhslfh
    Sheet: Sheet2

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

    Re: How to retrieve text from another cell AFTER a certain character

    But after : it has space
    In PQ you can define: :_ (colon space) as delimiter
    Last edited by sandy666; 01-04-2018 at 05:16 AM. Reason: edit: as delimiter

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,444

    Re: How to retrieve text from another cell AFTER a certain character

    It doesn't matter whether or not it has spaces in my formula, so that's not the issue. Nor does it matter in Glenn's.

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: How to retrieve text from another cell AFTER a certain character

    Typo!!!

    =TRIM(RIGHT(SUBSTITUTE(A1,":",REPT(" ",50)),50))
    Attached Files Attached Files

  12. #12
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    Re: How to retrieve text from another cell AFTER a certain character

    Perfect Glenn - this does the job for me!

  13. #13
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: How to retrieve text from another cell AFTER a certain character

    You're welcome... we're all allowed the occasional tpyo....



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

  14. #14
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,444

    Re: How to retrieve text from another cell AFTER a certain character

    Thanks for the rep!

    Very curious why my suggestion did not work, though, because it should have if what you told us in the opening post was a true reflection of your data. Very perplexed.

+ 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. Retrieve the Text which may have prefix/suffix in the database & retrieve the highestvalue
    By Sivashanmugam in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-10-2015, 12:58 PM
  2. How to retrieve result in cell using text character
    By abihus_786 in forum Excel General
    Replies: 0
    Last Post: 10-04-2013, 06:58 AM
  3. [SOLVED] How to retrieve particular text from one cell to another
    By nur2544 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-23-2013, 12:11 PM
  4. Macro to find character and delete all text in cell after the character
    By SpencerRichman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-01-2012, 06:08 PM
  5. Replies: 2
    Last Post: 05-27-2009, 12:02 AM
  6. trying to retrieve cell TEXT not formula
    By JakeP in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-02-2008, 03:59 AM
  7. [SOLVED] How do I retrieve the text string from the right of a cell
    By JWG in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-08-2006, 10:35 PM

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