How to Creating a Unique Keyword List?

John Caines

Well-known Member
Joined
Aug 28, 2006
Messages
1,155
Office Version
  1. 2019
Platform
  1. Windows
Dear Forum members,

Can anyone help me?
What I'm trying to achieve is the following;
I have a big keyword list saved in Excel.
Something like the following,
These are all keyword phrases;

car rent
car hire
cars for rent uk
etc etc etc

All listed in Column A

All phrases in Column A, and in separate rows.(1 phrase per row.)about 2000 lines (Rows) in total.
What I want to know is there any way of selecting the whole list and exporting it (To save it as another list. A list of just unique keywords??

So, It would create a list like;
car
rent
uk
hire
for
etc etc etc.

So basically I want excell to look at all the words and export them to another list showing just unique keywords, 1 per line.

This is so I can see from a huge list what all the unique keywords are.
Is there a way of doing this within Excel Now?? or has someone made a plugin ( Macro) to achieve this??
I've looked at the sort & filter options, but it doesn't appear to have this function?

Any thoughts on this would be great.
I've wanted to do this for ages and I'm a basic beginner in excel and just can't work it out.:-(

Hope someone can help.
Many Thanks
John
Many Thanks
John
 
a note

Just a quick note Jindon,

When you've written the above code you have the
.Pattern = on 1 line,,, then all that follows on the next.

But when I copy and paste it into VB it only takes it all on 1 line. I've tried to put it on 2 like you show, but it doesn't let me??
Just thought I'd mention this anyway.

Thanks
John Caines

It's 6am now. I can't get enough of this excel at the moment:-)
 
Upvote 0

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
do you know why Jindon??

Do you know why 1 cell is blank Jindon??

I kept your shorter code Jindon and ran both, screen captured part of both results to compare.

The word design in the Large code (The 1 im using now with the ignore words ) has the word design and it says it occurs 2523 times in colE.

But in the small code (Without the pattern ignore line) it occurs 2519 times????


Hope this helps

John
 
Upvote 0
lg and sm code screen shots

Lg code with the pattern ignore list in.
Look at the word design Jindon in C6 and the occurances
===================================
New Microsoft Excel Worksheet.xls
ABCDEFG
1PhrasesThatInclude:webUniqueKeywordsNo.OfAppearances%OfAppearances
2TotalPhrases:4453Total:305Total:23582
3
4
53dflashwebdesignweb453819.24%
63dflashwebdesignasiadesign252310.70%
73dflashwebdesignthailandsite19668.34%
8aecommercewebpagehosthosting13805.85%
9aecommercewebpagehostasiaasian11154.73%
NicheKWresults


================================
now the short code, look out for the same word Jindon. Different amount of occurances??
====================================
New Microsoft Excel Worksheet.xls
ABCDEFG
1PhrasesThatInclude:webUniqueKeyWordsNoOfAppearances%OfAppearances
2TotalPhrases:4453Total:321Total:23582
3
4
53dflashwebdesignweb45380.192434908
63dflashwebdesignasiadesign25190.10681876
73dflashwebdesignthailandsite19660.083368671
8aecommercewebpagehosthosting13800.05851921
9aecommercewebpagehostasiaasian11150.047281825
10aecommercewebpagehostthailandasia11130.047197015
11awebhostingwebsitedesignthailand11130.047197015
12awebhostingwebsitedesignasiaecommerce10350.043889407
NicheKWresults
 
Upvote 0
John

I think it is a control character from the text file which is invisible.

We need to get the Code number for that...

I thought the formula should get that number.
 
Upvote 0
over my head

Sorry to sound stupid Jindon,
But what you just typed,,, I really don't understand at all??

Sorry I'm not much help,, but this is all above me:-(
 
Upvote 0
text file

do uyou mean the text file the phrases are stored in Jindon.??
I'm using TextPad.

under tools/ preferences / there is quite a few preferences.
Under Editor do I have selected
"Use POSIX regular Expression Syntax"??????
Or leave this unchecked???
Will this matter??
Is this something that might affect it?? You mean in my text File???


Or is it in that large line of words to ignore in the VB code??

Sorry I'm not much help

John
 
Upvote 0
Re: reply

I typed in the code in cell D20 (Nothing was in it,, and a light blue line box appeared around Cell C14????
I clicked enter and now in Cell D20 it has a very small green triangle in the top left hand corner of the cell with #VALUE!

Can you just enter =Code(C17) in cell D20 again please?
 
Upvote 0
Re: code

John
can you just quickly run this code?
Code:
Sub CleanData()
With Sheets("AllKW")
    With .Range("a1", .Range("a" & Rows.Count).End(xlUp)).Offset(,1)
         .Formula = "clean(trim(a1))"
         .Value = .Value
    End With
    .Columns("a").Delete
End With
Call test
End Sub
 
Upvote 0
c17

I've just done what you said Jindon.
A blue box appears around the word "promotion" in cell C17.

I've then hit enter and the number 112 appears in cell D20

????????????????????????????????????//

Any ideas??
 
Upvote 0

Forum statistics

Threads
1,223,877
Messages
6,175,139
Members
452,615
Latest member
bogeys2birdies

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