Solved

Only Countif when a defined cell is not filled.

Posted on 2012-03-25
1
260 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
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvie…
Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

772 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

12 Experts available now in Live!

Get 1:1 Help Now