Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

how to count words (English and Chinese together) in excel ?

Status
Not open for further replies.

sunnyfunghy

Member level 1
Joined
Aug 12, 2008
Messages
36
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,502
Example:

你當時見到嘅景象係點樣,Shadow?

Shadow->1 word

But my solution: =len(substitute(A1,",",""))-1

But it also count "shadow" as six words, not 1 word, How to solve? Please help me please:cry:
 

I don't know it this could be done directly via cell, but with VBA it is definitely possible.
Process
A)Break the cell into string array, containing your all word list.
like this:
wordSplitedarray(0) = "你當時見到嘅景象係點樣"
wordSplitedarray(1) = "shadow"


B)
[ excel work out] run a code function, to see if first starting character is returning as unicode,
will return 63 for unicode

testing with cell:
cell = code("你當時見到嘅景象係點樣") = 63!

[ VBA work out ]Run following into for each loop
check to see first character, is in range of English or not

C) this means it should not be counted as a english word
the rest is clear
Follow this, might give you ideas.
**broken link removed**
 
Last edited:

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top