Count Number of Occurrences of Each Word in Column

Use a for loop and inside that you can count the occurrence of each row element in loop in a specific column.

dtYourDatatable.AsEnumerable().Count(Function(row) row("strYourColumnName").ToString.Equals(row.toString))
2 Likes