Function to count numbers

shabnam14

New Member
Joined
Aug 6, 2019
Messages
9
Hello,

I need to count numbers in a column, which contains different values, example 0.00, 2.30, 1.02, 0.23 ,0.04 ,0.000042 and 2 blank cells
I am trying to use "Countifs" function to provide me the result and it is helping me by not counting "0" and blank cells, and provides me the result "5", however i want to include a condition where it doesn't count the cell which has value 0.000042 or similliar.

Hope the above explanation is clear and not confusing.

Thanks
Shab
 
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:
=1/3
it will show you:
0.333333...

Now, if you format the cell to show two decimal places, it will return:
0.33
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.
=ROUND(1/3,2)
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.


Shab
 
Upvote 0

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

Forum statistics

Threads
1,224,823
Messages
6,181,170
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top