Hi NBVC,
You kindly gave me the formula "=COUNT(1/FREQUENCY(IF(TRIM(MID(SUBSTITUTE(" "&A1," ",REPT(" ",100)),ROW($A$1:$A$100)*100,100))<>"",MATCH(TRIM(MID(SUBSTITUTE(" "&A1," ",REPT(" ",100)),ROW($A$1:$A$100)*100,100)),TRIM(MID(SUBSTITUTE(" "&A1," ",REPT(" ",100)),ROW($A$1:$A$100)*100,100)),0)),ROW($A$1:$A$100)))" to count the nr of non-repeated words in a cell.
Thanks a lot! But I did not make it clear that sometimes a word can be repeated more than once. Using real data, in cell A1 I have "um a pink circle with a line across it rolled across the grey rectangle and um nudge the blue square to the end of the grey rectangle", by using the fomula, I got 21. Actually, the number should be 19, because "the" has appeared four times in stead of twice.
Btw, the maximum of of words in a cell for my data is 500.
Could you please tell me how to deal with it? I really need it to be done for my project.
Thanks,
mxc668
Bookmarks