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. :)
 
I think I do.

When I first tested it on the small sample the OP gave, It gave the desired result, but then when I looked into why she was not getting the same result, I noticed that the formula only matched the first reference, ie AB1234. Obviously, that's wrong, but I didn't have enough variety in my sample to get the correct result.

I was going to suggest the sumproduct at first, but I thought the original formula was working after using the CSE combo. That's why I ended up suggesting the Sumproduct formula.

I guess I learned too. Those array formulas are confusing sometimes.
 
Upvote 0

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
NBVC said:
I think I do.

I don't think you do.

When I first tested it on the small sample the OP gave, It gave the desired result, but then when I looked into why she was not getting the same result, I noticed that the formula only matched the first reference, ie AB1234. Obviously, that's wrong, but I didn't have enough variety in my sample to get the correct result.

...

No. What it does is to create an array of occurrence frequencies involving all of the criteria something like:

{2,3,1}

Entered in a single cell, the formula will only display the topleft frequency involving the first criterion in the array object it creates.
 
Upvote 0

Forum statistics

Threads
1,215,518
Messages
6,125,292
Members
449,218
Latest member
Excel Master

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