assume
A B
1 Ram 15
2 Sham 18
3 Rohit 10
4 Ram 10
5 Ram 12
6 Sham 8
then i want sum of marks of Ram of B column i.e
C D
Ram 37(15+10+12)
Sham 26(18+8)
Rohit 10
A B
1 Ram 15
2 Sham 18
3 Rohit 10
4 Ram 10
5 Ram 12
6 Sham 8
then i want sum of marks of Ram of B column i.e
C D
Ram 37(15+10+12)
Sham 26(18+8)
Rohit 10