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
 
hi Aladin i am so sorry about that, i can't explained as you want with fully cause my english is not good (i am poor in english language)
 
Upvote 0

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
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)

Of course it does not work for it tries a different set of criteria than the one you have in mind...

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

Did I guess better this time?
 
Upvote 0
thank, Aladin, i have tested but not i want with your last formula the result = 3, should be the result is 4 (pc,monitor,rose,glass), in case the counting target in col.b (property column) with as criteria in col.c ("yes")..

any other ideas?
 
Upvote 0
thank, Aladin, i have tested but not i want with your last formula the result = 3, should be the result is 4 (pc,monitor,rose,glass), in case the counting target in col.b (property column) with as criteria in col.c ("yes")..

any other ideas?

namepropertychecking
robertpcyes
monitor
davidkeyboardno
alfienotebook
lcd
mouse
zidanroseyes
glass

<COLGROUP><COL style="WIDTH: 71pt; mso-width-source: userset; mso-width-alt: 3384" width=95><COL style="WIDTH: 102pt; mso-width-source: userset; mso-width-alt: 4835" width=136><COL style="WIDTH: 83pt; mso-width-source: userset; mso-width-alt: 3925" width=110><TBODY>
</TBODY>


Try this one too...

=SUM(COUNTIFS(B2:B8,"?*",C2:C8,{"","yes"}))
 
Upvote 0
still not working, after using your formula the result is 7, i think for blank criteria included calculating (e.g. notebook,lcd,mouse), for blank criteria should be not calculated (assuming only yes criteria is looking for)

i have tried to modify your formula but not work....
 
Upvote 0
name
property
checking
robert
pc
yes
monitor
david
keyboard
no
alfie
notebook
lcd
mouse
zidan
rose
yes
glass

<TBODY>
</TBODY>


Try this one too...

=SUM(COUNTIFS(B2:B8,"?*",C2:C8,{"","yes"}))

still not working, after using your formula the result is 7, i think for blank criteria included calculating (e.g. notebook,lcd,mouse), for blank criteria should be not calculated (assuming only yes criteria is looking for)

i have tried to modify your formula but not work....

Ok, how do you get that 4 yourself?
 
Upvote 0
for "yes" criteria :

namepropertychecking
robertpcyes
monitor
davidkeyboardno
alfienotebook
lcd
mouse
zidanroseyes
glass


<tbody>
</tbody>

4 = pc,monitor,rose and glass
 
Upvote 0
yes, Aladin..i want you help me to calculate item of property based on "yes" criteria..look like the red color in the column above
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,731
Members
448,987
Latest member
marion_davis

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