• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Help with Count Formula

s_k_s

New Member
Hi,


I have 2 columns, one with the Ext number (e.g 3201) and another with type of telephone. At the moment I had a formula =SUMPRODUCT((Telephony!H10:H145={"Analogue Phones"})+0)to just count the telephones but now some people have put the ext as "broken" instead of putting their ext number in so I need to exclude this from the count.


How do I amend the above formula so that it counts the phones that have the extension agaonst it but excludes those phones from the count that have Broken in the extension column?


Your help would be greatly appreciated.


Thanks in advance,


SKS
 
s_K_s


Something like:


=SUMPRODUCT((Telephony!H10:H145={"Analogue Phones"})*(Telephony!ExtColumn<>"")) - SUMPRODUCT((Telephony!H10:H145={"Analogue Phones"})*(Telephony!ExtColumn="Broken"))


Adjust columns to suit
 
Hi Hui,


Apologies but having trouble with adjusting colums to suit. The extension data is in the same Telephony tab and in column C in the same range C10:C145. What would the formula be in that case?


Regards,


SKS
 
Provided you are using Excel 2007 or later, I think you can do this with COUNTIFS() which is simpler than SUMPRODUCT().

[pre]
Code:
=COUNTIFS(Telephony!H10:H145,"Analogue Phones",Telephony!C10:C145,"<>",Telephony!C10:C145,"<>Broken")
[/pre]
So that formula says count H10:H145 where the value is Analogue Phones but only when C10:C145 isn't empty and doesn't contain the word Broken.
 
Hi Hiu,


Sorry, took a while to get everything set up to share the file. The link is: http://db.tt/QtiltPYd


Thanks


SKS
 
Hi S_k_s,


This is Collin's formula adjusted to your sheet:


Code:
=COUNTIFS(H10:H64,"Analogue Phones",C10:C64,"<>Broken")


Regards,
 
Back
Top