Akuini
Well-known Member
- Joined
- Feb 1, 2016
- Messages
- 5,089
- Office Version
- 365
- Platform
- Windows
@CarolynV, welcome to MrExcel.
It will append a dot to the end of each cell value, thereby restricting a phrase to include only the value from a single cell.
After that, run "Sub Word_Phrase_Frequency_v1".
Run this following macro "Sub add_end_of_line".However, is there a way to limit it from running into the next cell in the column when counting occurences of phrases?
VBA Code:
Sub add_end_of_line()
'this will add a dot at the end of every cell value.
Dim va
Dim i As Long
va = Range("A1", Cells(Rows.Count, "A").End(xlUp))
For i = 1 To UBound(va, 1)
va(i, 1) = va(i, 1) & "."
Next
Range("A1").Resize(UBound(va, 1), 1) = va
End Sub
After that, run "Sub Word_Phrase_Frequency_v1".