COUNT IF NOT....

E

ExcelforDummies

I have a work schedule and im trying to show days off. the rows consist of D
for days, S for swings and M for mids. I am trying to show on another colum
the number of days that a row does not contain a d,s, or m but will count
everything else as 1 and give me a total.
 
R

ryguy7272

This may be what you are looking for:
=SUMPRODUCT(--(A1:A10<>"D"),--(A1:A10<>"M"),--(A1:A10<>"S"))

Or, do you want to count things in the adjacent column?

HTH,
Ryan---
 
W

winnie123

you could try

=SUMPRODUCT(--(A2:C6<>"D"),--(A2:C6<>"M"),--(A2:C6<>"S"))

to get grand total

or to get each row total change range to A2:C2 for each instance
 
A

Ashish Mathur

Hi,

Use this. I19:I21 has S, D and M. I10:I16 has the data.

=SUMPRODUCT(1*(ISERROR(MATCH(I10:I16,$I$19:$I$21,0))))

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top