Countif(index(match row and column criteria

canuduh

New Member
Joined
Nov 12, 2013
Messages
2
I am looking for a formula to count number of instances where data >80 if the column = Name1 and row = Red
Thought it would be this formula, but it is not calculating the correct answer 2. It appears to be only pulling the 1st match in C2.

cell I1 =COUNTIF(INDEX(B2:E9,MATCH(H1,A2:A9,0),MATCH(G1,B1:E1,0)),">80")



Sheet1

*ABCDEFGHI
1Name2Name1Name4Name3_RedName12
2Red27904147___
3Blue41642794___
4Orange69152877___
5Red82801814___
6Blue60308059___
7Yellow48208765___
8Orange72342550___
9Red56828224___
10Blue88448187___

<tbody>
</tbody>

Thanks!
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
I am looking for a formula to count number of instances where data >80 if the column = Name1 and row = Red
Thought it would be this formula, but it is not calculating the correct answer 2. It appears to be only pulling the 1st match in C2.

cell I1 =COUNTIF(INDEX(B2:E9,MATCH(H1,A2:A9,0),MATCH(G1,B1:E1,0)),">80")



Sheet1

*ABCDE
1Name2Name1Name4Name3
2Red27904147
3Blue41642794
4Orange69152877
5Red82801814
6Blue60308059
7Yellow48208765
8Orange72342550
9Red56828224
10Blue88448187

<tbody>
</tbody>

Thanks!
Hi,
Not sure if this is what you would like:

Given your data in A1.
In A15:
<style>table { }td { padding-top: 1px; padding-right: 1px; padding-left: 1px; color: black; font-size: 12pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: Calibri,sans-serif; vertical-align: bottom; border: medium none; white-space: nowrap; }.xl63 { text-align: center; }</style>
Name1Name2Name3Name4
Red3101
Blue0122
Orange0000
Yellow0001

<tbody>
</tbody>

would count occurrences of values equal and superior to 80 per color per name category.
Formula in B16 is =SUMPRODUCT(($A$2:$A$10=$A16)*($B$1:$E$1=B$15)*($B$2:$E$10>=80))
 
Last edited:
Upvote 0
I see what you did putting into a new table. Not exactly what I was trying to do by solving for each, but you did have the right idea with the formula. I was able to modify your formula a bit to solve my problem. Thank you very much for you help!!!
 
Upvote 0
I see what you did putting into a new table. Not exactly what I was trying to do by solving for each, but you did have the right idea with the formula. I was able to modify your formula a bit to solve my problem. Thank you very much for you help!!!

Thanks for the feedback
Glad you found your way.
 
Upvote 0

Forum statistics

Threads
1,215,227
Messages
6,123,738
Members
449,116
Latest member
alexlomt

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