+ Reply to Thread
Results 1 to 6 of 6

Categorization of the text with multiple keywords in excel

  1. #1
    Registered User
    Join Date
    08-08-2019
    Location
    Mumbai
    MS-Off Ver
    10
    Posts
    3

    Categorization of the text with multiple keywords in excel

    I have to categorize my Description based on the Keywords and mention its Type in the Output Category

    This can be seen below with an example. There are certain keywords with the type and I want the output category filled with the Type corresponding to the Description

    s1.PNG
    s2.PNG

    With the help of the below function,

    =INDEX(J:J,MATCH(1,IFNA(MATCH("asterisk"'&K:K&"asterisk",A2,0),0),0))

    I can achieve the required result in B2 and B3 cell. However,I want the value in B4 to be 'performance,Quality' because 'EAM access issue' lies in both the type.

  2. #2
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: Categorization of the text with multiple keywords in excel

    Excel 2016 (Windows) 32 bit
    A
    B
    J
    K
    1
    desc output type keywords
    2
    key1 operation action1 performance access
    3
    other2 key1 other1,action1 quality EAM
    4
    EAM access issue performance,quality other1 other2
    5
    EAM key2 quality,action2 action2 key2
    6
    action1 key1



    A
    B
    1
    desc output
    2
    key1 operation =TEXTJOIN(",",1,IF(IFNA(MATCH("*"&$K$1:$K$10&"*",A2,0)*($K$1:$K$10<>""),0)<>0,$J$1:$J$10,""))
    3
    other2 key1 =TEXTJOIN(",",1,IF(IFNA(MATCH("*"&$K$1:$K$10&"*",A3,0)*($K$1:$K$10<>""),0)<>0,$J$1:$J$10,""))
    4
    EAM access issue =TEXTJOIN(",",1,IF(IFNA(MATCH("*"&$K$1:$K$10&"*",A4,0)*($K$1:$K$10<>""),0)<>0,$J$1:$J$10,""))
    5
    EAM key2 =TEXTJOIN(",",1,IF(IFNA(MATCH("*"&$K$1:$K$10&"*",A5,0)*($K$1:$K$10<>""),0)<>0,$J$1:$J$10,""))
    Sheet: Sheet1
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  3. #3
    Registered User
    Join Date
    08-08-2019
    Location
    Mumbai
    MS-Off Ver
    10
    Posts
    3

    Re: Categorization of the text with multiple keywords in excel

    Hi. Thanks for the reply. What if I dont have office 365. it doesnot work
    Is there any way to achieve it through VBA code?

  4. #4
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: Categorization of the text with multiple keywords in excel

    OK, so instead of TEXTJOIN you can use this function:


    Please Login or Register  to view this content.
    put it into Module in VBA and change formulas like below (B2):

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    08-08-2019
    Location
    Mumbai
    MS-Off Ver
    10
    Posts
    3

    Re: Categorization of the text with multiple keywords in excel

    It worked like a charm brother. thanks a ton

  6. #6
    Registered User
    Join Date
    04-01-2020
    Location
    oslo, Norway
    MS-Off Ver
    Free
    Posts
    6

    Re: Categorization of the text with multiple keywords in excel

    Hi, Its been a while since this thread was active, but i have a problem related to this discussion.
    I use
    =INDEX(J:J,MATCH(1,IFNA(MATCH("asterisk"'&K:K&"asterisk",A2,0),0),0)), for the same purpose as in the first post. My problem occurs if there is a blank cell in "output category" column, then the forumla calculates everything below the blank to be "0".

    Anyone can help me with this?

    Johannes

+ 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. Search for multiple keywords within a single text cell
    By ndube50 in forum Excel General
    Replies: 22
    Last Post: 06-30-2020, 07:23 AM
  2. [SOLVED] Find Multiple keywords from free text cell
    By amitmodi_mrt in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-31-2017, 02:58 AM
  3. [SOLVED] VBA looking for multiple keywords and return concatenated keywords, that were found
    By Kpacu007 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-10-2014, 06:03 AM
  4. [SOLVED] Challenge for real excel experts!! complex categorization on multiple criteria
    By joannelittell in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 10-16-2013, 05:07 AM
  5. [SOLVED] HDI - Return multiple keywords in a text column based on a set of available keywords
    By zneiley in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-25-2013, 01:32 PM
  6. Find multiple keywords/text and copy entire row into new spreadsheet?
    By sking333 in forum Access Tables & Databases
    Replies: 2
    Last Post: 08-21-2012, 11:35 PM
  7. Replies: 2
    Last Post: 11-24-2010, 05:44 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