+ Reply to Thread
Results 1 to 5 of 5

Search for text in 1 column and return text from another

  1. #1
    Registered User
    Join Date
    02-04-2011
    Location
    boulder, co
    MS-Off Ver
    Excel 2003
    Posts
    74

    Question Search for text in 1 column and return text from another

    Hello,

    So I've got col. A and B. I want to search the text in A, but without the last 5 char. in Col. B. Here's that code which works fine.

    Please Login or Register  to view this content.
    But now instead of displaying an X, I want to pull the last 5 characters from column B for which the code above would have normally put an X.

    So, Conceptually I have this which doesn't work.

    Please Login or Register  to view this content.
    Last edited by madadd; 03-09-2011 at 01:22 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Search for text in 1 column and return text from another

    Is there only one match? or are you expecting multiple returns from column B?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    02-04-2011
    Location
    boulder, co
    MS-Off Ver
    Excel 2003
    Posts
    74

    Re: Search for text in 1 column and return text from another

    Oh, um there might be more than one, but I really only need one. Honestly whichever is easiest to do.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Search for text in 1 column and return text from another

    This would return the 1st match it comes across, if any:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    02-04-2011
    Location
    boulder, co
    MS-Off Ver
    Excel 2003
    Posts
    74

    Re: Search for text in 1 column and return text from another

    Ah sweet, you're awesome. Thank you very much!

+ 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