+ Reply to Thread
Results 1 to 7 of 7

Search for text in the Cell & return a value

  1. #1
    Registered User
    Join Date
    12-04-2012
    Location
    india
    MS-Off Ver
    2021
    Posts
    45

    Search for text in the Cell & return a value

    Hi,

    Hoping the experts can help me on this.

    I am looking for a formula to find the word/words listed in Column J in the cell A2 and then return the value in the column K. It does not need to be case senstive, Ex: AFI or afi would be the same.

    I have data in column A that has the diagnosis . Column J has the word or words that needs to be searched , Column k has the value that it needs to return. Word or words that are being searched can be any where in the column A.

    Attached is the excel sheet that has some sample data. i have around 15k rows of diag data, and around 368 values in j & k column.

    Thank You.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,427

    Re: Search for text in the Cell & return a value

    Is this for Excel 2016?

    In B2 copied down:

    =IFERROR(LOOKUP(99999,SEARCH($J$2:$J$4,A2),$K$2:$K$4),"")
    Last edited by AliGW; 11-27-2023 at 04:10 AM.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    12-04-2012
    Location
    india
    MS-Off Ver
    2021
    Posts
    45

    Re: Search for text in the Cell & return a value

    Quote Originally Posted by AliGW View Post
    Is this for Excel 2016?
    Its for Office 365 and i have excel 2010 also.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,427

    Re: Search for text in the Cell & return a value

    Which does it need to work for? If it's 2010, then that is what needs to be in your profile (and nothing else).

    Did you see my solution in post #2?

  5. #5
    Registered User
    Join Date
    12-04-2012
    Location
    india
    MS-Off Ver
    2021
    Posts
    45

    Re: Search for text in the Cell & return a value

    Thank you !!, Apologies, i will mention the version that i am working on, have updated the profile.

    Have used the formula, verifying some random data. Thank you, will update the thread.
    Last edited by AliGW; 11-27-2023 at 04:32 AM. Reason: Please do NOT quote unnecessarily! Use the QUICK REPLY button instead.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,427

    Re: Search for text in the Cell & return a value

    Your forum profile should show ONLY the OLDEST version you need any solution to work with. Please remove one of the versions listed, as it's confusing as it is. Do this NOW, please.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,427

    Re: Search for text in the Cell & return a value

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

+ 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. [SOLVED] Search a column for parts of text and return another part of text within the same cell
    By ClaudiaRovastino in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2021, 01:06 PM
  2. [SOLVED] search multiple text in cell and return found text via formula in another
    By lilsnoop in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-28-2021, 01:26 PM
  3. Search Cells for range of text / Return different text to another cell
    By earl2grey in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-12-2019, 03:52 PM
  4. Replies: 6
    Last Post: 05-31-2019, 12:39 AM
  5. Replies: 5
    Last Post: 04-06-2019, 02:18 AM
  6. Search a cell for text, and return all surrounding text between two cells
    By TRAPSON in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-13-2017, 02:19 PM
  7. Search cell for multiple text , return comma separated text in separate cell if found
    By dangerdoug in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-01-2013, 01:52 PM

Tags for this Thread

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