Using two conditions in COUNTIF

hence

New Member
Joined
Oct 13, 2006
Messages
3
Hi, I have the following data:
A B C D
Phone # Worked PI NI
55555555 Y 0.00 2.00
66666666 10.00 12.00
77733222 Y 3.50 8.00
45466666 Y 0.00 0.00

table is 4 columns (phone # / Worked / PI / NI) wide by numerous rows deep...

Basically, I want to do a COUNTIF function that will basically count the number of entries that have a PI greater than 0 AND a Y in the worked column.. if that makes any sense I don't want it counting ones where the PI and NI columns are zero...

I can't seem to figure it out: I thought that something like this might work:

COUNT(IF(B2:B5, "Y") AND (C2:C5, ">.01"))

Any help would be greatly appreciated!!!

Drew
 
thanks so much! the last one worked!! wasn't even aware of that formula! still kinda new..

I have one more question... I have a deadline for a project for Dec 01 2006.

I want to create a formula that automatically calculates the remaining BUSINESS days till that date.. ie.. no weekends.. so 5 days a week

is this possible? can it update as each day passes automatically?

tks again!

drew

Did you try networkdays suggestion?

To calculate number of business days (inclusive) between today and a date in A2

=NETWORKDAYS(TODAY(),A2)

another way without Analysis ToolPak

=SUM(INT((WEEKDAY(TODAY()-{2,3,4,5,6})+A2-TODAY())/7))
 
Upvote 0

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

Forum statistics

Threads
1,216,100
Messages
6,128,824
Members
449,470
Latest member
Subhash Chand

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