In the previous post, we learnt about LEFT, MID, RIGHT, FIND and SUBSTITUTE function of Excel. In this post we shall learn how to count the number of words in a cell of Excel worksheet.
Let's solve this problem three simple step.
To count the total length of string we shall use the LEN function of Excel. In D3 cell we have written '=LEN(TRIM(C3))' function that first trims any space before and after the cell data and then gives the length of the string.
To count the length of the string without space, we have entered '=LEN(SUBSTITUTE(C3, " ", ""))' formula in E3 cell that first replaces the " " (blank space) with "" (nothing) and then counts the length of string.
Now deduct the length of string without space from the total length of string and add 1. Here is the correct word count in F3 cell (formula '=D3-E3 + 1').
Copy-paste the same formula to other cells and below is the result.
Views: 4431 | Post Order: 24