+ Reply to Thread
Results 1 to 27 of 27

Match with A and B with different type of pattern

  1. #1
    Registered User
    Join Date
    03-10-2018
    Location
    india
    MS-Off Ver
    7
    Posts
    17

    Match with A and B with different type of pattern

    Hi

    I have list of excel formula for matching A and B column.

    the same formula required in Macro.

    First Name Last Name Email pattern Excel fourmula Result
    Abhishek Garg abhishek.garg =LOWER(A2&"."&B2) TRUE
    Abhishek Garg a.garg =LOWER(LEFT(A2,1))&"."&LOWER(B2) TRUE
    Abhishek Garg agarg =LOWER(LEFT(A2,1))&LOWER(B2) TRUE
    Abhishek Garg abhishek =LOWER(A2) TRUE
    Abhishek Garg garg =LOWER(B2) TRUE
    Abhishek Garg gabhishek =LOWER(LEFT(B2,1))&LOWER(A2) TRUE
    Abhishek Garg abhishek_garg =LOWER(A2)&"_"&LOWER(B2) TRUE
    Abhishek Garg abhishekg =LOWER(A2)&LOWER(LEFT(B2,1)) TRUE
    Abhishek Garg a_garg =LOWER(LEFT(A2,1))&"_"&LOWER(B2) TRUE
    Abhishek Garg garg.a =LOWER(B2)&"."&LOWER(LEFT(A2,1)) TRUE
    Abhishek Garg garg_a =LOWER(B2)&"_"&LOWER(LEFT(A2,1)) TRUE
    Abhishek Garg garga =LOWER(B2)&LOWER(LEFT(A2,1)) TRUE
    Abhishek Garg abhishekgarg =LOWER(A2)&LOWER(B2) TRUE
    Abhishek Garg gargabhishek =LOWER(B2)&LOWER(A2) TRUE
    Abhishek Garg garg_abhishek =LOWER(B2&"_"&2) TRUE

    Thanks
    Josh

  2. #2
    Registered User
    Join Date
    03-10-2018
    Location
    india
    MS-Off Ver
    7
    Posts
    17

    Re: Match with A and B with different type of pattern

    pls. find the format of formula in the attached excel
    Attached Files Attached Files

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Match with A and B with different type of pattern

    UDF
    Use in cell like
    =Match2Cells(A2,B2,C2)
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    03-10-2018
    Location
    india
    MS-Off Ver
    7
    Posts
    17

    Re: Match with A and B with different type of pattern

    Hi jindon,
    thank you for above code
    i have new more pattern to add.( middle name)
    please can you add code for the same in the above code it self.
    find the attached file

    thank you once again.
    Attached Files Attached Files

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Match with A and B with different type of pattern

    =Match2Cells(A2,B2,C2,D2)
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    03-10-2018
    Location
    india
    MS-Off Ver
    7
    Posts
    17

    Re: Match with A and B with different type of pattern

    hi jindon,
    thank you for sharing knowledge, all the pattern are showing true,
    except

    Abhishek Garg garg '=LOWER(B2) TRUE

    please do the modification on the code.

    thank you very much

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Match with A and B with different type of pattern

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    03-10-2018
    Location
    india
    MS-Off Ver
    7
    Posts
    17

    Re: Match with A and B with different type of pattern

    hi jindon,

    its showing false only. kindly go through the code once again.

    Abhishek Garg garg FALSE

    thank you for your time knowledge sharing.
    Last edited by perus josh; 03-18-2018 at 04:59 AM. Reason: i pasted same code

  9. #9
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Match with A and B with different type of pattern

    Should work
    Please Login or Register  to view this content.
    Last edited by jindon; 03-18-2018 at 05:08 AM.

  10. #10
    Registered User
    Join Date
    03-10-2018
    Location
    india
    MS-Off Ver
    7
    Posts
    17

    Re: Match with A and B with different type of pattern

    hi Jindon,
    please teach me that, how add pattern in this.

    ex. what is the code for below pattern

    =LOWER(A2&"-"&B2&"-"&C2)

    thank you for teaching in advance

    regards
    josh

  11. #11
    Registered User
    Join Date
    03-10-2018
    Location
    india
    MS-Off Ver
    7
    Posts
    17

    Re: Match with A and B with different type of pattern

    hi jindon

    thank you for your reply.

    Please find the attachment false result

    regards
    josh
    Attached Files Attached Files

  12. #12
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Match with A and B with different type of pattern

    Please Login or Register  to view this content.

  13. #13
    Registered User
    Join Date
    03-10-2018
    Location
    india
    MS-Off Ver
    7
    Posts
    17

    Re: Match with A and B with different type of pattern

    thank you Jindon,
    its matching to all. if i have still more pattern's how can i add in this code.

    any input on this to learn

    Thanks & regards
    Josh

  14. #14
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Match with A and B with different type of pattern

    Google Regular expression.

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

  15. #15
    Registered User
    Join Date
    03-10-2018
    Location
    india
    MS-Off Ver
    7
    Posts
    17

    Re: Match with A and B with different type of pattern

    hi jindon
    thank you very much

  16. #16
    Registered User
    Join Date
    03-10-2018
    Location
    india
    MS-Off Ver
    7
    Posts
    17

    Re: Match with A and B with different type of pattern

    hi Jindon,
    i have one few more pattern need to check can you help me

    thanks
    josh

  17. #17
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Match with A and B with different type of pattern

    What is it?

  18. #18
    Registered User
    Join Date
    03-10-2018
    Location
    india
    MS-Off Ver
    7
    Posts
    17

    Re: Match with A and B with different type of pattern

    hi Jindon

    thank you for replay. i hope you are doing good.


    the priveous code is very use full for me.

    my resuqest is which ever the true value is shows, that fourmula as to display in the next column.
    based on that, i want to create pattern for other set of records.

    please find the attached sample excel file

    thank you in advance.

    regards
    Josh
    Attached Files Attached Files

  19. #19
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Match with A and B with different type of pattern

    Do you mean
    Please Login or Register  to view this content.
    ?

  20. #20
    Registered User
    Join Date
    03-10-2018
    Location
    india
    MS-Off Ver
    7
    Posts
    17

    Re: Match with A and B with different type of pattern

    Hi Jindon,
    i need to create pattern for some set of records, based on excising pattern, so, i have attached one more sample to better convey to you of my requirement.

    please help me to work done.

    Thank you
    Attached Files Attached Files

  21. #21
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Match with A and B with different type of pattern

    Attach a workbook with current code that you are using.

  22. #22
    Registered User
    Join Date
    03-10-2018
    Location
    india
    MS-Off Ver
    7
    Posts
    17

    Re: Match with A and B with different type of pattern

    Yes Jindon,

    based on that only, am working.

    if i got the solution for creating true value pattern, my manual work will be reduced 50%.

    thank you.
    josh

  23. #23
    Registered User
    Join Date
    03-10-2018
    Location
    india
    MS-Off Ver
    7
    Posts
    17

    Re: Match with A and B with different type of pattern

    Hi Jindon,

    any update for my request.

    thanks in advance

  24. #24
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Match with A and B with different type of pattern

    Quote Originally Posted by jindon View Post
    Attach a workbook with current code that you are using.


    ................

  25. #25
    Registered User
    Join Date
    05-08-2017
    Location
    india
    MS-Off Ver
    2007
    Posts
    6

    Re: Match with A and B with different type of pattern

    hi Jindon,
    i have one few more pattern need to check can you help me
    please check the attachment.

    thanks
    josh
    Attached Files Attached Files

  26. #26
    Registered User
    Join Date
    05-08-2017
    Location
    india
    MS-Off Ver
    2007
    Posts
    6

    Re: Match with A and B with different type of pattern

    hi Jindon,
    let me know its possible to do with macro,
    i hope you can do this.

    thank you in advance

    regards
    Josh

  27. #27
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Match with A and B with different type of pattern

    You are making it too complex and matching to almost any.

    I suggest you to go to CS Forum.

+ 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] How to extract data from a cell match a certain pattern and PRINT or DISPLAY the out
    By bennyys in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-24-2017, 11:48 AM
  2. [SOLVED] Need help with Index Match or possibly array type of match
    By chadboehne in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-14-2017, 01:16 PM
  3. [SOLVED] Lookup and return rows based on pattern start and pattern end
    By JDI in forum Excel General
    Replies: 18
    Last Post: 11-16-2014, 11:44 PM
  4. Extract data between match pattern, process in another sheet
    By 123raajesh in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-30-2014, 12:38 PM
  5. Replies: 6
    Last Post: 11-27-2013, 10:28 PM
  6. [SOLVED] pattern match using IF
    By nawaz.ahmed in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-09-2013, 11:51 PM
  7. [SOLVED] Pattern Match
    By ssjagger in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-10-2013, 11:44 AM

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