Solved

Only Countif when a defined cell is not filled.

Posted on 2012-03-25
1
261 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
1 Comment
 
LVL 50

Accepted Solution

by:
barry houdini earned 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

920 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now