Count values in a column if it match the adjacent cell

somydelafomy

New Member
Joined
Jun 4, 2014
Messages
7
Hello,

I am building a sheet to keep track of various standards' revisions of the our industry. I would like to display the quantity of outdated standards in a welcome page but I can't get my formulas to work. I want the formula to count a cell if it matches the adjacent cell. I have tried variation of the following formula but I can't get it to work: =COUNTIF(Revision!A2:A45, "="Revision!B2:B45)

The result that it should return is 7.

[TABLE="width: 366"]
<tbody>[TR]
[TD]Owned Revision
[/TD]
[TD]Revision Available[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]1(2013)[/TD]
[TD]1(2013)[/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD]14[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]13[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]13[/TD]
[/TR]
[TR]
[TD]11B[/TD]
[TD]13D[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]14[/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]11[/TD]
[/TR]
</tbody>[/TABLE]

Thanks in advance for your assistance. Sorry if If made some English mistakes as it's not my native language and I'm still learning.
 
maybe I'm mistaken but wouldn't you want to count revisions that are not equal ?


=SUMPRODUCT(--(A2:A11<>B2:B11))
 
Upvote 0
maybe I'm mistaken but wouldn't you want to count revisions that are not equal ?


=SUMPRODUCT(--(A2:A11<>B2:B11))

It worked! Thank you so much! Been scratching my head for a while over that one... Yeah I wanted to count the revision that are not equal. I've inserted the '=' sign by mistake when I wrote it on this post. Sorry for any confusion this may have caused.

Again thanks a lot to you both! It's really appreciated.
Best regards,
-Tom
 
Upvote 0

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top