+ Reply to Thread
Results 1 to 8 of 8

Group by Similar Words in Cells

  1. #1
    Registered User
    Join Date
    04-07-2017
    Location
    Santa Rosa Beach, Florida
    MS-Off Ver
    2016
    Posts
    30

    Question Group by Similar Words in Cells

    I am trying to sort and group my file list based on text included in the cell so that all the cells with a word are grouped together.

    I am trying to organize archived files for a construction business. I have a long list of where over 2000 physical files are located. I now want to go thru the files and put all of the different files for a property together. I do NOT want to go thru 2000 cells and separate the names from the job numbers. My data looks like this:

    JOB# PROPERTY LOCATION
    AZ8899 Beachfront Stack 6
    AZ8899 Beachfront Stack 19
    AZ8900 INLAND Stack 65
    AZ8901 MIDWAY Stack 4
    G67890 Beachfront Stack 30
    AZ0007 MIDWAY Stack 48
    G62247 INLAND Stack 9

    The job number and property address/name are in one cell. The location is in the next cell. There are over 2000 Job#/Property Listings that cover about 1500 different properties. If we go to a property multiple times or do multiple jobs at it, we generate a different Job number each time based on the date we do it and what we do. So Beachfront can have 34 different job numbers. Each Job#/Property has at least one location, but can have more. If someone took part of the file and did not return it, there is going to be two locations for the same file. The job numbers are only ever used once. AZ8899 only appears with Beachfront. I have no idea which jobs have multiple numbers or locations.

    I want a list that has all the same properties grouped together, regardless of the job numbers, with their correct locations. I know how to sort based on the job numbers and/or the locations. I cannot figure out how to tell the sort to look for the Property info only and sort into groups based on that.
    AZ8899 Beachfront Stack 6
    AZ8899 Beachfront Stack 19
    G67890 Beachfront Stack 30
    AZ8900 INLAND Stack 65
    G62247 INLAND Stack 9
    AZ8901 MIDWAY Stack 4
    AZ0007 MIDWAY Stack 48

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Group by Similar Words in Cells

    Hi, welcome to the forum

    May be a stupid question, but have you tried a simple Sort for this?

    If this doesnt work, I suggest that you upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    04-07-2017
    Location
    Santa Rosa Beach, Florida
    MS-Off Ver
    2016
    Posts
    30

    Re: Group by Similar Words in Cells

    That is my question. How do I run the sort? I can FIND all of the Beachfront properties, but I would have to run 1500 separate FINDs. The property names are in the same cell as the job #s, and the job #s all start with a two letter sequence, so I cannot run a simple alphabet sort bc that just organizes by the first two letters in the job numbers.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Group by Similar Words in Cells

    Go to Data/Sort (the 1 with the box), then select the column you need (B?)

    oops didnt read post 3 properly
    upload a sample please

  5. #5
    Registered User
    Join Date
    04-07-2017
    Location
    Santa Rosa Beach, Florida
    MS-Off Ver
    2016
    Posts
    30

    Re: Group by Similar Words in Cells

    I tried to post a sample. The top is a sample of the huge list I have. The bottom is what I want (but with all the like entries together. The one VDM seems to have gotten out of line).
    Attached Files Attached Files

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Group by Similar Words in Cells

    Try using a helper column. I put this in G17 and copy dowen...
    =MID(A17,FIND(" ",A17)+1,99)
    Then sort based on the helper

  7. #7
    Registered User
    Join Date
    04-07-2017
    Location
    Santa Rosa Beach, Florida
    MS-Off Ver
    2016
    Posts
    30

    Re: Group by Similar Words in Cells

    That is cool! I can definitely make that work.

    Thanks much!!!!

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Group by Similar Words in Cells

    Awesome, happy to help

+ 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] counting occurrence of specific words in another group of words
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-02-2021, 07:33 PM
  2. [SOLVED] Similar words marking
    By makinmomb in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-20-2016, 04:16 PM
  3. Macro to group sum of similar cells
    By jamer02 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-27-2013, 05:51 PM
  4. [SOLVED] matching to similar words into one, how to implement this?
    By banidnigo in forum Excel General
    Replies: 3
    Last Post: 07-10-2012, 03:51 PM
  5. VBA to group similar records
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-02-2012, 03:21 AM
  6. Deleting multiple similar words...?
    By silveraden in forum Excel General
    Replies: 3
    Last Post: 10-03-2007, 03:15 AM
  7. How can I hide the words of a cell (or a group of cells)...
    By Octavio in forum Excel - New Users/Basics
    Replies: 15
    Last Post: 01-22-2006, 03:55 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