Combining IF and COUNTIF statements

Silha

New Member
Joined
Jul 30, 2013
Messages
13
Hello there,

I'm not sure if the subject of this thread accurately reflects what I want to be able to do, but it's the closest description I could think of!

I need a formula that gives me the answer to this formula
=COUNTIFS(AD3:AD1383,"yes")

The above formula is based on the answers in each cell of the column that runs this formula
=IF(AND((NETWORKDAYS($AF$11,C3))>0,LEN(F3)>0),"yes","no")

Basically, I want to find out how many projects in my report were delivered late. I just need that one number and I don’t want to add the extra column to my report which says whether a project was late or not and then count up the results of that.

I know I can continue to use the above two formulas, cut and paste values and then delete the column before sending out the report, but I want to cut out that step and just end up with the figure I need. I'm sure this can be done but I don't know enough about Excel to know how I would do it.

Hope this makes sense and thank you in advance for your help!
 

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
Can't test the below as you haven't supplied a sample of data, but this should be what you're after:
=SUMPRODUCT(--(NETWORKDAYS($AF$11,C3:C1383)>0),--(LEN(F3:F1383)>0))
 
Upvote 0
Thank you, all.

In the end, I ended up using Gavin's suggestion and just hiding the column.

Njimack, thank you for the formula but unfortunately, it did not work!
 
Upvote 0

Forum statistics

Threads
1,215,465
Messages
6,124,982
Members
449,201
Latest member
Lunzwe73

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