+ Reply to Thread
Results 1 to 21 of 21

VBA: Multiple text and number columns. Find list and number of unique words

  1. #1
    Registered User
    Join Date
    06-23-2017
    Location
    London, England
    MS-Off Ver
    2007, 2010
    Posts
    24

    VBA: Multiple text and number columns. Find list and number of unique words

    I have Multiple text/sentences and number in multiple columns. I need to find "list and number" of unique words in next sheet. Then I need to find "list and number" of given sentences. Can anybody help me out ?

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

    Re: VBA: Multiple text and number columns. Find list and number of unique words

    Same as your previous thread?

    VBA: Find all sentences with a given word. Partial match preferred with regex.

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Registered User
    Join Date
    06-23-2017
    Location
    London, England
    MS-Off Ver
    2007, 2010
    Posts
    24

    Re: VBA: Multiple text and number columns. Find list and number of unique words

    Excel sheet attached. Thank you in advance.
    Attached Files Attached Files

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

    Re: VBA: Multiple text and number columns. Find list and number of unique words

    Try
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-23-2017
    Location
    London, England
    MS-Off Ver
    2007, 2010
    Posts
    24

    Re: VBA: Multiple text and number columns. Find list and number of unique words

    Not working

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

    Re: VBA: Multiple text and number columns. Find list and number of unique words

    ..........................
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    06-23-2017
    Location
    London, England
    MS-Off Ver
    2007, 2010
    Posts
    24

    Re: VBA: Multiple text and number columns. Find list and number of unique words

    Hmm the "BEFORE sheet" Column A has data. After the macro has ran successfully the result should be as in "AFTER sheet1". In AFTER sheet1 output data should be like in column B - G; until there are keys left. Hope its clear now. For each key there are two column. One for exact match and another for partial match. So sentences are copied as per key.

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

    Re: VBA: Multiple text and number columns. Find list and number of unique words

    I see
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by jindon; 06-25-2017 at 08:01 AM.

  9. #9
    Registered User
    Join Date
    06-23-2017
    Location
    London, England
    MS-Off Ver
    2007, 2010
    Posts
    24

    Re: VBA: Multiple text and number columns. Find list and number of unique words

    Thank you again but the output is not matching with the "AFTER sheet1" columns.
    words from same row with matching key should be grouped in same row.
    For each key there are two columns column: Exact word: "XXXXXX" & column: Similar to word: "XXXXXX" Please check the output in AFTER sheet1 for key "win".
    Moreover if I change any key it seems its not working.
    Please ignore small letter capital letter issue.

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

    Re: VBA: Multiple text and number columns. Find list and number of unique words

    OK, I think I understand what you are trying to do now.
    Then I need a clear definition of difference between "Exact" & "Similar" words.

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

    Re: VBA: Multiple text and number columns. Find list and number of unique words

    Please Login or Register  to view this content.
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    06-23-2017
    Location
    London, England
    MS-Off Ver
    2007, 2010
    Posts
    24

    Re: VBA: Multiple text and number columns. Find list and number of unique words

    Thank you very much again from the core of my heart. It didn't cached the data from cell A4.

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

    Re: VBA: Multiple text and number columns. Find list and number of unique words

    Try replace the code with this one
    Please Login or Register  to view this content.

  14. #14
    Registered User
    Join Date
    06-23-2017
    Location
    London, England
    MS-Off Ver
    2007, 2010
    Posts
    24

    Re: VBA: Multiple text and number columns. Find list and number of unique words

    With same condition's -- if I want to get the same kind of result with with two or more cell data making a pair with one another in reference then ?

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

    Re: VBA: Multiple text and number columns. Find list and number of unique words

    Quote Originally Posted by first_jaguar View Post
    With same condition's -- if I want to get the same kind of result with with two or more cell data making a pair with one another in reference then ?
    I don't understand what you are asking.

    Found a bug in the previous code.
    Please Login or Register  to view this content.

  16. #16
    Registered User
    Join Date
    06-23-2017
    Location
    London, England
    MS-Off Ver
    2007, 2010
    Posts
    24

    Re: VBA: Multiple text and number columns. Find list and number of unique words

    Thank you very very much.

    1. I mean I want to extract same result with two ref cell instead of 1 reference as above.
    Example: say
    if there are 2 reference. 1 will make pair with 1, 1 with 2, then 2 with 1 and 2 with 2.
    If there is 3 reference then 1-1, 1-2, 1-3, 2-1, 2-2, 2-3, 3-1, 3-2, 3-3.

    2. Can I check the existence of the refs [two column for each ref like before] and giving the result ?
    Last edited by first_jaguar; 07-05-2017 at 03:55 AM.

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

    Re: VBA: Multiple text and number columns. Find list and number of unique words

    Still not sure.

    If you upload a workbook showing before/after, it would help.

  18. #18
    Registered User
    Join Date
    06-23-2017
    Location
    London, England
    MS-Off Ver
    2007, 2010
    Posts
    24

    Re: VBA: Multiple text and number columns. Find list and number of unique words

    Here it is.
    Attached Files Attached Files

  19. #19
    Registered User
    Join Date
    06-23-2017
    Location
    London, England
    MS-Off Ver
    2007, 2010
    Posts
    24

    Re: VBA: Multiple text and number columns. Find list and number of unique words

    Dear Jindon now I need to work the previous code to run in multiple sheet.

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

    Re: VBA: Multiple text and number columns. Find list and number of unique words

    It will be too much work for free forum, so I suggest you to go to Commercial Services where you will get prompt reply quickly.

  21. #21
    Registered User
    Join Date
    06-23-2017
    Location
    London, England
    MS-Off Ver
    2007, 2010
    Posts
    24

    Re: VBA: Multiple text and number columns. Find list and number of unique words

    O.K.
    with little change do the previous code can find only the matching strings only in similarly formatted output sheet ?
    Last edited by first_jaguar; 07-17-2017 at 12:32 PM.

+ 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] Find unique occurrence of names across a number of columns
    By DPJW in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-21-2016, 09:28 AM
  2. Replies: 1
    Last Post: 04-30-2015, 10:01 AM
  3. [SOLVED] Formula to count the number of unique text values from a list.
    By PritishD in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-28-2015, 05:42 AM
  4. [SOLVED] Count the number of unique items (multiple columns)
    By HJHamm in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-20-2015, 10:41 AM
  5. Replies: 5
    Last Post: 09-02-2014, 03:49 PM
  6. Replies: 1
    Last Post: 04-04-2012, 07:15 PM
  7. Find unique number in columns and return column title
    By mkvassh in forum Excel General
    Replies: 3
    Last Post: 10-21-2010, 10:29 AM

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