+ Reply to Thread
Results 1 to 5 of 5

Replace function help

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

    Replace function help

    Hi all,

    I have 3 columns.

    B2: Has an ID:
    21241391


    J2 has a link:

    https://rrrrrrr.eeeeee.com/betting/b...source=partner

    K2 is where I am doing this:

    =REPLACE(J2,49,7,B2)

    I am trying to replace the ID in J2 with the ID from B2. However I am not getting the "?" symbol as can be seen in J2? any idea why?

    *URL amended to maintain confidentialyity

    thnk you!
    Thanks,

    R.



  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
    52,945

    Re: Replace function help

    I doubt anyone is going to click a link like that. Rather, upload your sample file here to the forum.
    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
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Replace function help

    Please try

    =REPLACE(J2,47,8,B2)

    or
    =REPLACE(J2,FIND("?",J2)-LEN(B2),LEN(B2),B2)

    to return hyperlink
    =HYPERLINK(REPLACE(J2,47,8,B2))

    =HYPERLINK(REPLACE(J2,FIND("?",J2)-LEN(B2),LEN(B2),B2))

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

    Re: Replace function help

    This will look for the only "?" in string first, then find the max value in the left, replace it:

    =SUBSTITUTE(J2,AGGREGATE(14,6,RIGHT(LEFT(J2,SEARCH("~?",J2)-1),ROW($1:$12))+0,1),B2)
    Quang PT

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

    Re: Replace function help

    Ty all! Solution found!

+ 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] Use Replace Function to Replace Whole Word
    By exceere in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-05-2020, 09:03 PM
  2. REPLACE function help replace two separate texts Ctrl H
    By Uldis in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-23-2015, 10:51 AM
  3. Excel function in VBA using the Replace function
    By starlev in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-18-2015, 06:34 AM
  4. [SOLVED] Need help with REPLACE function to replace HEX A0 with HEX 20 in string
    By flyboy54 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-26-2013, 12:52 PM
  5. Replace function
    By lstevenson in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-05-2013, 02:48 AM
  6. Replace Function:Replace" and type in
    By ronnyc in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-19-2007, 06:26 PM
  7. Need Help with Replace Function
    By buymearing in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-02-2005, 09:39 AM

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