+ Reply to Thread
Results 1 to 3 of 3

To count numbers with 4 digit/5 digit with given Range.

  1. #1
    Forum Contributor ebin charles's Avatar
    Join Date
    03-31-2010
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    255

    Thumbs up To count numbers with 4 digit/5 digit with given Range.

    Hey!!

    Can I count numbers with 4 or 5 digit in a cell?
    For eg.
    in A5 there is A5 = 4588/2566
    in A6 there is A6 = 4688/1755

    Then the answer in C15 = 4 nos

    Count numbers with 5 or 4 digit, if seperated with hypen also.
    I need how many numbers there with 5 or 4 digit with given range (eg. A2:B10).

    Regards,
    charles

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: To count numbers with 4 digit/5 digit with given Range.

    Hi Charles,

    I have solved this basis below assumptions:-

    1) These are formulas not text like ("= 4588/2566")
    2) The structure will always be either 4 digits divided by 4 digits OR 5 digits divided by 5 digits
    3) / i.e., hypen may or may not be there

    If you clarify on above, many other exceptions and complexities can be handled and I can built a dynamic formula to handle them.
    See the attached file and let me know if I am on the right track.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    Attached Files Attached Files
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: To count numbers with 4 digit/5 digit with given Range.

    In its' simplest form based on your sample
    Please Login or Register  to view this content.
    Confirm with Ctrl+Shift+Enter not just Enter
    If there are also single numbers in the range then the formula would become
    Please Login or Register  to view this content.
    However I am sure that there is more to your problem than that, best you post a sample workbook with a few examples of your data/tables.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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