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
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

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"))
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,661
Messages
5,838,648
Members
430,559
Latest member
jm5498

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