+ Reply to Thread
Results 1 to 7 of 7

Replace Text in a string with text in another column

  1. #1
    Registered User
    Join Date
    01-01-2014
    Location
    United States
    MS-Off Ver
    O365 (v2204)
    Posts
    82

    Replace Text in a string with text in another column

    Hello,

    I am stuck trying to replace text within a sentence. Example column AH2 has @@ inside a sentence, I want to replace @@ with the text in column AI2 LPD26_T.pdf. I need to to copy this down over 5k rows. All AH text rows to replace are the same (@@), all AI2 are different.

    Any help will be greatly appreciated.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: Replace Text in a string with text in another column

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    01-01-2014
    Location
    United States
    MS-Off Ver
    O365 (v2204)
    Posts
    82

    Re: Replace Text in a string with text in another column

    Added file. Thanks
    Attached Files Attached Files

  4. #4
    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: Replace Text in a string with text in another column

    Enter formula in C1 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

  5. #5
    Registered User
    Join Date
    01-01-2014
    Location
    United States
    MS-Off Ver
    O365 (v2204)
    Posts
    82

    Re: Replace Text in a string with text in another column

    That did substitute but none of the trailing text conveyed.
    target="blank"><img src="/images/pdf-icon.png" style="width:30px !important"> Test Data Sheet</a></li>
    </ul>

  6. #6
    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: Replace Text in a string with text in another column

    Quote Originally Posted by plank22 View Post
    That did substitute but none of the trailing text conveyed.
    target="blank"><img src="/images/pdf-icon.png" style="width:30px !important"> Test Data Sheet</a></li>
    </ul>
    Sorry, but I don't think I understand of what you trying to say. I don't see any other requirements in your original post.

  7. #7
    Registered User
    Join Date
    01-01-2014
    Location
    United States
    MS-Off Ver
    O365 (v2204)
    Posts
    82

    Re: Replace Text in a string with text in another column

    Sorry it did. 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] VBA Macro to find text string in one column and replace specific text in another column if
    By bmahfood in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-21-2017, 11:15 AM
  2. Replies: 2
    Last Post: 05-27-2016, 12:30 AM
  3. Lookup & replace specific text in a text string
    By Haha88 in forum Excel General
    Replies: 1
    Last Post: 07-13-2015, 06:06 PM
  4. Replace text string in a cell and retain rich text formatting (Excel 2013)
    By CharlieBear in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 04-15-2015, 04:39 PM
  5. Macro for adding text, spacing, and a replace in a text string.
    By scapegoat9595 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-17-2013, 10:44 AM
  6. [SOLVED] VBA to Search a Text String, Find a Value listed in another column and replace the text
    By Jschrod303 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-16-2012, 08:56 PM
  7. Replies: 3
    Last Post: 08-29-2010, 03:31 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