Skip to Content
author's profile photo Former Member
Former Member

Calculating Word Count

Hello,

Does anyone know a formula for calculating word count pulled from a specific text column from a SQL database into crystal?

Thanks.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 07, 2008 at 03:57 AM

    You could do this.

    Len("Text String")

    Returns 11. The blank space between "Text" and "String" is counted as a character.

    so len () / 5 will give you a guestimate of the number of words (this would count spaces also) if you dont want the spaces, you will need to remove them and then divide the new length by 5 ( 5 is the average word length in most cases)

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.