+ Reply to Thread
Results 1 to 4 of 4

Word Count with Double Spaces

  1. #1
    Registered User
    Join Date
    05-17-2019
    Location
    California
    MS-Off Ver
    2016
    Posts
    19

    Word Count with Double Spaces

    I need a word count where anything over 280 words is flagged. I am copying the words from the online exam and pasting into excel but the formatting is disrupted and there are extra spaces between lines and before sentences, as well as extra characters that did not translate (the cross and the bar). If you can help me get a more accurate word count by editing the formula that I have, that would be great.

    When I paste the words into MS word I get a different word count (often much lower, ~10 words). I inserted a comments in some cells (C3, C15) with what the word count was in MS Word.
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: Word Count with Double Spaces

    In C3 you could change your formula to this:

    =LEN(TRIM(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(B3,".",""),",",""),"-",""),"+",""),"/",""),"\",""),CHAR(10),"")))-LEN(TRIM(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(B3,".",""),",",""),"-",""),"+",""),"/",""),"\","")," ",""),CHAR(10),"")))+1

    which will then agree with the word count in Word. Note that you had " " in most of your SUBSTITUTE functions, and your TRIM function was not acting on the sentences after making all the changes. Also, you had not accounted for the line-feed character (CHAR(10) ).

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    05-17-2019
    Location
    California
    MS-Off Ver
    2016
    Posts
    19

    Re: Word Count with Double Spaces

    Thank you! I checked and it looks like it is working perfectly now.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: Word Count with Double Spaces

    Glad to help - thanks for the rep.

    Pete

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 9
    Last Post: 12-31-2018, 01:29 PM
  2. [SOLVED] Replacing double spaces with single spaces
    By EdWoods in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 04-15-2013, 01:20 AM
  3. Adding double pipes between spaces in a cell
    By ExcelFormulas in forum Excel General
    Replies: 3
    Last Post: 10-15-2012, 07:53 PM
  4. Word count with spaces
    By iamreese in forum Word Formatting & General
    Replies: 2
    Last Post: 11-16-2011, 06:54 AM
  5. Replace 'Double or Triple Spaces
    By hardeep.kanwar in forum Word Formatting & General
    Replies: 2
    Last Post: 07-19-2010, 02:30 AM
  6. Count how many certain word appears with spaces
    By micko_escalade in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-23-2007, 01:56 AM
  7. [SOLVED] Replace double spaces with Hard return
    By Ket in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-27-2006, 10:15 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1