I have 2 columns and I need the formula to read column "A" first and if it meets a certain criteria to look at column "B" and count if there's any text in the cells. See the example to show what I'm looking for. I would want the formula to look at column a for pet type (e.g. dog) and then look at owner's name (any text in that column gets counted) and give me the sum (in this case 3). I've tried a couple of things and I'm running out of time.
Example:
[TABLE="class: grid, width: 163, align: left"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]Pet Type[/TD]
[TD]Owner's Name[/TD]
[/TR]
[TR]
[TD]dog[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]dog[/TD]
[TD]John[/TD]
[/TR]
[TR]
[TD]dog[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]dog[/TD]
[TD]Jane[/TD]
[/TR]
[TR]
[TD]dog[/TD]
[TD]Dan[/TD]
[/TR]
[TR]
[TD]cat[/TD]
[TD]Mollie[/TD]
[/TR]
[TR]
[TD]cat[/TD]
[TD]Mary[/TD]
[/TR]
[TR]
[TD]cat[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]cat[/TD]
[TD]Scott[/TD]
[/TR]
[TR]
[TD]bird[/TD]
[TD]George[/TD]
[/TR]
[TR]
[TD]bird[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]fish[/TD]
[TD]Bill[/TD]
[/TR]
[TR]
[TD]fish[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]fish[/TD]
[TD]Betty[/TD]
[/TR]
</tbody>[/TABLE]
Thanks as always!
Example:
[TABLE="class: grid, width: 163, align: left"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]Pet Type[/TD]
[TD]Owner's Name[/TD]
[/TR]
[TR]
[TD]dog[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]dog[/TD]
[TD]John[/TD]
[/TR]
[TR]
[TD]dog[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]dog[/TD]
[TD]Jane[/TD]
[/TR]
[TR]
[TD]dog[/TD]
[TD]Dan[/TD]
[/TR]
[TR]
[TD]cat[/TD]
[TD]Mollie[/TD]
[/TR]
[TR]
[TD]cat[/TD]
[TD]Mary[/TD]
[/TR]
[TR]
[TD]cat[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]cat[/TD]
[TD]Scott[/TD]
[/TR]
[TR]
[TD]bird[/TD]
[TD]George[/TD]
[/TR]
[TR]
[TD]bird[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]fish[/TD]
[TD]Bill[/TD]
[/TR]
[TR]
[TD]fish[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]fish[/TD]
[TD]Betty[/TD]
[/TR]
</tbody>[/TABLE]
Thanks as always!
Last edited by a moderator: