Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
"Toppers" wrote...
=COUNTIF(A2:A1000,""&B2)-COUNTIF(A2:A1000,""&C2) B2=401, B3=501 etc C2=500, C3=600 etc .... Classic mistake. Note that the OP's VERY FIRST data point was 500.6. However, using your intervals above, the formula for the next range using your formula above would be =COUNTIF(A2:A1000,""&B3)-COUNTIF(A2:A1000,""&C3) which would be equivalent to =COUNTIF(A2:A1000,"501")-COUNTIF(A2:A1000,"600") So both your original formula and my extension of it to the next interval would skip the value 500.6. It would have been safer to use just one set of bounds B2: 400 B3: 500 B4: 600 and formulas like =COUNTIF(DATA,""&B2)-COUNTIF(DATA,""&B3) =COUNTIF(DATA,""&B3)-COUNTIF(DATA,""&B4) The second of these would include 500.6 in its count. I really doubt the OP would have wanted to exclude data points for which 0 < MOD(x,100) < 1. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
countif for multiple ranges and criteria | Excel Discussion (Misc queries) | |||
Using Multiple, Noncontiguous Ranges in COUNTIF? | Excel Discussion (Misc queries) | |||
COUNTIF() With multiple ranges and variables | Excel Discussion (Misc queries) | |||
COUNTIF with multiple disjoint ranges, same criteria | New Users to Excel | |||
COUNTIF Statement with Multiple Conditions in Different Ranges | Excel Worksheet Functions |