Forum

Notifications
Clear all

Count function in two different ranges

7 Posts
4 Users
0 Reactions
67 Views
(@suhail)
Posts: 15
Eminent Member
Topic starter
 

Hi Friends

Students are paying fee in installment. That's why student name and subject is repeating in attached file. 

I want to know how many courses has taken by single student. 

I need help to put formula in column L of attached file to get the desired result.

Regards

Suhail

 
Posted : 25/11/2017 8:08 am
(@sunnykow)
Posts: 1417
Noble Member
 

Hi Suhail

See if this helps.

Please note that these are array formulas.

Sunny

 
Posted : 25/11/2017 8:29 pm
(@shaowu459)
Posts: 44
Eminent Member
 

L2=SUM((A$2:A$14=K2)/COUNTIFS(A$2:A$14,A$2:A$14,B$2:B$14,B$2:B$14))

Ctrl+shift+enter run the formula

 
Posted : 26/11/2017 9:08 am
(@shaowu459)
Posts: 44
Eminent Member
 

You may also try this

=SUM((A$2:A$14=K2)*(MATCH(A$2:A$14&B$2:B$14,A$2:A$14&B$2:B$14,)=ROW($1:$13)))

 
Posted : 26/11/2017 9:17 am
(@shaowu459)
Posts: 44
Eminent Member
 

Pivot table solution

 
Posted : 26/11/2017 9:22 am
(@fravis)
Posts: 337
Reputable Member
 

Love that last one! (The pivot table solution)

 
Posted : 26/11/2017 10:46 am
(@suhail)
Posts: 15
Eminent Member
Topic starter
 

Thanks all of you for your support

 

Regards

 

Sohail

 
Posted : 30/11/2017 4:23 am
Share: