When the field is =N, want to subtract that field [Solved/Closed]

Report
-
 Blocked Profile -
Hello,

This formula works, but when the field is =N, I want to subtract that field. What could I add to this formula to make that work?

=(COUNTIFS(TRACKER!$D$3:$D$94,"=A",TRACKER!E$3:E$94,"=X")/COUNTIFS(TRACKER!$D$3:$D$94,"=A"))

3 replies

Easiest solution is to have another cell, and calculate for N. Now subtract that total from the sum above. Speed to market and low tech!

Of course, you can always create your own function in VBA, and use it.

Would you like to use something like:
=COUNTENTRY(RANGE,FIRST_VALUE_TO_TEST_FOR,SECOND_VALUE_TO_delete)


I was able to work through the process and came up with this formula.

=(COUNTIFS(TRACKER!$D$3:$D$94,"=A",TRACKER!E$3:E$94,"=X"))/(COUNTIFS(TRACKER!$D$3:$D$94,"=A")-(COUNTIFS(TRACKER!$D$3:$D$94,"=A",TRACKER!E$3:E$94,"=N")))

Problem solved.

Its funny...I had almost the same thing needed in my office this morning, and when I thought about it, the working formula is exactly what you posted as the fix. Great job. Thanks for the return and the solving, as I was delighted to read you had figured it out. I was returning to post the subtraction portion, and you beat me to it!

Thanks again!