A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | Go to File > Make a copy to get started | |||||||||||||||||||||
2 | AID FOR LEARNING QUERY (V1) | |||||||||||||||||||||
3 | Enter Data Range or Name | SAMPLEDATA | Use 'SAMPLEDATA' or your own source | " | ||||||||||||||||||
4 | Optional Headers | The number of rows for your header data | ||||||||||||||||||||
5 | ||||||||||||||||||||||
6 | 1 | Select one of the examples in blue from the dropdown and ensure the purple box is empty. The query will compute and the complete formula shown in the green preview. | PREVIEW OF FORMULA | =query(SAMPLEDATA, "SELECT * WHERE lower(A) MATCHES 'motorcycle|motorbike'") | ||||||||||||||||||
7 | ||||||||||||||||||||||
8 | SELECT AN EXAMPLE | MATCHES | ||||||||||||||||||||
9 | ||||||||||||||||||||||
10 | 2 | You can try your own statements in the purple box, typing only the statement highlighted below (no quotes needed) | ||||||||||||||||||||
11 | TYPE YOUR OWN STATEMENT | |||||||||||||||||||||
12 | ||||||||||||||||||||||
13 | =QUERY(DATARANGE,"QUERY STATEMENT", [OPTIONAL HEADERS] | |||||||||||||||||||||
14 | ||||||||||||||||||||||
15 | ||||||||||||||||||||||
16 | 3 | You can also query your own data with this tool. Just add your data to a new tab and update the Data Range or Named Range in the yellow area accordingly (Cell N3) | Query | Last 28 days Clicks | Previous 28 days Clicks | Last 28 days Impressions | Previous 28 days Impressions | Last 28 days CTR | Previous 28 days CTR | Last 28 days Position | Previous 28 days Position | |||||||||||
17 | motorcycle | 315 | 201 | 8,217 | 6,779 | 3.83% | 2.97% | 7.16 | 7.52 | |||||||||||||
18 | motorbike | 111 | 115 | 1,370 | 1,088 | 8.10% | 10.57% | 1.76 | 1.53 | |||||||||||||
19 | ||||||||||||||||||||||
20 | ||||||||||||||||||||||
21 | ||||||||||||||||||||||
22 | CLAUSES | LOGICAL | ARITHMETIC | SCALAR | ||||||||||||||||||
23 | ||||||||||||||||||||||
24 | SELECT | AND | + | LOWER | ||||||||||||||||||
25 | WHERE | OR | - | UPPER | ||||||||||||||||||
26 | GROUP BY | NOT | * | |||||||||||||||||||
27 | PIVOT | / | MORE SCALAR | |||||||||||||||||||
28 | ORDER BY | |||||||||||||||||||||
29 | LIMIT | |||||||||||||||||||||
30 | OFFSET | AGGREGATION | COMPARISON | STRING COMPARISON | ||||||||||||||||||
31 | LABEL | |||||||||||||||||||||
32 | FORMAT | SUM | > | CONTAINS | ||||||||||||||||||
33 | OPTIONS | AVG | < | STARTS WITH | ||||||||||||||||||
34 | MIN | = | ENDS WITH | |||||||||||||||||||
35 | MAX | <= | MATCHES | |||||||||||||||||||
36 | COUNT | >= | LIKE | |||||||||||||||||||
37 | *Format, options and like will be added ASAP. | != OR <> | ||||||||||||||||||||
38 | ||||||||||||||||||||||
39 | IS NULL | |||||||||||||||||||||
40 | IS NOT NULL | |||||||||||||||||||||
41 | ||||||||||||||||||||||
42 | ||||||||||||||||||||||
43 | ||||||||||||||||||||||
44 | ||||||||||||||||||||||
45 | ||||||||||||||||||||||
46 | ||||||||||||||||||||||
47 | ||||||||||||||||||||||
48 | ||||||||||||||||||||||
49 | ||||||||||||||||||||||
50 | ||||||||||||||||||||||
51 | ||||||||||||||||||||||
52 | ||||||||||||||||||||||
53 | ||||||||||||||||||||||
54 | ||||||||||||||||||||||
55 | ||||||||||||||||||||||
56 | ||||||||||||||||||||||
57 | ||||||||||||||||||||||
58 | ||||||||||||||||||||||
59 | ||||||||||||||||||||||
60 | ||||||||||||||||||||||
61 | ||||||||||||||||||||||
62 | ||||||||||||||||||||||
63 | ||||||||||||||||||||||
64 | ||||||||||||||||||||||
65 | ||||||||||||||||||||||
66 | ||||||||||||||||||||||
67 | ||||||||||||||||||||||
68 | ||||||||||||||||||||||
69 | ||||||||||||||||||||||
70 | ||||||||||||||||||||||
71 | ||||||||||||||||||||||
72 | ||||||||||||||||||||||
73 | ||||||||||||||||||||||
74 | ||||||||||||||||||||||
75 | ||||||||||||||||||||||
76 | ||||||||||||||||||||||
77 | ||||||||||||||||||||||
78 | ||||||||||||||||||||||
79 | ||||||||||||||||||||||
80 | ||||||||||||||||||||||
81 | ||||||||||||||||||||||
82 | ||||||||||||||||||||||
83 | ||||||||||||||||||||||
84 | ||||||||||||||||||||||
85 | ||||||||||||||||||||||
86 | ||||||||||||||||||||||
87 | ||||||||||||||||||||||
88 | ||||||||||||||||||||||
89 | ||||||||||||||||||||||
90 | ||||||||||||||||||||||
91 | ||||||||||||||||||||||
92 | ||||||||||||||||||||||
93 | ||||||||||||||||||||||
94 | ||||||||||||||||||||||
95 | ||||||||||||||||||||||
96 | ||||||||||||||||||||||
97 | ||||||||||||||||||||||
98 | ||||||||||||||||||||||
99 | ||||||||||||||||||||||
100 |