microsoft word number count


  1. Posts : 141
    windows 8.1 pro
       #1

    microsoft word number count


    i have a word document with many numbers in it, i would like to know is there a way to get the amount of numbers separately, similar to the word count option.
      My Computer


  2. Posts : 9,582
    Windows 8.1 Pro RTM x64
       #2

    I'm not sure about this. It could possibly be done with a macro, but I haven't got any experience of creating these.
      My Computer


  3. Posts : 295
    Windows 7 Enterprise x64
       #3

    tapuz said:
    i have a word document with many numbers in it, i would like to know is there a way to get the amount of numbers separately, similar to the word count option.
    One way to do this would be via Find. If you set Word to find ^# then it will find every digit in the document and tell you how many there are.

    However, if you want to count how many numbers (so that, for example, 456 counts as one number, not three), then it would be more difficult. You'd need to know the length of the longest number in your document. As an example, if the longest number has four digits in it, you start by counting how many three digit strings there are, then the two digit strings, then the one digit strings:

    1. Find ^#^#^# and note down the result - call it a.
    2. Find ^#^# and note down the result - call it b.
    3. Find ^# and note down the result - call it c.
    4. The total number of separate numbers is given by (c-b-a).

    Hope this helps :)

    If you're dealing with numbers with decimal points in them, it gets more complicated...
      My Computer


  4. Posts : 141
    windows 8.1 pro
    Thread Starter
       #4

    dwarf, when i got your email about a macro, i thought how would i do it (i have many macros that i wrote), and i thought of find, before i got a chance to do it, "clunkfish" already did the whole thing.

    thank you very much, have been looking for this for a very long time, and for some reason did not cross my mind the macro option.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 15:50.
Find Us