Solved

Excel formula

Posted on 2012-12-24
4
302 Views
Last Modified: 2012-12-31
In excel I am trying to calculate a number of tests that have passed (but only if they have a relevant test step).  IE- a count function based on two columns.

So, there are 2 columns – one displays test steps (some of these are blank), and another column showing if the test step has passed ( or not)

 I have been trying the countifs and counta functions but can not get it to return a figure only if both conditions are met i.e. test step is not blank and it has a “pass” status

any ideas?
0
Comment
Question by:javaftper
  • 2
4 Comments
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 38718389
Can you upload a small sample file?
0
 
LVL 43

Accepted Solution

by:
Saqib Husain, Syed earned 500 total points
ID: 38718393
Try
=countifs(A:A,"<>",B:B,"pass")
0
 
LVL 92

Expert Comment

by:Patrick Matthews
ID: 38718536
Another alternative would be a PivotTable, using count as the aggregation method.

The nice thing about a PivotTable is that it allows you to get the counts for all of your combinations.
0
 
LVL 4

Author Closing Comment

by:javaftper
ID: 38732094
Thank-you.
Just what I wanted.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
Outlook Free & Paid Tools
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question