CountIf

Roses8

Active Member
Joined
Aug 4, 2005
Messages
348
hi, Im trying to get a formula which:

Counts IF column A1 and in row C1 match against 'Error details sheet from I14:J177'

=COUNTIF('Error Details'!I14:J1715,A1:C2)

I can't seem to ge the desired result...

Error details sheet

Column I column J

AB1234 CITI
AB1235 JPM
AB1234 CITI

Error Talley Sheet

A1 = AB1234
C1 = CITI

the result should = 2

Thanks. :)
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Try evaluating your formula with CTRL+SHIFT+ENTER not just ENTER
 
Upvote 0
Thanks, but that does not help at all as I still cannot see the problem with the formula.
 
Upvote 0
I used your formula and after evaluating it with the CSE combo, I got a 2.

Do you see curly brackets surrounding your formula?
 
Upvote 0
Activate the cell containing the formula and press F2, you should see the cursor at the end of the formula.

Now press CTRL, SHIFT and ENTER keys at the same time. You should get those brackets appearing and the result should be what you are looking for.
 
Upvote 0
Hi, I got a result of 3 but that did not match anything.

I need the formula to look up A2&C1 match in error details sheet then count ..

=COUNTIF('Error Details'!I14:J1715,A2&C1)

Thanks for all your help.
 
Upvote 0
Maybe then, you want?

=SUMPRODUCT(--(Error Details!I14:I1715=A2),--(Error Details!J14:J1715=C1))

Confirmed with just Enter.

Edit: Forgot the sheet name in the second argument.
 
Upvote 0
NBVC said:
Activate the cell containing the formula and press F2, you should see the cursor at the end of the formula.

Now press CTRL, SHIFT and ENTER keys at the same time. You should get those brackets appearing and the result should be what you are looking for.

You insisted on:

{=COUNTIF('Error Details'!I14:J1715,A1:C2)}

in 3 successive posts. Do you know now why this suggestion is flawed?
 
Upvote 0

Forum statistics

Threads
1,215,004
Messages
6,122,659
Members
449,091
Latest member
peppernaut

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