+ Reply to Thread
Results 1 to 2 of 2

3 formulas in 1 cell using replace command

  1. #1
    Registered User
    Join Date
    01-18-2008
    Posts
    1

    3 formulas in 1 cell using replace command

    Hi,

    I'm trying to put the following 3 formulas into 1
    =REPLACE(E2,FIND("ITEMTITLEHERE",E2),13,F2)
    =REPLACE(E2,FIND("DESCRIPTIONHERE",E2),14,AE2)
    =REPLACE(E4,FIND("IMAGEHERE",E4),9,AG4)

    I manages to get a good person to solve the first 2 into:
    =REPLACE(REPLACE(E2,FIND("ITEMTITLEHERE",E2),13,F2),FIND("DESCRIPTIONHERE",REPLACE(E2,FIND("ITEMTITLEHERE",E2),13,F2)),14,AE2)

    But I'm struggling getting the 3rd addition to work without errors. The code would be very appretiated. The structure of the formula makes my brain bubble.

    Thanks
    Dave

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Try the answer at your cross post then post a link to the cross post as per forum rules below

    =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(E2,"ITEMTITLEHERE",F2),"DESCRIPTIONHERE",AE2),"IMAGEURL",AG2)

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

+ 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