Countif Horizontal with multiple criteria

Rick__

New Member
Joined
Mar 18, 2016
Messages
20
Hi,

I wondered if you could help as I've had a look on here and couldn't find how to do this exactly

I need you count how many part number are in a row based on a multiple criteria, as you can see below the multiple criteria below, as you can see in the example below 111256 & 365446 are counted in the row of data and it returns the number of times it appears.


Multiple criteria


<tbody>
[TD="class: xl65"]Cell A[/TD]

[TD="class: xl65, align: right"] 111256
[/TD]

[TD="class: xl65, align: right"] 365446
[/TD]

[TD="class: xl65, align: right"]156489[/TD]

[TD="class: xl65, align: right"]186878[/TD]

[TD="class: xl65, align: right"]546844[/TD]

</tbody>

Data that needs to be counted

[TABLE="width: 320"]
<tbody>[TR]
[TD="class: xl66, width: 64"]A[/TD]
[TD="class: xl66, width: 64"]B[/TD]
[TD="class: xl66, width: 64"]C[/TD]
[TD="class: xl66, width: 64"]D[/TD]
[TD="class: xl66, width: 64"]E[/TD]
[/TR]
[TR]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"]COUNTIF[/TD]
[/TR]
[TR]
[TD="class: xl65"]111256
[/TD]
[TD="class: xl65"]365446
[/TD]
[TD="class: xl65"]1648976[/TD]
[TD="class: xl65"]464631[/TD]
[TD="class: xl66"]2
[/TD]
[/TR]
</tbody>[/TABLE]

Thank you in advance
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Hi, something like this maybe..


Excel 2013/2016
ABCDE
1Cell A
2111256
3365446
4156489
5186878
6546844
7
8COUNTIF
911125636544616489764646312
Sheet2
Cell Formulas
RangeFormula
E9=SUMPRODUCT(COUNTIFS(A9:D9,A2:A6))
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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