Countif, but really complicated

robgoldstein

Board Regular
Joined
Oct 26, 2013
Messages
165
Office Version
  1. 2019
Platform
  1. Windows
I have a class list with the names of students in column B and columns C,D &E are 3 kids from the list in column B they can be matched with.

In Column J I have their group they have been put into. ( values 1-4)
How can I count how many kids who put them as a potential match C10:E50 are in their group?

So their name would have appear in the kid's list and that kid would have to be in their group. So if the kid(B10) is in group 1, we would have to see how many kids in group 1 also have the name in B10 in columns C,D or E

thanks so much for your help.
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
@Eric W
I thought it was working, but it is not. It is counting the number of kids who requested that person, but it should be counting the number kids they requested that are in their group.
If you scroll down to the row 64 you can see that Alex requested Ari and Annie who are in his group, butit shows he has zero friends.
 
Upvote 0
None of the examples in this thread have a row 64. In looking at your other thread, there are some that go that far, but no row 64 seems to relate to this question. However, given your latest explanation, try:

Book1
ABCDEFGHIJK
9Current ClassSTUDENT NAMESexFriendsFriendsFriendsShould NotShould NotPertinent NotesAssigned Class (1-4)Friends
10JK101Alexander Weizmanm10
11JK104Annie Brass fAlexander WeizmanRuby Callaghan* Ari Tabesh11
12JK104Annie Klug*f20
13JK101Arbel MillerfTamar Regev*Tyler MitzAlexander Weizman11
14JK101Ari Tabeshm30
15JK101Aria Moynihanf40
16JK104Ariella Bodzin*f20
17JK104Avner Hana*m30
18JK104Brixton Steinfeld*mMax JacobsAlexander WeizmanMarlee Gorenstein*11
19JK101Celeste Poslunsf0
20JK104Daniel Zaulan-Garpenfeldtm0
Sheet3
Cell Formulas
RangeFormula
K10:K20K10=SUMPRODUCT(COUNTIFS($B$10:$B$20,D10:F10,$J$10:$J$20,J10))
 
Upvote 0
None of the examples in this thread have a row 64. In looking at your other thread, there are some that go that far, but no row 64 seems to relate to this question. However, given your latest explanation, try:

Book1
ABCDEFGHIJK
9Current ClassSTUDENT NAMESexFriendsFriendsFriendsShould NotShould NotPertinent NotesAssigned Class (1-4)Friends
10JK101Alexander Weizmanm10
11JK104Annie Brass fAlexander WeizmanRuby Callaghan* Ari Tabesh11
12JK104Annie Klug*f20
13JK101Arbel MillerfTamar Regev*Tyler MitzAlexander Weizman11
14JK101Ari Tabeshm30
15JK101Aria Moynihanf40
16JK104Ariella Bodzin*f20
17JK104Avner Hana*m30
18JK104Brixton Steinfeld*mMax JacobsAlexander WeizmanMarlee Gorenstein*11
19JK101Celeste Poslunsf0
20JK104Daniel Zaulan-Garpenfeldtm0
Sheet3
Cell Formulas
RangeFormula
K10:K20K10=SUMPRODUCT(COUNTIFS($B$10:$B$20,D10:F10,$J$10:$J$20,J10))
That did it. Thanks.
 
Upvote 0

Forum statistics

Threads
1,215,700
Messages
6,126,305
Members
449,308
Latest member
VerifiedBleachersAttendee

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