Serious help with cleaning up my list

tmssj2000

New Member
Joined
Apr 5, 2009
Messages
1
Let's say I have a list of 5 keyword phrases as below:

CellA1 guitar chords
CellA2 guitar chord
CellA3 guitar chords with scores
CellA4 guitar chords expert
CellA5 guitar chords with scores of music

The macro will begin with CellA1 and check the rest of the list (CellA2 till end of list) for any cell that contains the contents of CellA1. Once it is able to find an instance for that, it returns "YES" in CellB1. In this case, the first instance is found in CellA3 and so CellB1 returns "YES".

Next, the macro moves to CellA2 and check the rest of the list (CellA3 till end of list) for any cell that contains the contents of CellA2. CellA2 contains "guitar chord" so the macro will check CellA3 till CellA5 on whether they contain "guitar chord". In this case, CellB2 will return "NO" as there is no cell that contains "guitar chord" exactly. That means "guitar chords with scores" is a "NO" while for example "guitar chord with scores" is a "YES".

The macro then moves on to subsequent cells down ColumnA to keep on checking until the end of list.

This is just a make-up list of 5 phrases. What I require is a general macro that can handle at least 5000 phrases.
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Hello tmssj2000,

You should have checked your post at the Excel Forum before the same question posting here.

Sincerely,
Leith Ross
 
Upvote 0

Forum statistics

Threads
1,215,962
Messages
6,127,947
Members
449,412
Latest member
montand

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