+ Reply to Thread
Results 1 to 3 of 3

How to embed SUBSTITUTE formula within CONCATENATE?

Hybrid View

  1. #1
    Registered User
    Join Date
    10-30-2012
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    2

    How to embed SUBSTITUTE formula within CONCATENATE?

    Hi all -

    I am trying to embed a substitute formula within a concatenation... for example my cell contains the text:

    google.com

    And in one long formula string, I would like to end up with:

    ^www\.google\.com$|




    I am trying to substitute "\." for ".", so that formula is =substitute(google.com,".","\.")

    Then I was concatenating, so I did =concatenate("^www\.",CELL WITH SUBSTITUTE FORMULA,"$|").



    How can I embed the two so I don't need two columns with formulas?

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,677

    Re: How to embed SUBSTITUTE formula within CONCATENATE?

    You can use & to concatenate, so say you have google.com in D3 try this formula in another cell

    ="^www\."&SUBSTITUTE(D3,".","\.")&"$|"
    Audere est facere

  3. #3
    Registered User
    Join Date
    10-30-2012
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    2

    Re: How to embed SUBSTITUTE formula within CONCATENATE?

    That worked, thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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