일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
- oracle
- 마이플랫폼
- 자바
- Book
- Report Designer
- 함수
- 오라클
- error
- 이클립스
- 성능
- 기타소득
- 한글
- 도서
- 엑셀
- 회계
- 데이터베이스
- miplatform
- Tomcat
- 태그를 입력해 주세요.
- Excel
- 에러
- 톰캣
- JEUS
- MIP
- JavaScript
- java
- 오류
- DB
- Eclipse
- 튜닝
- Today
- Total
어느 가을날의 전환점
EXCEL|Cell Counting Techniques (셀 카운트 방법) 본문
Cell Counting Techniques
Category: Formulas | [Item URL]
Excel provides many ways to count cells in a range that meet various criteria:
- The DCOUNT function. The data must be set up in a table, and a separate criterion range is required.
- The COUNT function. Simply counts the number of cells in a range that contain a number.
- The COUNTA function. Counts the number of non-empty cells in a range.
- The COUNTBLANK function. Counts the number of empty cells in a range.
- The COUNTIF function. Very flexible, but often not quite flexible enough.
- An array formula. Useful when the other techniques won't work.
Formula Examples
Listed below are some formula examples that demonstrate various counting techniques. These formula all use a range named data.
To count the number of cells that contain a negative number:
=COUNTIF(data,"<0")
To count the number of cells that contain the word "yes" (not case sensitive):
=COUNTIF(data,"yes")
To count the number of cells that contain any text:
=COUNTIF(data,"*")
To count the number of cells that contain text that begins with the letter "s" (not case-sensitive):
=COUNTIF(data,"s*")
To count the number of cells that contain the letter "s" (not case-sensitive):
=COUNTIF(data,"*s*")
To count the number of cells that contain either "yes" or "no" (not case-sensitive):
=COUNTIF(data,"yes")+COUNTIF(data,"no")
To count the number of three-letter words:
=COUNTIF(data,"???")
To count the number of cells that contain a value between 1 and 10:
=COUNTIF(data,">=1")-COUNTIF(data,">10")
To count the number of unique numeric values (ignores text entries):
=SUM(IF(FREQUENCY(data,data)>0,1,0))
To count the number of cells that contain an error value (this is an array formula, entered with Ctrl+Shift+Enter):
=SUM(IF(ISERR(data),1,0))
Using the formulas in VBA
You can also use these techniques in your VBA code. For example the VBA statement below calculates the number of three-letter words in a range named data, and assigns the value to the NumWords variable:
NumWords = Application.COUNTIF(Sheets("Sheet1").Range("data"), "???")
The other formula examples listed above can also be converted to VBA.
# 출처: http://spreadsheetpage.com/index.php/tip/cell_counting_techniques/
'Memo' 카테고리의 다른 글
용어|비전(Vision) (0) | 2011.02.23 |
---|---|
용어|TBD(To Be Determined, To be dated, To be designated), TBA(To be assigned) (0) | 2011.01.06 |
자기개발| 이민석 - 한국에서 소프트웨어 엔지니어로 성공하는 법 (0) | 2010.11.09 |
금융|금융기관 공동코드(은행코드) (0) | 2010.10.20 |
용어|T/O(T.O, 티오), P/O(P.O, 피오) (0) | 2010.10.06 |