COUNTIF Help

raymaster98

Board Regular
Joined
Oct 28, 2009
Messages
212
Using Excel 2003.

In column D, I have a list of radiology procedures Example (NM HIDA SCAN). All procedures begin with "NM".
Column H lists if the patient was a "NO SHOW". I would like to count the number of procedures in column D that have a corresponding "NO SHOW" in column H. Any help would be appreciated. Thanks, Kenny
 

Some videos you may like

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

Haseeb Avarakkan

Well-known Member
Joined
Sep 28, 2010
Messages
902
Office Version
  1. 365
Platform
  1. Windows
Try;

=SUMPRODUCT(--(D2:D1000<>""),--(H2:H1000="No Show"))

Do not use the whole column reference, D:D, H:H.
 

raymaster98

Board Regular
Joined
Oct 28, 2009
Messages
212
Haseeb,

Thanks for the help. However, that formula counts all instances of "NO SHOWS" in column H. I need to count only the 'NO SHOWS" in column H that correspond with a procedure that has a prefix of "NM" in column D. The list in column D has multiple procedures. Only some are prefixed with "NM". The rest have other prefixes and cannot be included. Hope that makes sense. Thanks, Kenny
 

Haseeb Avarakkan

Well-known Member
Joined
Sep 28, 2010
Messages
902
Office Version
  1. 365
Platform
  1. Windows
Ok, use this,

=SUMPRODUCT(--(LEFT(D2:D1000,2)="NM"),--(H2:H1000="No Show"))
 

Watch MrExcel Video

Forum statistics

Threads
1,127,334
Messages
5,624,071
Members
416,010
Latest member
NJT

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
Top