Excel counting formula

rameshppc

Board Regular
Joined
Jun 10, 2017
Messages
114
Office Version
  1. 2013
Platform
  1. Windows
[TABLE="width: 500"]
<tbody>[TR]
[TD]STUDENT NAME
[/TD]
[TD]CLASS
[/TD]
[TD]ADMISSION NUMBER
[/TD]
[TD]FEES PAID
[/TD]
[/TR]
[TR]
[TD]NAVEEN
[/TD]
[TD]LKG
[/TD]
[TD]4001
[/TD]
[TD]5000
[/TD]
[/TR]
[TR]
[TD]KANNAN
[/TD]
[TD]UKG
[/TD]
[TD]4002
[/TD]
[TD]8000
[/TD]
[/TR]
[TR]
[TD]NAVEEN
[/TD]
[TD]LKG
[/TD]
[TD]4001
[/TD]
[TD]2000
[/TD]
[/TR]
[TR]
[TD]KARTHIK
[/TD]
[TD]1 ST
[/TD]
[TD]4003
[/TD]
[TD]12000
[/TD]
[/TR]
[TR]
[TD]RAVI
[/TD]
[TD]UKG
[/TD]
[TD]4004
[/TD]
[TD]9000
[/TD]
[/TR]
</tbody>[/TABLE]

I WANT TO GENERATE A REPORT LIKE BELOW,
[TABLE="width: 500"]
<tbody>[TR]
[TD]CLASS
[/TD]
[TD]NO OF STUDENTS ADMITTED
[/TD]
[TD]TOTAL FEES PAID
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

KINDLY ADVISE FORMULA TO DO THE NEEDFUL.
 
Hi joris..

You are really great..
The formula working perfectly..
Thanks for your effort...

My report goes wrong, while the input data rows increases as below,[TABLE="width: 500"]
<tbody>[TR]
[TD]STUDENT NAME
[/TD]
[TD]CLASS
[/TD]
[TD]ADMISSION DATE
[/TD]
[TD]ADMISSION NUMBER
[/TD]
[TD]FEES PAID
[/TD]
[TD]REMARKS
[/TD]
[/TR]
[TR]
[TD]KAMAL
[/TD]
[TD]LKG
[/TD]
[TD]25/04/2018[/TD]
[TD]7001[/TD]
[TD]10,000
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]SENTHIL
[/TD]
[TD]LKG
[/TD]
[TD]25/04/2018
[/TD]
[TD]7002
[/TD]
[TD]9,000
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]KUMAR
[/TD]
[TD]1ST
[/TD]
[TD]25/04/2018
[/TD]
[TD]7003
[/TD]
[TD]11,000
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]KAMAL
[/TD]
[TD]LKG
[/TD]
[TD]26/04/2018
[/TD]
[TD]7001
[/TD]
[TD]2,000
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Row 1 student name "kamal" paying his balance fees on next day (26/04/2018)
Admission number is same, so it will not increase the number of admitted seats.
Now how do i update in the formula....
 
Upvote 0

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Hi,

It's not wise to constantly add extra criteria. Try to post your question as complete as possible!

Try this:

Book1
ABCDEFGHIJ
1STUDEN NAMECLASSADMISSION DATEADMISSION NUMBERFEES PAIDREMARKSReport
2L. NAVEENLKG25-4-2018700110000CLASSNO OF STUDENTS ADMITTEDTOTAL FEES PAID
3SENTHILLKG25-4-201870029000LKG675500
4KUMAR1 ST26-4-20187003110001 ST683000
5DINESHLKG26-4-2018700410000UKG441500
6KARANUKG26-4-2018700570005 TH249000
7MOORTHY1 ST26-4-20187006150003 RD240000
8VIGNESHLKG26-4-2018WAITING1000RTE
9NAZERLKG26-4-201870078500
10ASIF1 ST26-4-2018700814000
11KARTHIK5 TH30-4-2018700925000
12NAREN3 RD30-4-2018701020000
13SUNDAR1 ST30-4-2018701115000
14HASHINIUKG30-4-2018701211500
15LATHAUKG30-4-2018701312000
16NIRANJANLKG30-4-2018WAITING1000RTE
17KAMALUKG30-4-2018701411000
18VINAY1 ST30-4-2018701515000
19MEENALKG30-4-201870167000
20VENULKG30-4-2018701710000
21CHANDRAN1 ST30-4-2018701813000
22LAVANYA5 TH2-5-2018701924000
23MOUSHMI3 RD2-5-2018702020000
24KAMALLKG25-4-2018700110000
25SENTHILLKG25-4-201870029000
26KUMAR1ST25-4-2018700311000
27KAMALLKG26-4-201870012000
Sheet1
Cell Formulas
RangeFormula
J3=SUMPRODUCT(($B$2:$B$27=$H3)*($D$2:$D$27<>"waiting")*($E$2:$E$27))
H3{=IFERROR(INDEX($B$2:$B$27,MATCH(0,COUNTIF($H$2:H2,$B$2:$B$27),0)),"")}
I3{=SUM(--(FREQUENCY(IF($B$2:$B$27=H3,$D$2:$D$27),$D$2:$D$27)>0))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,223,714
Messages
6,174,051
Members
452,542
Latest member
Bricklin

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