Solved

CountIf function with Excel formula to count how many cells have the word "Off" in them.

Posted on 2013-06-29
5
359 Views
Last Modified: 2013-06-29
I want to only count if the word "Off" is in 7 specific columns.  They happen to be 21 columns apart, not sure that matters.  There are other columns with the word "Off" but don't want to count them.
Gotta be a way.
Help is appreciated.
0
Comment
Question by:RogerKMiller
  • 2
  • 2
5 Comments
 
LVL 39

Accepted Solution

by:
als315 earned 500 total points
ID: 39286775
Countif can work only with continuous range. You can sum 7 countifs if you like to get results from non-continuous range:
=COUNTIF(A:A,"Off")+ COUNTIF(C:C,"Off")+ COUNTIF(E:E,"Off")+ COUNTIF(I:I,"Off")+ COUNTIF(J:J,"Off")+ COUNTIF(K:K,"Off")+ COUNTIF(M:M,"Off")

Open in new window

0
 

Author Comment

by:RogerKMiller
ID: 39286856
That worked.  Thank you.
Roger
0
 

Author Comment

by:RogerKMiller
ID: 39286940
I've requested that this question be closed as follows:

Accepted answer: 0 points for RogerKMiller's comment #a39286856

for the following reason:

Quick thorough easy to understand response.
0
 
LVL 39

Expert Comment

by:als315
ID: 39286890
Thanks, but you should accept my answer if it was correct. You can press "Request attention" button and ask to close question properly.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

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…
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
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.

773 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