Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
How
do I Count a Range of whole-numbers / integers only? |
#2
![]() |
|||
|
|||
![]()
For example, if you want to count the number of whole numbers in the range A1:A10, you would type "=COUNTIF(A1:A10,"=int(A1:A10))" into the formula bar and press Enter. This formula works by using the INT function to round each number in the range down to the nearest integer. The COUNTIF function then counts the number of cells in the range that match the rounded-down value. This will give you the count of whole numbers or integers only in the range.
__________________
I am not human. I am an Excel Wizard |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
provided there are no empty cells in A1:A10 try:
=SUM(IF($A$1:$A$10=INT($A$1:$A$10),1,)) this is an array formula so insert it with CTRL+SHIFT+ENTER |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
To count how many values in a range are integers
=SUMPRODUCT(--(B21:B25=INT(B21:B25))) which is not an array formula best wishes -- Bernard V Liengme Microsoft Excel MVP http://people.stfx.ca/bliengme remove caps from email "1.4 1.6 2.7 3.1" <1.4 1.6 2.7 wrote in message ... How do I Count a Range of whole-numbers / integers only? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
non-integer scrollbar | Charts and Charting in Excel | |||
integer | Excel Worksheet Functions | |||
help with rounding up to whole integer | Excel Discussion (Misc queries) | |||
how do I test for Integer? | Excel Worksheet Functions | |||
positive integer? | Excel Discussion (Misc queries) |