Counting data using countif/countifs formula

muhammad susanto

Well-known Member
Joined
Jan 8, 2013
Messages
2,077
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
hi all,

i need some excel formula to solve this below problem. with using COUNTIF/COUNTIFS how to counting data with 3 mode ;

namepropertychecking
robertpcyes
monitor
davidkeyboardno
alfienotebook(empty cell/blank cell)
lcd
mouse
zidanroseyes
glass
etc..

<tbody>
</tbody>

i want to count with criteria based on adjacent value "name" column related with "checking" column
1) counting data "name" with "yes" criteria?
2) counting data "name" with "yes" & "no" criteria?
3) counting data "name" with blank "" criteria?
4) counting data "property" with criteria contains "name" and "yes" criteria

any assistance would be greatly appreciated..

regards

m.susanto
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
So, for that sample data, what would the results look like and where would they be?
 
Upvote 0
hi Peter,assuming start in col. a, i want to counting data in column a with col. c as criteria (yes,yes & no, blank)
 
Upvote 0
example, for "yes" criteria, total data is 2 (robert & zidan) , etc......(OP #1)
 
Upvote 0
i think like this...
<style type="text/css">
table.tableizer-table {
border: 1px solid #CCC; font-family: Arial, Helvetica, sans-serif
font-size: 12px;
}
.tableizer-table td {
padding: 4px;
margin: 3px;
border: 1px solid #ccc;
}
.tableizer-table th {
background-color: #104E8B;
color: #FFF;
font-weight: bold;
}
</style><table class="tableizer-table">
<tr class="tableizer-firstrow"><th></th><th>after formula</th></tr>
<tr><td> </td><td> </td></tr>
<tr><td>criteria</td><td>result (based on "name")</td></tr>
<tr><td>yes</td><td>2</td></tr>
<tr><td>no</td><td>1</td></tr>
<tr><td>blank</td><td>1</td></tr>
<tr><td> </td><td> </td></tr>
<tr><td>criteria</td><td>result (based on "property")</td></tr>
<tr><td>yes</td><td>4</td></tr>
<tr><td>no</td><td>1</td></tr>
<tr><td>blank</td><td>3</td></tr>
</table>
 
Upvote 0
example, for "yes" criteria, total data is 2 (robert & zidan) , etc......(OP #1)

I'm asking the answer for all, you give just one. Why not make a full effort, thinking that the answers are not necessarily so obvious to an onlooker as it's to you?

1.

=COUNTIFS(A2:A8,"?*",C2:C8,"yes")

2.

=SUM(COUNTIFS(A2:A8,"?*",C2:C8,{"yes","no"}))

3.

=COUNTIFS(A2:A8,"?*",C2:C8,"")

4.

=COUNTIFS(A2:A8,"?*",B2:B8,"?*",C2:C8,"yes")
 
Upvote 0
i think like this...
<STYLE type=text/css>
table.tableizer-table {
border: 1px solid #CCC; font-family: Arial, Helvetica, sans-serif
font-size: 12px;
}
.tableizer-table td {
padding: 4px;
margin: 3px;
border: 1px solid #ccc;
}
.tableizer-table th {
background-color: #104E8B;
color: #FFF;
font-weight: bold;
}
</STYLE>
after formula
criteria
result (based on "name")
yes
2
no
1
blank
1
criteria
result (based on "property")
yes
4
no
1
blank
3

<TBODY>
</TBODY>

"Mosterd na maaltijd", as Dutch say...
 
Upvote 0
hi Aladin, syukron, but for :

Code:
[COLOR=#333333]=COUNTIFS(A2:A8,"?*",B2:B8,"?*",C2:C8,"yes")[/COLOR]
, not work, should be the result : 4 (pc,monitor,rose,glass)
 
Upvote 0

Forum statistics

Threads
1,215,046
Messages
6,122,849
Members
449,096
Latest member
Erald

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