travellerva
New Member
- Joined
- Mar 31, 2012
- Messages
- 47
- Office Version
- 365
- Platform
- MacOS
I'm trying to find a formula that provides a count of the number of times in two columns that the values in corresponding rows are equal. I've tried various versions of COUNTIF without success. I realise this could be done by creating a "shadow" column that flags each row that's equal, then counting that column but I don't want to add a third column - even hidden. I also don't want to do it as a macro. Many thanks for all ideas.
[TABLE="width: 195"]
<colgroup><col><col span="2"></colgroup><tbody>[TR]
[TD="colspan: 3"]Problem: What is the formula in A1 that will give the result of the number of occasions the values in a row are equal?[/TD]
[/TR]
[TR]
[TD="colspan: 2"](2 in the example below)[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]alpha[/TD]
[TD]45[/TD]
[TD]23[/TD]
[/TR]
[TR]
[TD]beta[/TD]
[TD]36[/TD]
[TD]36[/TD]
[/TR]
[TR]
[TD]gamma[/TD]
[TD]14[/TD]
[TD]25[/TD]
[/TR]
[TR]
[TD]delta[/TD]
[TD]66[/TD]
[TD]45[/TD]
[/TR]
[TR]
[TD]epsilon[/TD]
[TD]78[/TD]
[TD]78[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 195"]
<colgroup><col><col span="2"></colgroup><tbody>[TR]
[TD="colspan: 3"]Problem: What is the formula in A1 that will give the result of the number of occasions the values in a row are equal?[/TD]
[/TR]
[TR]
[TD="colspan: 2"](2 in the example below)[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]alpha[/TD]
[TD]45[/TD]
[TD]23[/TD]
[/TR]
[TR]
[TD]beta[/TD]
[TD]36[/TD]
[TD]36[/TD]
[/TR]
[TR]
[TD]gamma[/TD]
[TD]14[/TD]
[TD]25[/TD]
[/TR]
[TR]
[TD]delta[/TD]
[TD]66[/TD]
[TD]45[/TD]
[/TR]
[TR]
[TD]epsilon[/TD]
[TD]78[/TD]
[TD]78[/TD]
[/TR]
</tbody>[/TABLE]