Please advise what is wrong with my formula

lostboyca

Board Regular
Joined
Nov 2, 2005
Messages
62
=COUNTIF(J10:J623,"Pass")-SUMPRODUCT((I10:I623="test_Exit_CWS, test_Exit_HF")*(J10:J623="Pass"))

It's only counting the cell that has test_Exit_CWS. I need it to count test_Exit_HF as well.

Thanks
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Hello, Try this SUMPODUCT

=SUMPRODUCT(--ISNUMBER(MATCH(I10:I623,{"test_Exit_CWS","test_Exit_HF"},0)),--(J10:J623="Pass"))
 
Upvote 0
Hello, Try this SUMPODUCT

=SUMPRODUCT(--ISNUMBER(MATCH(I10:I623,{"test_Exit_CWS","test_Exit_HF"},0)),--(J10:J623="Pass"))

Looks promising. I do not want the calculation to count anything that has test_Exit_HF or test_Exit_CWS that has Pass. I want it to count other words in the cell that has pass
 
Upvote 0
Is this do you mean?

1. I10:I623 not contains test_Exit_CWS or test_Exit_HF.
2. I10:I623 is not blank
3. J10:J623 = "Pass"

If so, try

=SUMPRODUCT(--(I10:I623<>""),--ISNA(MATCH(I10:I623,{"test_Exit_CWS","test_Exit_HF"},0)),--(J10:J623="Pass"))
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,285
Members
452,902
Latest member
Knuddeluff

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