Excel counting formula

rameshppc

Board Regular
Joined
Jun 10, 2017
Messages
114
Office Version
  1. 2013
Platform
  1. Windows
STUDENT NAME
CLASS
ADMISSION NUMBER
FEES PAID
NAVEEN
LKG
4001
5000
KANNAN
UKG
4002
8000
NAVEEN
LKG
4001
2000
KARTHIK
1 ST
4003
12000
RAVI
UKG
4004
9000

<tbody>
</tbody>

I WANT TO GENERATE A REPORT LIKE BELOW,
CLASS
NO OF STUDENTS ADMITTED
TOTAL FEES PAID

<tbody>
</tbody>

KINDLY ADVISE FORMULA TO DO THE NEEDFUL.
 
The b10 cell out put not resulted as per the input data.

A1 = 5 and B1 = 7. These constitute the input. What is the expected output? The answer to this question is: 12.

What I'm asking is exactly this: What is your expected output, given the data you already posted.
 
Upvote 0

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
STUDEN NAMECLASSADMISSION DATEADMISSION NUMBERFEES PAIDREMARKS
L. NAVEENLKG25/4/2018700110,000
SENTHILLKG25/4/201870029,000
KUMAR1 ST26/4/2018700311,000
DINESHLKG26/4/2018700410,000
KARANUKG26/4/201870057,000
MOORTHY1 ST26/4/2018700615,000
VIGNESHLKG26/4/2018WAITING1,000RTE
NAZERLKG26/4/201870078,500
ASIF1 ST26/4/2018700814,000
KARTHIK5 TH30/4/2018700925,000
NAREN3 RD30/4/2018701020,000
SUNDAR1 ST30/4/2018701115,000
HASHINIUKG30/4/2018701211,500
LATHAUKG30/4/2018701312,000
NIRANJANLKG30/4/2018WAITING1,000RTE
KAMALUKG30/4/2018701411,000
VINAY1 ST30/4/2018701515,000
MEENALKG30/4/201870167,000
VENULKG30/4/2018701710,000
CHANDRAN1 ST30/4/2018701813,000
LAVANYA5 TH2/5/2018701924,000
MOUSHMI3 RD2/5/2018702020,000

<colgroup><col><col><col><col><col><col></colgroup><tbody>
</tbody>

<tbody>
</tbody>

Its my input data, now pls check the result of column B - "Admitted seats"
 
Upvote 0
STUDEN NAMECLASSADMISSION DATEADMISSION NUMBERFEES PAIDREMARKS
L. NAVEENLKG25/4/2018700110,000
SENTHILLKG25/4/201870029,000
KUMAR1 ST26/4/2018700311,000
DINESHLKG26/4/2018700410,000
KARANUKG26/4/201870057,000
MOORTHY1 ST26/4/2018700615,000
VIGNESHLKG26/4/2018WAITING1,000RTE
NAZERLKG26/4/201870078,500
ASIF1 ST26/4/2018700814,000
KARTHIK5 TH30/4/2018700925,000
NAREN3 RD30/4/2018701020,000
SUNDAR1 ST30/4/2018701115,000
HASHINIUKG30/4/2018701211,500
LATHAUKG30/4/2018701312,000
NIRANJANLKG30/4/2018WAITING1,000RTE
KAMALUKG30/4/2018701411,000
VINAY1 ST30/4/2018701515,000
MEENALKG30/4/201870167,000
VENULKG30/4/2018701710,000
CHANDRAN1 ST30/4/2018701813,000
LAVANYA5 TH2/5/2018701924,000
MOUSHMI3 RD2/5/2018702020,000

<colgroup><col><col><col><col><col><col></colgroup><tbody>
</tbody>

<tbody>
</tbody>

Its my input data, now pls check the result of column B - "Admitted seats"

New input. Great. What is the output which must obtain from this? What does "now pls check the result of column B - "Admitted seats"" mean?
 
Upvote 0
Hi Aladin,

Pls note, my very first post contains only a sample of data, and now post# contains actual data.

I have said, "B" column resulted "1" as per my actual data only. its wrong and Pls check it now and advise.
 
Upvote 0
Hi,

We've tried to help but we can't move forward if you don't tell us what the correct answer to your question is.
So we can't help you based on a response like:
I have said, "B" column resulted "1" as per my actual data only. its wrong and Pls check it now and advise
.

Do the following:


  1. take your sample data like you provided
  2. create the setup of your report
  3. create one line of the report with the correct answers.
  4. post it.

This will help us in understanding what you're looking for instead of leaving us guessing what the correct answer should be.

Hope this helps.
 
Last edited:
Upvote 0
STUDENT NAME
CLASS
ADMISSION DATE
ADMISSION NUMBER
FEES PAID
REMARKS
NAVEEN
LKG
25/04/2018
7001
10,000
SENTHIL
LKG
25/04/2018
7002
9,000
KUMAR
1 ST
26/04/2018
7003
11,000
DINESH
LKG
26/04/2018
7004
10,000
KARAN
UKG
26/04/2018
7005
7,000
KUMAR
1 ST
09/05/2018
7003
15,000
VIGNESH
LKG
09/05/2018
WAITING
1,000
RTE
SENTHIL
LKG
12/05/2018
7002
8,500
KUMAR
LKG
12/05/2018
7006
14,000

<tbody>
</tbody>

I AM GETTING BELOW RESULT.

S NO
CLASS
ALLOCATED SEATS
ADMITTED SEATS
BALANCE SEATS
FEES PAID
1
LKG
90
1
89
52,500
2
1 ST
90
1
89
26,000
3
UKG
90
1
89
7,000

<tbody>
</tbody>

NOW PLS ADVISE...
 
Upvote 0
Hi,

ok, this helps.
  1. The formula given previously was based on the first data sample provided. The actual data (as you named it) provided later had an extra column within;
  2. with one of your posts you've added extra criteria;
Both makes all formula's provided earlier, not useful any more.

Try this:

Book1
ABCDEFGHIJ
1STUDEN NAMECLASSADMISSION DATEADMISSION NUMBERFEES PAIDREMARKSReport
2L. NAVEENLKG25-4-2018700110000CLASSNO OF STUDENTS ADMITTEDTOTAL FEES PAID
3SENTHILLKG25-4-201870029000LKG654500
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
Sheet1
Cell Formulas
RangeFormula
I3=SUMPRODUCT(($B$2:$B$23=$H3)*($A$2:$A$23=$A$2:$A$23)*($D$2:$D$23=$D$2:$D$23)*($D$2:$D$23<>"waiting"))
J3=SUMPRODUCT(($B$2:$B$23=$H3)*($A$2:$A$23=$A$2:$A$23)*($D$2:$D$23=$D$2:$D$23)*($D$2:$D$23<>"waiting")*($E$2:$E$23))
H3{=IFERROR(INDEX($B$2:$B$23,MATCH(0,COUNTIF($H$2:H2,$B$2:$B$23),0)),"")}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,215,176
Messages
6,123,470
Members
449,100
Latest member
sktz

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