Results 1 to 5 of 5

Search for text in 1 column and return text from another

Threaded View

  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.

    =IF(COUNTIF(B:B,"*"&LEFT(A2,LEN(A2)-5)&"*"),"x","")
    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.

    =IF(COUNTIF(B:B,"*"&LEFT(A2,LEN(A2)-5)&"*"),RIGHT(B:B, 5),"")
    Last edited by madadd; 03-09-2011 at 01:22 PM.

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