Hi everyone!
I am looking for a solution to a problem that I have, and I hope someone here can help me out!
My issue is that I have a long column containing questions in text, some the same and some different, (at the moment 800 rows in a single column) with strings with more than 255 characters, where I would like to identify whether some of the questions are repeated, and if they are repeated how many times are they repeated. The aim is to identify certain trends within the question, if some questions are asked more often than others etc.
The problem is that they are not completely identical, some strings might vary with a "." or space etc. As I am working in the desktop version of Excel / Power BI, I am not able to use the Fuzzy/cluster functions in BI.
As the strings exceed 255 characters, I am not even able to use conditional formatting with highlight duplicates to find the exact matches.
I have found a VBA solution somewhere on this side in a thread, (sorry for no credits), that can highlight exact duplicates, but I still don't have the number of identical matches.
Does any of you have a solution to this problem?
Thanks in advance!!
I am looking for a solution to a problem that I have, and I hope someone here can help me out!
My issue is that I have a long column containing questions in text, some the same and some different, (at the moment 800 rows in a single column) with strings with more than 255 characters, where I would like to identify whether some of the questions are repeated, and if they are repeated how many times are they repeated. The aim is to identify certain trends within the question, if some questions are asked more often than others etc.
The problem is that they are not completely identical, some strings might vary with a "." or space etc. As I am working in the desktop version of Excel / Power BI, I am not able to use the Fuzzy/cluster functions in BI.
As the strings exceed 255 characters, I am not even able to use conditional formatting with highlight duplicates to find the exact matches.
I have found a VBA solution somewhere on this side in a thread, (sorry for no credits), that can highlight exact duplicates, but I still don't have the number of identical matches.
VBA Code:
Option Explicit
Option Base 1
Sub FindDuplicate()
Dim MyRg()
Dim I As Long, II As Long, J As Long
Dim DupliFlag As Boolean
MyRg = Selection
For I = 1 To UBound(MyRg, 1) - 1
For II = I + 1 To UBound(MyRg, 1)
For J = 1 To UBound(MyRg, 2)
If (MyRg(I, J) <> MyRg(II, J)) Then
DupliFlag = False
Exit For
Else
DupliFlag = True
End If
Next J
If (DupliFlag) Then
Selection.Cells(I, 1).EntireRow.Cells.Interior.ColorIndex = 19
Selection.Cells(II, 1).EntireRow.Cells.Interior.ColorIndex = 19
DupliFlag = False
End If
Next II
Next I
End Sub
Does any of you have a solution to this problem?
Thanks in advance!!