Excel conditional count -


maybe asked before, cant describe in few tags/words.

i newbie excel.

how can countif cells in column on condition other simple comparison? example "count cell if contains data point other cell equal something", without additional temp columns ofc , vba.

related question: possible set logic function during sum in range, return added value on given cell ? example if cell contains 5 add 9 total sum otherwise -3.

actually, countif function can use formulae reference such less than, greater than, on.. please refer excel (f1).

examples:

=countif(c4:c26,a1)

the above code means count range cells in c4:c26 "equal to" value in cell a1

=countif(c4:c26,"<0.2")

the above code means count range values less 0.20

=countif(c4:c26,"<"&a1)

the above code means count range values less value in cell a1.

with regards next question, can use simple if function combination countif function such that:

=if(countif(a1:a5,5)>=1,sum(a1:a5)+9,sum(a1:a5)-3)

cheers.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -