+ Reply to Thread
Results 1 to 7 of 7

Find repeats and join them

  1. #1
    Forum Contributor
    Join Date
    12-24-2016
    Location
    London
    MS-Off Ver
    2013
    Posts
    153

    Find repeats and join them

    Hello gurus,

    Please help with one macro - it should be able to compare within row 3, if text in column 3 equal to 4, to 5, 6... to 38, then text in column 4 equal to column 5, 6...38, ...and last step if text in column 37 is equal to 38. If the text matches, then return the corresponding value from row 4 (number X= number Y).

    Problem is that in case of iterating and comparing text by columns (left to right) I will get list of all repeating entries (7=13, 7=35, 13=35) , but in reality i need to join all repeats in one sentences (look in enclosed example file: "7=13=35")

    P.S content of row 4 always fixed, but content of row 3 will vary.

    Would be appriciated for any input.

    Thx a lot!
    Attached Files Attached Files

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

    Re: Find repeats and join them

    Only my guess.
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    12-24-2016
    Location
    London
    MS-Off Ver
    2013
    Posts
    153

    Re: Find repeats and join them

    Thx a lot, it is working! Just last question: how to list all entries to the cells, and not via message box?

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

    Re: Find repeats and join them

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    12-24-2016
    Location
    London
    MS-Off Ver
    2013
    Posts
    153

    Re: Find repeats and join them

    and finally last question - if i have counter for output rows, then how this sentence should look like?
    If .Count Then [f_i] = Join(.items, vbLf)

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

    Re: Find repeats and join them

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    12-24-2016
    Location
    London
    MS-Off Ver
    2013
    Posts
    153

    Re: Find repeats and join them

    perfecto, +1 to your carma

+ 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. Cannot find a header when value repeats in a column
    By kueva14 in forum Excel General
    Replies: 5
    Last Post: 06-18-2020, 04:55 PM
  2. Replies: 5
    Last Post: 07-21-2015, 04:49 PM
  3. Replies: 1
    Last Post: 11-15-2013, 10:59 AM
  4. Two Lists Join - But 1st list is index and 2nd list repeats
    By BradCrawford in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-31-2013, 12:48 AM
  5. Replies: 6
    Last Post: 12-09-2012, 09:00 PM
  6. Replies: 2
    Last Post: 02-08-2012, 06:51 AM
  7. Formulae for: 4 most repeats,4 least repeats in a series of numbers
    By Sedge in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-02-2010, 04:56 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