Count if where range is same but criteria is different

vjharry

New Member
Joined
Nov 10, 2012
Messages
18
S No Name Vehicle Having Date of Joining Experience
1 Kane 2 18-Nov-02 12 Years 10 Months
2 Morris 3 18-Nov-02 12 Years 10 Months
3 Bill 1 3-Feb-03 12 Years 08 Months
4 James 2 17-Mar-03 12 Years 06 Months
5 Rohit 1 15-Oct-03 11 Years 11 Months
6 Tom 3 1-Jan-04 11 Years 09 Months
7 Michal 5 5-Jan-04 11 Years 09 Months
8 Daniel 2 12-Jan-04 11 Years 08 Months

How many people are there who are having 1 vehicle and 3 vehicles?
Can we get this drive by Count if function?
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
S No Name Vehicle Having Date of Joining Experience
1 Kane 2 18-Nov-02 12 Years 10 Months
2 Morris 3 18-Nov-02 12 Years 10 Months
3 Bill 1 3-Feb-03 12 Years 08 Months
4 James 2 17-Mar-03 12 Years 06 Months
5 Rohit 1 15-Oct-03 11 Years 11 Months
6 Tom 3 1-Jan-04 11 Years 09 Months
7 Michal 5 5-Jan-04 11 Years 09 Months
8 Daniel 2 12-Jan-04 11 Years 08 Months

How many people are there who are having 1 vehicle and 3 vehicles?
Can we get this drive by Count if function?

for 1
=COUNTIF(C2:C9,"=1")

for 3
=COUNTIF(C2:C9,"=3")
 
Upvote 0
Try

=SUM(COUNTIFS(C2:C9,{1,3}))

Must be entered as an array (Ctrl, Shift & Enter)
 
Upvote 0
you mean to put a '+' inbetween the two?
 
Upvote 0
You're welcome, did you check your other thread? I posted a new formula for you to try.
 
Upvote 0

Forum statistics

Threads
1,216,175
Messages
6,129,312
Members
449,500
Latest member
Jacky Son

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