Counting test case results using formula

subhah

New Member
Joined
Nov 6, 2007
Messages
7
I have my test cases in below format and I would like to calculate # of test cases passed or failed using formula. Can anyone pls. help?

-------------------------------------------------
Test case # Step # Result
-------------------------------------------------
Test case 1 Step 1 pass
Test case 1 Step 2 pass
Test case 1 Step 3 fail
Test case 2 Step 1 pass
Test case 2 Step 2 pass
Test case 2 Step 3 pass
Test case 2 Step 4 pass
Test case 3 Step 1 fail
Test case 3 Step 2 fail

I need below result using formula:
# of test cases - Pass = 1
# of test cases - Fail = 2

-Subha
 
You would have to calculate also the blanks and deduct:

C12: =SUM(IF(FREQUENCY(IF($A$2:$A$10<>"",IF($C$2:$C$10="",MATCH("~"&$A$2:$A$10,$A$2:$A$10&"",0))),ROW($A$2:$A$10)-ROW($A$2)+1),1))

Ctrl + Shift + Enter


C13: =SUM(IF(FREQUENCY(IF($A$2:$A$10<>"",IF($C$2:$C$10=C13,MATCH("~"&$A$2:$A$10,$A$2:$A$10&"",0))),ROW($A$2:$A$10)-ROW($A$2)+1),1))

Ctrl + Shift + Enter


C14: =SUMPRODUCT((A2:A10<>"")/COUNTIF(A2:A10,A2:A10&""))-D13-D12
Book2
ABCD
1
2Test case 1Step 1pass
3Test case 1Step 2pass
4Test case 1Step 3fail
5Test case 2Step 1pass
6Test case 2Step 2pass
7Test case 3Step 1
8Test case 3Step 2
9Test case 4Step 1fail
10Test case 4Step 2fail
11
12blank1
13fail2
14pass1
Sheet1
 
Upvote 0

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
- If any one of the step has blank "Result", then the entire test case should be ignored. Example: test case # 2 can be ignored since the results for all steps are blank

- If any one of the step is a "Fail", then the entire test case should be a "Fail". Example: Test case # 3

- If all test steps are "Pass", then the test case should be a "Pass". Example: Test case # 1 has 3 steps and the result is "Pass" for all steps which means test case # 1 is a "Pass"
 
Upvote 0
<form name="formCb755237"><input *******="window.clipboardData.setData("Text",document.formFb078704.sltNb935705.value);" value="Copy Formula" name="btCb873980" type="button">
</form><center>

<tbody>
</tbody>

<tbody>
</tbody>
</center>
Hi,

I have 7 different values to be pulled and not able to use the formula to find exact count. please help.

<tbody>
Passed
Failed
Not Started
Out Of Scope
Not Applicable
Untested
Blocked

<colgroup><col></colgroup><tbody>
</tbody>
</tbody>
 
Upvote 0
Passed
Failed
Not Started
Out Of Scope
Not Applicable
Untested
Blocked

<tbody>
</tbody>

Hi, I have above 7 different values to get the count and coming correctly using the formulas.
 
Upvote 0
Passed
Failed
Not Started
Out Of Scope
Not Applicable
Untested
Blocked

<tbody>
</tbody>

Hi, I have above 7 different values to get the count and coming correctly using the formulas.

Thank you .. I have solved this with the same formula... after tweaking a bit.. it worked out
 
Upvote 0

Forum statistics

Threads
1,215,949
Messages
6,127,877
Members
449,410
Latest member
adunn_23

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