Count if D:cells only if G:cell contains a constant value

2k05gt

Board Regular
Joined
Sep 1, 2006
Messages
157
trouble trying to do this calculation.

=COUNTIF(D2:D2135,"DC")if (g2:G2135="incoming")

in otherwords count d:2 through d:2135 only if G2 through G2134 is equal to incoming.

any suggestions?????
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Wow, Quick....
Sweet... Works fantastic

What do you see wrong with this?

=SUMPRODUCT(--(B2:B2135,"161.80.*.*"),--(G2:G2135="outgoing"))
 
Upvote 0
Are you using the *s as wildcards?

Perhaps

=SUMPRODUCT(--(LEFT(B2:B2135,7)="161.80."),--(G2:G2135="outgoing"))
 
Upvote 0
Are you using the *s as wildcards?

Perhaps

=SUMPRODUCT(--(LEFT(B2:B2135,7)="161.80."),--(G2:G2135="outgoing"))

Yes, Wild cards, it's an ip address but I only care about the first two octets
 
Upvote 0
...then that last formula should work for you.....I hope

Barry, What are you doing up so late?

anyway, those calcs work but not getting the results I expected.
Thanks for your help,
 
Upvote 0

Forum statistics

Threads
1,219,101
Messages
6,146,288
Members
450,685
Latest member
frederik00

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