+ Reply to Thread
Results 1 to 5 of 5

How to insert a cell's content before specific text in a cell.

  1. #1
    Forum Contributor
    Join Date
    02-27-2009
    Location
    Chennai, India
    MS-Off Ver
    Excel 2013
    Posts
    327

    How to insert a cell's content before specific text in a cell.

    How to insert a text before specific text in a cell.

    REf : Attachment

    Cell A has names like VICTOR FIRST
    Cell B has names like LOUIS FERTINAND
    (FIRST is a common word)
    IN Cell C, before the word FIRST, I want to add / LOUIS FERTINAND
    Resulting C cell should be : VICTOR / LOUIS FERTINAND FIRST

    If there is no FIRST in cell A, Resulting C should be VICTOR / LOUIS FERTINAND

    How to do this?
    Attached Files Attached Files
    Last edited by jilaba; 09-30-2020 at 11:26 PM.
    Ask me how to hate XL.

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,459

    Re: How to insert a cell's content before specific text in a cell.

    Try:

    Please Login or Register  to view this content.
    Quang PT

  3. #3
    Forum Contributor
    Join Date
    02-27-2009
    Location
    Chennai, India
    MS-Off Ver
    Excel 2013
    Posts
    327

    Re: How to insert a cell's content before specific text in a cell.

    Quote Originally Posted by bebo021999 View Post
    Try:

    Please Login or Register  to view this content.
    Thanks. It works, but brings #value if there is no FIRST in Cell A.
    (If there is no FIRST in cell A, Resulting C should be VICTOR / LOUIS FERTINAND)

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,459

    Re: How to insert a cell's content before specific text in a cell.

    Try:

    =REPLACE(A1&" ",IFERROR(SEARCH(" FIRST",A1&" "),SEARCH(" ",A1&" ")),1," / "&B1&" ")

  5. #5
    Forum Contributor
    Join Date
    02-27-2009
    Location
    Chennai, India
    MS-Off Ver
    Excel 2013
    Posts
    327

    Re: How to insert a cell's content before specific text in a cell.

    Quote Originally Posted by bebo021999 View Post
    Try:

    =REPLACE(A1&" ",IF" ")
    Thanks a lot. It worked fine

+ 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. Replies: 4
    Last Post: 02-09-2020, 03:39 AM
  2. [SOLVED] Macro to find the specific text from the cell content
    By Manish_Gupta in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-12-2016, 07:21 AM
  3. Replies: 8
    Last Post: 10-28-2015, 10:22 AM
  4. [SOLVED] Insert Cell made up of another specific cell with additional text added at the end
    By MICowboy13 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-16-2014, 01:30 PM
  5. [SOLVED] VBA script to insert text in cell if a different cell in row does not contain specific txt
    By Metrazal in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-28-2014, 03:40 PM
  6. Replies: 3
    Last Post: 07-12-2013, 09:17 AM
  7. Insert cell A value into default text cell D for each specific row
    By badasstoymaster in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-16-2010, 03:40 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