I have an MS Word 2007 document in which some paragraphs are written in English and some in Russian. I'm translating the Russian parts into English, and I need to know how many characters there are in Russian, in order to write an invoice.

I tried using the Search function: I used the "language" option and "select all", but it only highlighted all Russian characters in yellow. How do I actually count the Russian characters?

The text is large, the Russian-language paragraphs are found in different parts of it, and it would be painfully slow to select them all by hand.

  • 1
    After selecting them, copy and paste them into a blank document. – Spiff Jun 13 '17 at 19:18
  • @Spiff - I chose "Russian language" in the Find dialog, then chose "Select All", but the Copy command is not available. And I cannot select them by hand, the document is huge and they are all scattered across different parts of it. So your advice does not seem to work. – CopperKettle Jul 25 '17 at 6:59

Instead of reading highlight, you can click "find in" - "main document", it'll select all occurrences, so you'll be able to copy it to a new document and count occurrences.
(or alternatively, save your document with a different name, select all English text and delete it)

Above mentioned method works only if you've set language of the document properly.

If no language is set, you can still use wildcard search:

  • open find and replace dialog
  • check "use wildcards
  • for find what enter:
    [а-яА-Я ,.\?\!]{5,255}
    (а and А are cyrillic characters too!)
    • you can include as many punctuation characters and numbers in your expression as you need.
      • some of them, like ? and ! need to be escaped: \? \!
    • 5 in the expression above is the minimum number of consecutive characters to be considered as a russian text (if set it too small (e.g. 2), then false text e.g. . will also be identified as Russian text
    • 255 is the limit in Word, as you select all occurrences anyway, it's not a problem for you
  • press "find in" / "main document" to select all occurrences

enter image description here

  • I press "Find In >> Main Document", an error message appears: "The Find field contains the wrong search template" – CopperKettle Jul 25 '17 at 7:29
  • have you copied the expression from my answer, or typed it yourself? – Máté Juhász Jul 25 '17 at 7:31
  • I copied it from your answer. Now I have just typed it myself, and it does not work either. – CopperKettle Jul 25 '17 at 8:33
  • Sometimes it's difficult to find the good formula, please try to narrow the expression to find out where your word has problem. (e.g. try [а-я], [а-я]{5,10}, [а-яА-Я]{5,10}, [а-яА-Я ,.]{5,10} ...) – Máté Juhász Jul 25 '17 at 8:45
  • It seems like there should be ; between the figures in the curly brackets, instead of the comma. Thank you for your answer! +1 now. Sorry for responding late, was busy translating. – CopperKettle Jul 25 '17 at 18:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.