FeedBack Sentence Extractor in Excel

sanket_sk

Board Regular
Joined
Dec 27, 2016
Messages
140
Office Version
  1. 365
Platform
  1. Windows
Hi Fluff,

Creating a new thread for feedback extractor.

Although the below solution works very well, however, is it extracting only common words, Please help me build VBA code that will help extract common sentences with intervention counts in descending order..

Example...

  1. “Power problem-solve” -100
  2. “Cleaning done” – 96
  3. “Feature Explanation”- 87…. And so on


Currently available code

Sub sanket_sk()

Dim Cl As Range

Dim Dic As Object

Dim Sp As Variant

Dim i As Long



Set Dic = CreateObject("scripting.dictionary")

With Sheets("Sheet1")

For Each Cl In .Range("D2", .Range("D" & Rows.Count).End(xlUp))

Sp = Split(Cl.Value, " ")

For i = 0 To UBound(Sp)

Dic.Item(Sp(i)) = Dic.Item(Sp(i)) + 1

Next i

Next Cl

End With

Sheets("Sheet2").Range("A2").Resize(Dic.Count, 2).Value = Application.Transpose(Array(Dic.Keys, Dic.Items))

End Sub

Thanks & Regards,

Sanket
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,021
Latest member
Mohamed Magdi Tawfiq Emam

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