Keyword Permutations

gimmeexcel

Board Regular
Joined
May 8, 2009
Messages
95
I'm not sure if this is possible, but...

I'm trying to create all possible permutations for a string of keywords in a ell.

For instance, Cell A1 contains: Black Air Max M200 Super Light Basketball Shoe

So that's 8 words, and I need all possible 2, 3, 4, 5, 6, 7, and 8 word combinations in EVERY possible word order.

Is it possible to do this? And what would it take to accomplish this in the most efficient manner, perhaps a built-in function?

Many thanks in advance!
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Hi njimack

Looks like this formula just counts the number of possible variations but it does not give me the actual phrases -- which I need.

Thanks anyway, though
 
Upvote 0
For eight unique words taken 2 through 8, I think there are =SUMPRODUCT(PERMUT(8,{2,3,4,5,6,7,8})) = 109,592 permutations. What would you do with them all?
 
Upvote 0
Hi shg,

Thanks for the formula. How would I input this into the worksheet to generate the combinations? Is this an array?

I'm doing this for online marketing and I'm looking to generate keyword lists based on the keywords that appear in title tags -- and then cross reference the search volumes with keyword research tools
 
Upvote 0
I wouldn't know how to do it with formulas. Do you know how to use VBA?

Why does order matter if you're looking for words?
 
Upvote 0
Well I want the words to be grouped together in phrases of varying lengths. So that's why word order does matter.

I think VBA would be the best solution. I'm hoping to get some examples

Thanks
 
Upvote 0
Surely most search engines would be able to search using OR expressions:

word1 OR word2 OR word3 ... OR word8
 
Upvote 0

Forum statistics

Threads
1,224,597
Messages
6,179,808
Members
452,944
Latest member
2558216095

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top