I have a table like below and I want to count only those rows with an "x" under any of the three column headings (the answer is 3 in this example).
<table border="0" cellpadding="0" cellspacing="0" width="294"><colgroup><col style="mso-width-source:userset;mso-width-alt:3730;width:77pt" width="102"> <col style="width:48pt" span="3" width="64"> </colgroup><tbody><tr style="height:11.25pt" height="15"> <td class="xl25" style="height:11.25pt;width:77pt" height="15" width="102"> <table border="0" cellpadding="0" cellspacing="0" width="294"><colgroup><col style="mso-width-source:userset;mso-width-alt:3730;width:77pt" width="102"> <col style="width:48pt" span="3" width="64"> </colgroup><tbody><tr style="height:11.25pt" height="15"> <td class="xl26" style="height:11.25pt;width:77pt" height="15" width="102">
</td> <td class="xl27" style="width:48pt" width="64">Clean</td> <td class="xl27" style="border-left:none;width:48pt" width="64">Water</td> <td class="xl27" style="border-left:none;width:48pt" width="64">Food</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl25" style="height:12.75pt" height="17">Dog</td> <td class="xl28" style="border-top:none;border-left:none">
</td> <td class="xl28" style="border-top:none;border-left:none">
</td> <td class="xl28" style="border-top:none;border-left:none">x</td> </tr> <tr style="height:11.25pt" height="15"> <td class="xl25" style="height:11.25pt;border-top:none" height="15">Cat</td> <td class="xl28" style="border-top:none;border-left:none">
</td> <td class="xl28" style="border-top:none;border-left:none">
</td> <td class="xl28" style="border-top:none;border-left:none">
</td> </tr> <tr style="height:11.25pt" height="15"> <td class="xl25" style="height:11.25pt;border-top:none" height="15">Lion</td> <td class="xl28" style="border-top:none;border-left:none">x</td> <td class="xl28" style="border-top:none;border-left:none">x</td> <td class="xl28" style="border-top:none;border-left:none">
</td> </tr> <tr style="height:11.25pt" height="15"> <td class="xl25" style="height:11.25pt;border-top:none" height="15">Bear</td> <td class="xl28" style="border-top:none;border-left:none">x</td> <td class="xl28" style="border-top:none;border-left:none">
</td> <td class="xl28" style="border-top:none;border-left:none">x</td> </tr> </tbody></table></td><td class="xl27" style="width:48pt" width="64">
</td><td class="xl27" style="border-left:none;width:48pt" width="64">
</td><td class="xl27" style="border-left:none;width:48pt" width="64">
</td></tr><tr style="height:12.75pt" height="17"><td class="xl28" style="height:12.75pt" height="17">
</td><td class="xl26" style="border-top:none;border-left:none">
</td><td class="xl26" style="border-top:none;border-left:none">
</td><td class="xl26" style="border-top:none;border-left:none">
</td></tr><tr style="height:11.25pt" height="15"><td class="xl28" style="height:11.25pt;border-top:none" height="15">
</td><td class="xl26" style="border-top:none;border-left:none">
</td><td class="xl26" style="border-top:none;border-left:none">
</td><td class="xl26" style="border-top:none;border-left:none">
</td></tr><tr style="height:11.25pt" height="15"><td class="xl28" style="height:11.25pt;border-top:none" height="15">
</td><td class="xl26" style="border-top:none;border-left:none">
</td><td class="xl26" style="border-top:none;border-left:none">
</td><td class="xl26" style="border-top:none;border-left:none">
</td></tr><tr style="height:11.25pt" height="15"><td class="xl28" style="height:11.25pt;border-top:none" height="15">
</td><td class="xl26" style="border-top:none;border-left:none">
</td><td class="xl26" style="border-top:none;border-left:none">
</td><td class="xl26" style="border-top:none;border-left:none">
</td></tr></tbody></table>Countif won't work as that returns all cell values that have "x", and I want rows. I don't want to add a helper column either. I want answer to be self contained to one cell formula.
I am sure there is an array way of doing this, I just can't figure it out.
<table border="0" cellpadding="0" cellspacing="0" width="294"><colgroup><col style="mso-width-source:userset;mso-width-alt:3730;width:77pt" width="102"> <col style="width:48pt" span="3" width="64"> </colgroup><tbody><tr style="height:11.25pt" height="15"> <td class="xl25" style="height:11.25pt;width:77pt" height="15" width="102"> <table border="0" cellpadding="0" cellspacing="0" width="294"><colgroup><col style="mso-width-source:userset;mso-width-alt:3730;width:77pt" width="102"> <col style="width:48pt" span="3" width="64"> </colgroup><tbody><tr style="height:11.25pt" height="15"> <td class="xl26" style="height:11.25pt;width:77pt" height="15" width="102">
</td> <td class="xl27" style="width:48pt" width="64">Clean</td> <td class="xl27" style="border-left:none;width:48pt" width="64">Water</td> <td class="xl27" style="border-left:none;width:48pt" width="64">Food</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl25" style="height:12.75pt" height="17">Dog</td> <td class="xl28" style="border-top:none;border-left:none">
</td> <td class="xl28" style="border-top:none;border-left:none">
</td> <td class="xl28" style="border-top:none;border-left:none">x</td> </tr> <tr style="height:11.25pt" height="15"> <td class="xl25" style="height:11.25pt;border-top:none" height="15">Cat</td> <td class="xl28" style="border-top:none;border-left:none">
</td> <td class="xl28" style="border-top:none;border-left:none">
</td> <td class="xl28" style="border-top:none;border-left:none">
</td> </tr> <tr style="height:11.25pt" height="15"> <td class="xl25" style="height:11.25pt;border-top:none" height="15">Lion</td> <td class="xl28" style="border-top:none;border-left:none">x</td> <td class="xl28" style="border-top:none;border-left:none">x</td> <td class="xl28" style="border-top:none;border-left:none">
</td> </tr> <tr style="height:11.25pt" height="15"> <td class="xl25" style="height:11.25pt;border-top:none" height="15">Bear</td> <td class="xl28" style="border-top:none;border-left:none">x</td> <td class="xl28" style="border-top:none;border-left:none">
</td> <td class="xl28" style="border-top:none;border-left:none">x</td> </tr> </tbody></table></td><td class="xl27" style="width:48pt" width="64">
</td><td class="xl27" style="border-left:none;width:48pt" width="64">
</td><td class="xl27" style="border-left:none;width:48pt" width="64">
</td></tr><tr style="height:12.75pt" height="17"><td class="xl28" style="height:12.75pt" height="17">
</td><td class="xl26" style="border-top:none;border-left:none">
</td><td class="xl26" style="border-top:none;border-left:none">
</td><td class="xl26" style="border-top:none;border-left:none">
</td></tr><tr style="height:11.25pt" height="15"><td class="xl28" style="height:11.25pt;border-top:none" height="15">
</td><td class="xl26" style="border-top:none;border-left:none">
</td><td class="xl26" style="border-top:none;border-left:none">
</td><td class="xl26" style="border-top:none;border-left:none">
</td></tr><tr style="height:11.25pt" height="15"><td class="xl28" style="height:11.25pt;border-top:none" height="15">
</td><td class="xl26" style="border-top:none;border-left:none">
</td><td class="xl26" style="border-top:none;border-left:none">
</td><td class="xl26" style="border-top:none;border-left:none">
</td></tr><tr style="height:11.25pt" height="15"><td class="xl28" style="height:11.25pt;border-top:none" height="15">
</td><td class="xl26" style="border-top:none;border-left:none">
</td><td class="xl26" style="border-top:none;border-left:none">
</td><td class="xl26" style="border-top:none;border-left:none">
</td></tr></tbody></table>Countif won't work as that returns all cell values that have "x", and I want rows. I don't want to add a helper column either. I want answer to be self contained to one cell formula.
I am sure there is an array way of doing this, I just can't figure it out.