How to count SIMILAR DATA from 1 column based on string in 2nd column

janichohan

New Member
Joined
Sep 23, 2015
Messages
13
HI GUYS I AM NEW TO THIS FORUM I AM BALDY STUCK IN MAKING FORMULA IN EXCEL 2007.
CAN ANY BODY TELL ME ?

THIS IS THE SAMPLE DATA BELOW. I WANT TO COUNT THE " MEDIUM CELL VALUES" BASED ON " DISTRICT COLUMN VALUES"

FOR EXAMPLE: IT WILL GAVE ME THE FINAL RESULT AS.

DISTRICT--> JAMSHORO HAD FOLLOWING COUNT BASED ON column MEDIUM
SINDHI ( 5 TIMES)
MIX (2 TIMES)
URDU ( 3 TIMES)

AND SAME FOR REST OF DATA ACTUALLY I WANT OT USE THIS FORMULA IN SUMMARY ITS NOT NECESSARY THAT THIS FORMULA RUNS ON EACH ROW.

CAN ANYBODY HELP ME HOW I PUT THIS THING INTO FORMULA????

S #Province
District
School AnnexGenderMedium
1SindhJamshoroGGPSGirlsSindhi
2SindhJamshoroGBPSBoysSindhi
3SindhJamshoroGPSMixSindhi
4SindhJamshoroGPSMixSindhi
5SindhJamshoroGGPSGirlsMix
6SindhJamshoroGBPSBoysMix
7SindhJamshoroGBPSBoysSindhi
8SindhJamshoroGGPSGirlsUrdu
9SindhJamshoroGPSMixUrdu
10SindhJamshoroGGPSGirlsUrdu
11SindhMatiariGBPSBoysSindhi
12SindhMatiariGPSMixMix
13SindhMatiariGPSMixSindhi
14SindhMatiariGBPSBoysSindhi
15SindhMatiariGBPSBoysSindhi
16SindhMatiariGBPSBoysMix
17SindhMatiariGGPSGirlsSindhi
18SindhMatiariGPSMixUrdu
19SindhMatiariGPSMixMix
20SindhMatiariGPSMixUrdu

<tbody>
</tbody>

<tbody>
</tbody>
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
I think this might be what you need. If you need more criteria listed other than the four listed in your example, just expand the table or consider using a Pivot Table.

[PS Please don't type in all-caps because it annoys readers.]

ABCDEFGHIJ
1S #ProvinceDistrictSchool AnnexGenderMedium
21SindhJamshoroGGPSGirlsSindhi
32SindhJamshoroGBPSBoysSindhi
43SindhJamshoroGPSMixSindhiSummary
54SindhJamshoroGPSMixSindhiDistrictMediumCount
65SindhJamshoroGGPSGirlsMixJamshoroMix2
76SindhJamshoroGBPSBoysMixSindhi5
87SindhJamshoroGBPSBoysSindhiUrdu3
98SindhJamshoroGGPSGirlsUrdu
109SindhJamshoroGPSMixUrdu
1110SindhJamshoroGGPSGirlsUrdu
1211SindhMatiariGBPSBoysSindhi
1312SindhMatiariGPSMixMix
1413SindhMatiariGPSMixSindhi
1514SindhMatiariGBPSBoysSindhi
1615SindhMatiariGBPSBoysSindhi
1716SindhMatiariGBPSBoysMix
1817SindhMatiariGGPSGirlsSindhi
1918SindhMatiariGPSMixUrdu
2019SindhMatiariGPSMixMix
2120SindhMatiariGPSMixUrdu

<colgroup><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet3

Worksheet Formulas
CellFormula
J6=COUNTIFS($C$2:$C$21,$H$6,$F$2:$F$21,I6)
J7=COUNTIFS($C$2:$C$21,$H$6,$F$2:$F$21,I7)
J8=COUNTIFS($C$2:$C$21,$H$6,$F$2:$F$21,I8)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
DRSteele,
Thanks For answering me on this, i exactly want this and it working fine
Bundle of thanks again for helping me in this

Regards
Jibran
 
Upvote 0
Awesome. You're welcome. I'm glad I helped you move your project forward.
 
Upvote 0
can you please tell me how i can mark this post as solved on this forum . i keep on finding link but all in vain... i am new to this so didnt know well.
 
Upvote 0
I think there is no way to do that. The usual etiquette here is to just do as you've done and write a note of thanks; it will indicate that the problem is solved.
 
Upvote 0

Forum statistics

Threads
1,216,114
Messages
6,128,913
Members
449,478
Latest member
Davenil

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