Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Only Countif when a defined cell is not filled.

Posted on 2012-03-25
1
Medium Priority
?
270 Views
Last Modified: 2012-06-21
I wish to setup a mechanism to count the number of x's in a series of cells but only if another cell does not have an x in it.

So, for example;

If Cell A1 has an x (or whatever) in it, then it will not count the number of x's in the cells B1 thru B10.

If Cell A1 does not have an x (or whatever) in it, then it will count the number of x's in the cells B1 thru B10.

Thanks

Richard
0
Comment
Question by:VeeBeeSix
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 50

Accepted Solution

by:
barry houdini earned 1500 total points
ID: 37762698
Try using an IF function like this

=IF(A1="x","",COUNTIF(B1:B10,"x"))

That returns a blank [""] if A1 has an "x", otherwise the count of "x"s in B1:B10, is that what you need?

regards, barry
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

618 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