+ Reply to Thread
Results 1 to 15 of 15

How to vlookup to search for three same key words for bashing

  1. #1
    Registered User
    Join Date
    10-23-2013
    Location
    makati, philippines
    MS-Off Ver
    Excel 2010
    Posts
    71

    How to vlookup to search for three same key words for bashing

    Hello Good day everyone i'd like to seek help from you guys for a vlookup formula that will enable to search for 2 or 3 similar words in each cell then return the value as " matched " if not the " not matched " ....the purpose is to search for same company name in file [1] and file [2] and tagged it as " matched " if found matched and (((( OPTIONAL ) if possible will tagged " possible matched " if the suspected name somehow has similar but the not that sure))))..the problem is file [1] and file [2] has problem in naming convention: for example the other one is:

    file [1] orange crawford inc. - file [2] orange crawford incorporated = in this scenario this should be matched..but my current vlookup formula the usual basic type searches only the EXACT words of each hence making the above example " not matched "

    I provided an example scenario attached
    Attached Files Attached Files

  2. #2
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,366

    Re: How to vlookup to search for three same key words for bashing

    Pls check the file attach, hope you satisfied



    Azumi
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    10-23-2013
    Location
    makati, philippines
    MS-Off Ver
    Excel 2010
    Posts
    71

    Re: How to vlookup to search for three same key words for bashing

    hi azumi :D almost there..i am still learning on excel how do i use the cases there >.< especially on my case :P

    in this formula:
    =IFERROR(INDEX($A$2:$A$25,SMALL(IF(LEFT($A$28,5)=LEFT($A$2:$A$25,5),ROW($A$2:$A$25)-ROW($B$1)),ROW(A1:B1)),1),"")
    where do i put the file[2] >.< considering i am bashing two different sheets..coz file 1 and 2 are different sheets :D

    thanks for your time :P

  4. #4
    Registered User
    Join Date
    10-23-2013
    Location
    makati, philippines
    MS-Off Ver
    Excel 2010
    Posts
    71

    Re: How to vlookup to search for three same key words for bashing

    Quote Originally Posted by azumi View Post
    Pls check the file attach, hope you satisfied



    Azumi


    hi azumi :D almost there..i am still learning on excel how do i use the cases there >.< especially on my case :P

    in this formula:
    =IFERROR(INDEX($A$2:$A$25,SMALL(IF(LEFT($A$28,5)=LEFT($A$2:$A$25,5),ROW($A$2:$A$25)-ROW($B$1)),ROW(A1:B1)),1),"")
    where do i put the file[2] >.< considering i am bashing two different sheets..coz file 1 and 2 are different sheets :D

    thanks for your time :P

  5. #5
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: How to vlookup to search for three same key words for bashing

    can you look also the other option on the attachement.
    thanks.
    Inside:
    just to play safe i made 3 matches.
    first matche -use the whole content of the cell.
    second match - use the first two words of the cell with wild card
    third match - use the first word of the cell with wild card


    advanced vlookup for bashing.xlsx
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  6. #6
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,366

    Re: How to vlookup to search for three same key words for bashing

    Matching 2 list

    Azumi
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    10-23-2013
    Location
    makati, philippines
    MS-Off Ver
    Excel 2010
    Posts
    71

    Re: How to vlookup to search for three same key words for bashing

    currently testing both formula on my actual sheets....thanks for the time i really appreciate your efforts :D i'll give feedback and rep once done.. :D

  8. #8
    Registered User
    Join Date
    10-23-2013
    Location
    makati, philippines
    MS-Off Ver
    Excel 2010
    Posts
    71

    Re: How to vlookup to search for three same key words for bashing

    Quote Originally Posted by vlady View Post
    can you look also the other option on the attachement.
    thanks.
    Inside:
    just to play safe i made 3 matches.
    first matche -use the whole content of the cell.
    second match - use the first two words of the cell with wild card
    third match - use the first word of the cell with wild card
    Attachment 276250
    hi sir kababayan hehe thanks po :D ~ sorry i'm still learning on excel please let me know how to use your formula, what changes should i fill when using it in other sheets - thanks :D really appreciate your time po for this :D

  9. #9
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: How to vlookup to search for three same key words for bashing

    sorry for the late reply..

    from this formula you can change the ranges that has the "FILE2" -> this points to the other tab say sheet2 or sheet3 or sheet4. etc.....
    the A3 is within the tab itself. -> this is your target cell

    INDEX(File2!A:A,MATCH(A3,File2!A:A,0))

    actually we do not need the "index" part there to shorten it up and return only "matched and not matched"..

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


    there are also other ways to attain this you can use countif/s sumproduct.......

  10. #10
    Registered User
    Join Date
    10-23-2013
    Location
    makati, philippines
    MS-Off Ver
    Excel 2010
    Posts
    71

    Re: How to vlookup to search for three same key words for bashing

    Quote Originally Posted by vlady View Post
    sorry for the late reply..
    no sir, you dont have to say sorry, im the one should be thankful for all the feedback and replies here >.< ..almost there na po...almost work and currently bashing the results from different sheets...sir one last question...in your formula given which one is the:

    First match the whole cell value
    Second match the first two words found in the cell
    Third match first word
    ithe if(iserror checks for message if matched or not

    the purpose of this is i want to learn how the formula works and also how to config the formula to search for first, second or even third keywords :D

    may i know w/c is w/c in the file i cant figure out cause the formua's are almost identical hehe thanks for this really appreciate your time spent on feeback and im sorry for my noob question
    Last edited by clifford_ayala; 11-07-2013 at 09:55 PM.

  11. #11
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: How to vlookup to search for three same key words for bashing

    ok
    red is the first match that uses all the word in that cell
    blue is the second match which uses the first two word in the cell
    green if the third that uses the first word in the cell

    =IF(ISERROR(IFERROR(IFERROR(MATCH(A3,File2!A:A,0),MATCH(LEFT(A3,FIND(" ",A3,FIND(" ",A3,1)+1)-1)&"*",File2!A:A,0)),MATCH(LEFT(A3,SEARCH(" ",A3)-1)&"*",File2!A:A,0))),"Not Matched","Matched")

    the

    =if(iserror(all the match function is here ),"message not matched","message if matched")

  12. #12
    Registered User
    Join Date
    10-23-2013
    Location
    makati, philippines
    MS-Off Ver
    Excel 2010
    Posts
    71

    Re: How to vlookup to search for three same key words for bashing

    @vlady wow thank you sir for your quick and decisive replies, it now worked and will reduce my bashing time for about 70% :D one last optional question sir hehehe if you have time..why did we remove index?

    INDEX(File2!A:A,MATCH(A3,File2!A:A,0))

    actually we do not need the "index" part there to shorten it up and return only "matched and not matched"..

    @azumi
    thanks again for all your replies..really appreciate and will use your formula for my excel studies..thanks for all those case example :D

  13. #13
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: How to vlookup to search for three same key words for bashing

    Your very much welcome.

    the index basically will return a value from the range "IF" the match function has found a match(true)

    =index(rangetoreturn,match(matchwhat,rangewheretolook,0 for exact match)
    in your problem we do not need to return the data we just want to check if is found in that specific range...so we get rid of the index.

    Thanks for the kind words and star tap.

    regards,
    Vladimir

  14. #14
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,366

    Re: How to vlookup to search for three same key words for bashing

    You're wlcome, nice feedback....

    Azumi

  15. #15
    Registered User
    Join Date
    10-23-2013
    Location
    makati, philippines
    MS-Off Ver
    Excel 2010
    Posts
    71

    Re: How to vlookup to search for three same key words for bashing

    @azumi
    @vlady

    you're both welcome and i know you deserved more than that hehe :D

    thanks for the nice tutorial and for being patient for a newbie excel user like me hehe i really wanted to learn excel and this is a warm welcome to me and hopefully i can teach others someday what you guys have inspired and thought me :D...seriously this bashing gave us a hardtime since we are only doing it manual on our division >.<...other software products cant even handle the searching too hehe..here's a quick example of other possibilities:

    apple pumpkin corp.
    apple pumpkin corporation
    the apple pumpkin corp.
    apple pumpkin orange corp. the
    pumpkin apple orange corp. the
    pumpkin orange apple corporation the
    the orange apple pumpkin corporation
    the apple orange pumpkin corp.

    in my actual spread sheets i always encounter such combination ( originally business and company names )
    the example i provided is a " matched "...to some extent the formula randomly gave me out of 60-70% accuracy, but it is really a BIG help and a big difference compared to what i originally use the =left/find (??,??)+1) and then i use vlookup to search them :D

+ 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 box in Excel to search key words in sentences in multiple worksheets
    By fernandoii676 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-05-2012, 01:42 PM
  2. Replies: 2
    Last Post: 10-19-2012, 11:11 AM
  3. Replies: 1
    Last Post: 06-05-2012, 01:39 PM
  4. Replies: 1
    Last Post: 04-04-2012, 07:15 PM
  5. Bashing Data Lists in EXCEL 2003 - Pls Help
    By Jeda_zelda in forum Excel General
    Replies: 5
    Last Post: 11-13-2006, 03:21 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