countif question

tf37

Board Regular
Joined
Apr 16, 2004
Messages
169
Can I do something like this:
=COUNTIF(C2:C3004,"=DUTC*", B2:B3000, "<>ASG")
I am trying to count one column that it will equal DUTC, which works by itself, but when I try to count those that equal DUTC, but do not count if column B contains ASG
Is it possible, or am I going at it in the wrong direction.
Thanks gang,
Terry
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Hello, Try,

If you have excel 2007 or later;

=COUNTIFS(B2:B3000,"<>ASG",C2:C3000,"DUTC*")

Excel 2003 or earlier;

=SUMPRODUCT(--(B2:B3000<>"ASG"),--(LEFT(C2:C3000,4)="DUTC"))
 
Upvote 0
Am using Excel 2000 still.
You sample works, but I get the same results with:
countif(C2:C2000, "=DUTC*")
Both you sample & mine show a count of 225.
I would like to count those that =DUTC, but not if ASG in included in the column B
Thanks again
 
Upvote 0
Can I do something like this:
=COUNTIF(C2:C3004,"=DUTC*", B2:B3000, "<>ASG")
I am trying to count one column that it will equal DUTC, which works by itself, but when I try to count those that equal DUTC, but do not count if column B contains ASG
Is it possible, or am I going at it in the wrong direction.
Thanks gang,
Terry

Countifs will only work if you have office 2007 or later, for earlier versions try

=SUMPRODUCT(--(ISNUMBER(SEARCH("DUTC*",C2:C3004))),--(B2:B3000<>"ASG"))
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,299
Members
452,904
Latest member
CodeMasterX

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
Back
Top