File: 04-function-count.txt

package info (click to toggle)
libixion 0.20.0-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,472 kB
  • sloc: cpp: 21,273; sh: 4,561; makefile: 463; python: 297
file content (35 lines) | stat: -rw-r--r-- 413 bytes parent folder | download | duplicates (3)
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
31
32
33
34
35
%% Test for COUNT function.  COUNT only counts numeric cells whereas COUNTA
%% also counts string cells.
%mode init
A1:1
A2:2
A3:3
B1@A
B2@B
B3@C
C1:true
C2:false
C3:false
D1=COUNT(A1:A3)
D2=COUNT(A1:A4)
D3=COUNT(A1:B3)
D4=COUNT(A1:C3)
D5=COUNT(A1:C1)
D6=COUNT(A100:A120)
D7=COUNT(A:A)
D8=COUNT(1,2,3,4)
D9=COUNT(1,"str",3)
D10=COUNT()
%calc
%mode result
D1=3
D2=3
D3=3
D4=6
D5=2
D6=0
D7=3
D8=4
D9=2
D10=0
%check