• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

count function

giri ravirrala

New Member
hi,
i am not able to get count value at H16 cell for the selected range(H3:H15 having the range formula =IFERROR(INDEX($C$3:$C$19,MATCH(0,COUNTIF($H$2:H2,$C$3:$C$19)+($B$3:$B$19<>$G$3),0)),"")

please find the attached sheet, please help me...

regards,
giri.
 

Attachments

  • count.xlsx
    10.7 KB · Views: 2
Hi!

The problem is that your "Lot No" column H is being evaluated as text and text is not counted by COUNT().

You can replace the formula in H16 by
=COUNT(VALUE(H3:H15))

and enter it with Ctrl-Shift-Enter.

Hope it helps
Best
 
You can use the following formula:

=COUNTIF($H$3:$H$15,"*?")

This function returns 10 as output as the formula written in H3:H15 returns output for 10 cells out of total 13.

The criteria expression "*?" in Countif function counts a range that contains a formula and either returns text or "" (blanks)
 
Back
Top