Function to count numbers
Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Function to count numbers
Thanks Thanks: 0 Likes Likes: 0

  1. #11
    New Member
    Join Date
    Aug 2019
    Post Thanks / Like
    0 Post(s)
    0 Thread(s)

    Default Re: Function to count numbers

    Quote Originally Posted by Joe4 View Post
    That is exactly what my formula already does.

    Look at your previous example:

    Do you see that only one of those records meets that criteria? There is only one non-zero number that has 2 decimal places or less.

    Also note that you need to be careful when it comes to checking decimal places. The formulas will check their ACTUAL values, not necessarily the DISPLAYED values.
    For example, if you enter this in any cell:
    it will show you:

    Now, if you format the cell to show two decimal places, it will return:
    However, the REAL value has more decimal places, and the formula will look at that, not the displayed value.

    If you remove all formatting and just set the Format to "General", you will see the real value the cell hold.
    So be aware of this with your formulas.

    If you wanted the real value in the cell to only hold two decimal places, you would need to use the ROUND function, i.e.
    or change the "Precision as Displayed" setting.

    Hi Joe,

    Thank you the round function worked, now it is giving me the correct result.

    Thank you so much for your help.


  2. #12
    MrExcel MVP
    Junior Admin
    Joe4's Avatar
    Join Date
    Aug 2002
    Post Thanks / Like
    54 Post(s)
    11 Thread(s)

    Default Re: Function to count numbers

    You are welcome.
    1. Use the built-in Help that comes with Excel/Access
    2. Use the Search functionality on this board
    3. A lot of VBA code can be acquired by using the Macro Recorder.

    "Give a man a fish, feed him for a day. Teach a man to fish, feed him for life!"

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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