+ Reply to Thread
Results 1 to 6 of 6

Find and replace

  1. #1
    Registered User
    Join Date
    05-21-2019
    Location
    England
    MS-Off Ver
    365
    Posts
    10

    Find and replace

    Hi

    I am struggling with a find and replace issue.
    I currently use a csv file, and one of my columns has a bunch of html in it with 2 links.
    I am trying to make it so that when in a separate column i paste a new link it replaces the links in the first colum. I figured if had the html with a bunch of capital A''s for instance that i could tell it to look for them and replace it with the link in the other column. I want to do this on separate lines not the entire sheet at once. So each line would have new links in the first column.

    Is this possible ?
    And is ny description as clear as mud ?

    Any help greatly appreciated

    thanksyou

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,662

    Re: Find and replace

    Welcome to the Forum MattSDavies!

    I would suggest using a .xlsx file instead of csv and then you can use formulas to do the replacement row-by-row. You can't do a find & replace row-by-row. Your HTML is in column A, links in column B, resulting HTML in column C.

    A B C
    1 <h1><a href="AAAAAA">Home</a></h1> https://www.execelforum.com =SUBSTITUTE(A1,"AAAAAA",B1)
    2 To find out more, review our<a href="AAAAAA">rules</a> https://www.excelforum.com/forum-rules/642590-forum-rules.html =SUBSTITUTE(A2,"AAAAAA",B2)
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    05-21-2019
    Location
    England
    MS-Off Ver
    365
    Posts
    10

    Re: Find and replace

    Thankyou 6StringJazzer that works great

    Is there a way to change the formula numbers quickly

    I reffer to

    =SUBSTITUTE(X2,"HELLO",J2)

    changing the x2 to x3 and j3 to j3.. then x4 to x5 on the next row and so on.

    my files have 14000 lines on one and 38000 on another so it would be very usefull to do it automatically, or quickly

    thanks

  4. #4
    Registered User
    Join Date
    05-21-2019
    Location
    England
    MS-Off Ver
    365
    Posts
    10

    Re: Find and replace

    SOLVED IT

    Thanks for help

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,662

    Re: Find and replace

    You're welcome! Hopefully you discovered that you can just take the first formula and either copy & paste, fill down, or drag down, and Excel takes care of the rest.

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,662

    Re: Find and replace

    If your question has been answered please mark your thread as "Solved" so that members will know by looking at the thread title that your problem is solved. Go to the menu immediately above your first post to the thread and click on Thread Tools. From the dropdown menu select "Mark this thread as solved..."

+ 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: 1
    Last Post: 02-27-2018, 11:22 AM
  2. [SOLVED] Using find replace to first find two double quotes and replace with a single double quote
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-17-2015, 10:13 AM
  3. [SOLVED] Find and replace where contents a formula so can't be seen by Find and replace.
    By markDuffy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-26-2015, 02:24 PM
  4. Replies: 16
    Last Post: 12-02-2014, 03:38 PM
  5. Replies: 3
    Last Post: 11-25-2014, 06:08 AM
  6. find in excel replace in word: find/replace text in text boxes and headers
    By dean.rogers in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-10-2012, 12:40 PM
  7. [SOLVED] find and replace - replace data in rows to separated by commas
    By msdker in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-14-2006, 08:10 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