As we all know, MS Excel is a very powerful tool. I try to learn a bit. The purpose of this blog is to keep my learning/findings at one place for future reference. I hope so that this could be beneficial for others as well.
Popular Posts
-
If we have a list of email addresses, like about 20,000 and we want to check if they are valid i.e. (valid format with an email id followed...
-
Excel 2010: Fuzzy Lookup Add-In (Approximate Data Match) We can use this Add-In for approximate data matching. Suppose we have two table...
-
We can make an interactive image in MS Excel. This is explained below step by step. Interactive Image means, changing of image by changi...
Contact
Email me
Need help and that also free? I like to learn this way, in case of any question or for a small task, please feel free to email me with details and example data, if required.
Tuesday, December 27, 2022
Sunday, February 27, 2022
Tuesday, February 22, 2022
Monday, February 7, 2022
Monday, January 10, 2022
Count Words Frequency in Excel using VBA; Code available Urdu/Hindi
Below is the Code
Sub Separator2()
Sheets("sheet1").Columns("B").ClearContents
Sheets("sheet1").Columns("C").ClearContents
Dim TextStrng As String
Dim Result() As String
TextStrng = Cells(1, 1).Value
TextStrng = Replace(Replace(Replace(Replace(Replace(Replace(Replace(Replace(Replace(Replace(Replace(Replace(Replace(Replace(Replace(Replace(Replace(Replace(Replace(TextStrng, ",", ""), ".", ""), ":", ""), "the ", " "), "and ", " "), " to ", " "), " of ", " "), " a ", " "), "that ", " "), " in ", " "), "said ", " "), " he ", " "), " she ", " "), " on ", " "), " for ", " "), " had ", " "), " was ", " "), " not ", " "), vbLf, "")
Result = Split(TextStrng, " ")
For i = LBound(Result()) To UBound(Result())
b = i + 1
Cells(b, 2).Value = Result(i)
Next i
Sheets("Sheet1").Columns("B").AdvancedFilter Action:=xlFilterCopy, CopyToRange:=Sheets("sheet1").Columns("C"), Unique:=True
For iCounter = 1 To WorksheetFunction.CountA(Columns(3))
Range("D" & iCounter).Value = WorksheetFunction.CountIf(Range("B:B"), Cells(iCounter, 3).Value)
Next iCounter
Worksheets("Sheet1").Sort.SortFields.Clear
Range("C:D").Sort Key1:=Range("D1"), Header:=xlNo, Order1:=xlDescending
num2 = WorksheetFunction.CountA(Columns(4))
Range("C" & 21 & ":" & "D" & num2).ClearContents
End Sub
Sunday, January 2, 2022
Subscribe to:
Posts (Atom)