Count IF formula?

bflan0524

Board Regular
Joined
Oct 7, 2016
Messages
192
Office Version
  1. 2010
hello
I don't know if this would be a count if formula, or something else, any ideas
I have 3 columns of data that have unique ID Codes
for example
Column A Row 1: ABC
Column B Row 1: BCD
Column C Row 1: ABC

I want to show the % of time that one officer code was the same, so for this example ABC was the officer code 67% of the time
thank you
 
Last edited:
for the first one it says I am missing a (....I put one in the end but it still didn't work

It is working on my end ( please see my updated post above). The website wont let me post formula properly as it thinks "<" is a HTML tag... :/
=INDEX($A1:$C1,1,IF(COUNTIF($A1:$C1,$A1)"<"COUNTIF($A1:$C1,$B1),IF(COUNTIF($A1:$C1,$A1)"<"COUNTIF($A1:$C1,$C1),3,2),1))

Remove the "" from the "<" above before pasting in excel.


Caleeco
 
Upvote 0

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
in cell F1, place this formula to check number of changes:
=SUM(IF(A1"<>"B1,1,0),IF(B1"<>"C1,1,0))

Remove the "" from the equation before pasting into excel.

Cheers
Caleeco
 
Upvote 0
It is working on my end ( please see my updated post above). The website wont let me post formula properly as it thinks "<" is a HTML tag... :/
=INDEX($A1:$C1,1,IF(COUNTIF($A1:$C1,$A1)"<"COUNTIF($A1:$C1,$B1),IF(COUNTIF($A1:$C1,$A1)"<"COUNTIF($A1:$C1,$C1),3,2),1))

Remove the "" from the "<" above before pasting in excel.


Caleeco
does this look right? it says I have to many arguments ( I had to add something different to column A that's why the columns look a little different)
=INDEX($B2:$D2,1,IF(COUNTIF($B2:$D2,$B2)<COUNTIF($B2:$D2,$C2)<COUNTIF($B2:$D2,$B2),3,2,),1))
 
Last edited:
Upvote 0
I don't get it, the board keeps cutting my formula off, what a mess haha
 
Last edited:
Upvote 0
in cell F1, place this formula to check number of changes:
=SUM(IF(A1"<>"B1,1,0),IF(B1"<>"C1,1,0))

Remove the "" from the equation before pasting into excel.

Cheers
Caleeco

so on this one if the example showed
column A BCV, column B BSE, Column C BSE its showing a return of 2, when I would like it to show 1 because it only changed unique officers once, does that make sense
 
Upvote 0
so on this one if the example showed
column A BCV, column B BSE, Column C BSE its showing a return of 2, when I would like it to show 1 because it only changed unique officers once, does that make sense

Please check you formulas again. For the example you stated, I return a value of 1.
CODEExample.png


Cheers
Caleeco
 
Upvote 0

Forum statistics

Threads
1,215,417
Messages
6,124,777
Members
449,187
Latest member
hermansoa

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