Countif function

Muthukrishnan V

Active Member
Joined
May 29, 2008
Messages
272
Office Version
  1. 365
Platform
  1. Windows
Office 365

Countif function.

Column C4:C41 contain age in round number in numerical format
Column D4:D41 contain text like Boy or Girl

Helper Cell in G2 contain age say ">="12
Helper Cell in G3 contain age say "<="14
Helper Cell in G5 contain Boy.

My requirement: Number of boys in the age group >=12 and <=14.

1. Kindly advise formula and also 2. What to enter in Cells G2 and G3?
(say in G2 12 or >=12)

Thanking you
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
How about

+Fluff New.xlsm
ABCDEFGH
1
212
314
410Boy2
511BoyBoy
612Boy
713Girl
814Boy
915Girl
1016Girl
1117Girl
1218Girl
1319Boy
1420Girl
1521Boy
1622Girl
List
Cell Formulas
RangeFormula
H4H4=COUNTIFS(D4:D16,G5,C4:C16,">="&G2,C4:C16,"<="&G3)
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,588
Messages
6,120,412
Members
448,960
Latest member
AKSMITH

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