Reputation: 277
I used =INT(H4:I15)=H4:I15
to return a table of TRUE and FALSE if a number is an integer or not
And =COUNTIF(J4:K15,TRUE)
to count how many return TRUE
I was wondering if there's any way around this so I don't have 2 columns with TRUE and FALSES in my sheet
Upvotes: 0
Views: 353
Reputation: 14590
You can SUM
across Boolean responses which can help to simplify the equation using the logic you already created to identify ints
=SUM(--(INT(A1:A12)=A1:A12))
Upvotes: 2