ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Countif count items not in data range (https://www.excelbanter.com/excel-discussion-misc-queries/88720-countif-count-items-not-data-range.html)

jbanton

Countif count items not in data range
 
I am counting selection of hospital names from list I created. Some
hospitals are not on the list and I want to count these as one total number,
with label "other."

Bob Phillips

Countif count items not in data range
 
=SUMPRODUCT(--(A1:A20<""),--(NOT(ISNUMBER(MATCH(A1:A20,K1:K4,0)))))

where A1:A20 is the full list, K1:K4 is your list.

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"jbanton" wrote in message
...
I am counting selection of hospital names from list I created. Some
hospitals are not on the list and I want to count these as one total

number,
with label "other."





All times are GMT +1. The time now is 08:18 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com