+ Reply to Thread
Results 1 to 6 of 6

Word Combinations

  1. #1
    Registered User
    Join Date
    03-01-2016
    Location
    New Jersey
    MS-Off Ver
    2013
    Posts
    47

    Word Combinations

    Hoping someone can help me with this one.

    I have a column of words and I am trying to figure out all of the possible combinations that these words could be used together.

    The Column of words is

    Inspection
    Shrink-wrap
    Errata
    ISBN Sticker
    Remove Shrink-wrap

    Wondering if there is a formula to find all the possible combinations of these words, without any duplicate combinations coming up. Example. Inspection and Shrink-wrap are the same as Shrink-wrap and Inspection

    I hope this makes sense

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Word Combinations

    On a blank sheet, drop all your words in column A starting at A1 going down, no blanks.

    This macro will list all the combinations in column E.
    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    03-01-2016
    Location
    New Jersey
    MS-Off Ver
    2013
    Posts
    47

    Re: Word Combinations

    Thank you so much for this. I neglected to include that I am looking for all combinations, not just a 2 phrase combination. What should I modify in that Macro that would allow it to retrieve all possible combinations?

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Word Combinations

    I wouldn't know how to do that. In my mind, to pull pairs requires 2 loops nested inside each other. So we could write one for 3 word combinations by nesting 3 loops, and 4 words with 4 loops, but I would always need to know in advance how many words we wanted so we could write the necessary loops.

  5. #5
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Word Combinations

    Maybe :

    Please Login or Register  to view this content.
    Attached Files Attached Files
    1. I care dog
    2. I am a loop maniac
    3. Forum rules link : Click here
    3.33. Don't forget to mark the thread as solved, this is important

  6. #6
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Word Combinations

    This code gives all combinations

    Enter your words in A2:A6

    For input range Enter A2:A6

    since all combinations are required
    Enter for Minimum number of selection 1
    Enter for Maximum number of selection 5

    For delimiter Enter required delimiter (EG:,) else leave blank .

    You will get combinations from active cell down words.



    Please Login or Register  to view this content.

+ 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. Extract a word in the workbook's filename and add this word to another word
    By cyberjoad in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-25-2016, 03:54 AM
  2. [SOLVED] Searching columns for words and then returning row-word combinations
    By JonBrett in forum Excel General
    Replies: 9
    Last Post: 03-13-2014, 02:59 AM
  3. Finding possible combinations & listing the wanted combinations
    By Zoke in forum Excel Programming / VBA / Macros
    Replies: 30
    Last Post: 07-16-2012, 03:41 PM
  4. Counting specific word combinations in a range of cells
    By mchudo in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-15-2011, 09:13 AM
  5. Editing code to show common four-word combinations in a column
    By Glayva in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-07-2011, 09:06 AM
  6. Different Word Combinations
    By sighlent1 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-12-2009, 06:14 PM
  7. Extracting combinations of letters from within a word
    By vicmtl in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-27-2007, 11:25 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