How would you perform a count in the following field of an Excel 2003 file to determine how many rows have foreign characters?

Posted on 2013-10-14
Medium Priority
Last Modified: 2013-10-14
How would you perform a count in the following field of an Excel 2003 file to determine how many rows have foreign characters? I have attached a few sample records from my file of about 100,000 records.
Question by:zimmer9
  • 2
LVL 85

Expert Comment

by:Rory Archibald
ID: 39571043
Based on that sample, perhaps:


array-entered (with Ctrl+Shift+Enter). Adjust the A1:A9 range to suit.
LVL 54

Accepted Solution

Rgonzo1971 earned 2000 total points
ID: 39571050

pls try this UDF in an helper's column

Function fIsAsciiGreaterThan127(strText As String) As Integer

fIsAsciiGreaterThan127 = 0

For Idx = 1 To Len(strText)
    ch = Mid(strText, Idx, 1)
    If Asc(ch) > 127 Then
        fIsAsciiGreaterThan127 = 1
    End If

End Function

Open in new window

LVL 85

Expert Comment

by:Rory Archibald
ID: 39571078
Please ignore my previous suggestion - I forgot that CHAR doesn't always create the same character that is returned by CODE!

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question