excel - How to use countif and if and round in the same time -
from picture know data have mode 3.14 , value 3.14 = value 3.1 , right? whereas value 3.1 not 3.14 , include 3.05, 3.06, 3.07, 3.08, 3.09, 3.10 , 3.11 , 3.12 , 3.13 , , 3.14 right ?
the question , how let count of formula may appear known mode ?
or whats formula of "if" or "round", if want know count value of 3.05, 3.06, 3.07, 3.08, 3.09, 3.10 , 3.11 , 3.12 , 3.13 , , 3.14 selected range of data without having reduce decimal point in data column , without typing value?
i'm try =countif(a2:a22,round(mode(a2:a22),1)) , result = 1 not 6. can me?
=countif(a2:a22,"<="&3.14)-countif(a2:a22,"<"&3.05)
count equal or below 3.14, , subtract less 3.10.
to automate rounding process, go dirk suggesting , use:
=countif(a2:a22,"<"&round(mode(a2:a22),1)+0.05)-countif(a2:a22,"<"&round(mode(a2:a22),1)-0.05)
proof of concept
Comments
Post a Comment