+ Reply to Thread
Results 1 to 7 of 7

Text right of : from a cell

  1. #1
    Forum Contributor
    Join Date
    06-24-2013
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    114

    Text right of : from a cell

    I have some text that has near the end of this text "This is loads more text before this part and its not the same length Publisher: :01 First Second"

    I need to take everything after : so 01 First Second

    I have tried =RIGHT(F1,LEN(F1)-FIND("Publisher: :",F1))

    With F1 being where the text is.

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Text right of : from a cell

    Maybe this...

    =MID(F1,FIND("^",SUBSTITUTE(F1,":","^",2))+1,999)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Text right of : from a cell

    You could use this formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Or you could use a small UDF:
    Please Login or Register  to view this content.
    Which can be used as:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  4. #4
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Text right of : from a cell

    Quote Originally Posted by Tony Valko View Post
    Maybe this...

    =MID(F1,FIND("^",SUBSTITUTE(F1,":","^",2))+1,999)
    Neat - but won't work if there are more (or less) than 2 colons in the original text.

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Text right of : from a cell

    Quote Originally Posted by Olly View Post
    Neat - but won't work if there are more (or less) than 2 colons in the original text.
    How many colons do you see in the provided sample?

    I try to not account for things that may not exist. If there might be more semi-colons then the OP will post back and tell us.

  6. #6
    Forum Contributor
    Join Date
    06-24-2013
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    114

    Re: Text right of : from a cell

    =RIGHT(F1,LEN(F1)-FIND("|",SUBSTITUTE(F1,":","|",LEN(F1)-LEN(SUBSTITUTE(F1,":","")))))

    worked fine

    on another note how would i take all the text to the left from

    "This text is what I want that is to the left of" Publisher:

    Thanks guys

  7. #7
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Text right of : from a cell

    try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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. If cell equals a text then insert a number, (text cell comes from a data validation)
    By floridashaughn in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-15-2014, 03:24 PM
  2. Replies: 5
    Last Post: 01-06-2014, 05:33 AM
  3. Replies: 7
    Last Post: 01-04-2014, 10:11 PM
  4. 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
  5. Search cell for multiple text , return comma separated text in separate cell if found
    By dangerdoug in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-01-2013, 01:52 PM
  6. Replies: 1
    Last Post: 01-25-2013, 12:44 AM
  7. Replies: 2
    Last Post: 11-29-2012, 11:27 AM

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