+ Reply to Thread
Results 1 to 3 of 3

replacing a certain text and then looking it up

  1. #1
    Registered User
    Join Date
    09-06-2013
    Location
    Makati, Philippines
    MS-Off Ver
    Excel 2007
    Posts
    2

    replacing a certain text and then looking it up

    Hi everyone,

    How can i replace a certain part of text for and convert it to another form and then lookup the whole new value.

    for example, Aquarius (T-500 ppm) B100 DYE to Aquarius 500ppmT B100 DYE and vice versa. Also, the bolded text is not fixed on a certain position (it can be at the beginning, end or middle of the text) and the number also differs.

    also,i am using userform and the worksheet only contains the list of description that i will use as reference to lookup the value.

    thanks.

  2. #2
    Registered User
    Join Date
    09-06-2013
    Location
    Makati, Philippines
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: replacing a certain text and then looking it up

    i already got an idea on how to get the remaining text. my only problem now is the number within the text as it varies ( 3 ppmT, T-15 ppm, 1000 ppmT)

  3. #3
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,394

    Re: replacing a certain text and then looking it up

    gundgrave,

    Can't follow the logic. Finding "T-500 ppm" - whether at the beginning, middle or end of a string, and changing it to "500ppmT", is straightforward.

    But if that value is not in the string you use to look up, what are you "searching" for?

    And if the number can differ, how is the Code supposed to know what to look for and change?

    You need to attach a sample workbook with a few dozen rows at most showing us what you look up, what it looked like originally, and what you want it to be at the end.

    Ochimus

+ 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. Replacing specific text in a cell by row and replace with text in another row
    By merQrey in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-23-2014, 10:05 AM
  2. [SOLVED] Macro finding text and replacing text
    By allenz0rz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-07-2013, 07:48 PM
  3. IF function: Using text in logical_test with multiple variables and replacing with text
    By SarahRachelJones in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-25-2012, 02:17 PM
  4. [SOLVED] need help in replacing text
    By faddies in forum Excel General
    Replies: 11
    Last Post: 07-24-2012, 11:16 PM
  5. [SOLVED] replacing text in all cells with existing text plus something
    By avi2001 in forum Excel General
    Replies: 2
    Last Post: 11-02-2005, 06:20 PM
  6. Replies: 2
    Last Post: 11-02-2005, 06:17 PM
  7. [SOLVED] Replacing #N/A with other text
    By Dave in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 PM
  8. [SOLVED] Replacing #N/A with other text
    By Dave in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 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