scottyblaze
New Member
- Joined
- Aug 19, 2014
- Messages
- 5
Hello, I am trying to find a way to count the number of unique words in a range of cells when each cell contains numerous words. For example:
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]The dog and the cat are asleep.[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]The cat is inside.[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]The dog is outside.[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I'm looking for a way to count the unique words in the above range, which should be 9 for "The, dog, and, cat, are, asleep, is, inside, outside". I've found formulas to count unique cells, but not unique words. Ideally, I want to put this into VBA so that all I would need to do is highlight a range and run the macro.
Is this possible? Can anyone offer some assistance?
Thanks.
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]The dog and the cat are asleep.[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]The cat is inside.[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]The dog is outside.[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I'm looking for a way to count the unique words in the above range, which should be 9 for "The, dog, and, cat, are, asleep, is, inside, outside". I've found formulas to count unique cells, but not unique words. Ideally, I want to put this into VBA so that all I would need to do is highlight a range and run the macro.
Is this possible? Can anyone offer some assistance?
Thanks.