Count if type statement

squeakums

Well-known Member
Joined
May 15, 2007
Messages
823
Office Version
  1. 365
I wrote this statement which works if in column A:A it finds whats in cell C5, but is there a way to count all if cell A5 = "All" as well as my current formula, so countif , otherwise, if it's all, count all?
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Oops, sorry I meant to leave that in there. Here it is:

=COUNTIFS('Monitoring Details'!I:I,"Missing AIT Registrations", 'Monitoring Details'!A:A,C5)
 
Upvote 0
Oops, sorry I meant to leave that in there. Here it is:

=COUNTIFS('Monitoring Details'!I:I,"Missing AIT Registrations", 'Monitoring Details'!A:A,C5)

Are you after this?

=COUNTIFS('Monitoring Details'!I:I,"Missing AIT Registrations", 'Monitoring Details'!A:A,IF(A5="all","?*",C5))
 
Upvote 0
That helped, was hoping you new how to answer this one?

I'm having an issue here:

for those names that fall under P:P may not match F4 exactly, because of an initial in the name, how would I write this to count if name is similar when looking up on different tab?

=IFERROR(COUNTIFS('Issues w-out Action Plans'!K:K,"< 30",'Issues w-out Action Plans'!P:P,'MoEVM Summary Level'!F4),"0")
 
Upvote 0
here's COLUMN p
MOEVM
BARNES, TOM
CLAIRE, ROSE
SMITH, JOHN
BOOTH, TIM
BOOTH, TIM
BOOTH, TIM
BOOTH, TIM
BOOTH, TIM
BOOTH, TIM
RUSS, JAMES
ICK, BOOM

COLUMN F4 IS A DROP DOWN LIST, SO THEY CHOOSE THEIR NAME FOR EXAMPLE

RUSS, JAMES
 
Upvote 0
The issue with this one was some of the names had initials in t he column P on the other tab, and the drop down list doesn't have their initials. But, on another note, I'm linking this to a SQL connection load, and it isn't pulling in any data anyways.. so cannot figure out why :(
 
Upvote 0

Forum statistics

Threads
1,214,584
Messages
6,120,385
Members
448,956
Latest member
JPav

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