\documentclass[10pt,a4paper]{article} % Packages \usepackage{fancyhdr} % For header and footer \usepackage{multicol} % Allows multicols in tables \usepackage{tabularx} % Intelligent column widths \usepackage{tabulary} % Used in header and footer \usepackage{hhline} % Border under tables \usepackage{graphicx} % For images \usepackage{xcolor} % For hex colours %\usepackage[utf8x]{inputenc} % For unicode character support \usepackage[T1]{fontenc} % Without this we get weird character replacements \usepackage{colortbl} % For coloured tables \usepackage{setspace} % For line height \usepackage{lastpage} % Needed for total page number \usepackage{seqsplit} % Splits long words. %\usepackage{opensans} % Can't make this work so far. Shame. Would be lovely. \usepackage[normalem]{ulem} % For underlining links % Most of the following are not required for the majority % of cheat sheets but are needed for some symbol support. \usepackage{amsmath} % Symbols \usepackage{MnSymbol} % Symbols \usepackage{wasysym} % Symbols %\usepackage[english,german,french,spanish,italian]{babel} % Languages % Document Info \author{hangvtk7777} \pdfinfo{ /Title (google-sheet-course-note.pdf) /Creator (Cheatography) /Author (hangvtk7777) /Subject (Google Sheet Course Note Cheat Sheet) } % Lengths and widths \addtolength{\textwidth}{6cm} \addtolength{\textheight}{-1cm} \addtolength{\hoffset}{-3cm} \addtolength{\voffset}{-2cm} \setlength{\tabcolsep}{0.2cm} % Space between columns \setlength{\headsep}{-12pt} % Reduce space between header and content \setlength{\headheight}{85pt} % If less, LaTeX automatically increases it \renewcommand{\footrulewidth}{0pt} % Remove footer line \renewcommand{\headrulewidth}{0pt} % Remove header line \renewcommand{\seqinsert}{\ifmmode\allowbreak\else\-\fi} % Hyphens in seqsplit % This two commands together give roughly % the right line height in the tables \renewcommand{\arraystretch}{1.3} \onehalfspacing % Commands \newcommand{\SetRowColor}[1]{\noalign{\gdef\RowColorName{#1}}\rowcolor{\RowColorName}} % Shortcut for row colour \newcommand{\mymulticolumn}[3]{\multicolumn{#1}{>{\columncolor{\RowColorName}}#2}{#3}} % For coloured multi-cols \newcolumntype{x}[1]{>{\raggedright}p{#1}} % New column types for ragged-right paragraph columns \newcommand{\tn}{\tabularnewline} % Required as custom column type in use % Font and Colours \definecolor{HeadBackground}{HTML}{333333} \definecolor{FootBackground}{HTML}{666666} \definecolor{TextColor}{HTML}{333333} \definecolor{DarkBackground}{HTML}{CD5C5C} \definecolor{LightBackground}{HTML}{FBF4F4} \renewcommand{\familydefault}{\sfdefault} \color{TextColor} % Header and Footer \pagestyle{fancy} \fancyhead{} % Set header to blank \fancyfoot{} % Set footer to blank \fancyhead[L]{ \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{C} \SetRowColor{DarkBackground} \vspace{-7pt} {\parbox{\dimexpr\textwidth-2\fboxsep\relax}{\noindent \hspace*{-6pt}\includegraphics[width=5.8cm]{/web/www.cheatography.com/public/images/cheatography_logo.pdf}} } \end{tabulary} \columnbreak \begin{tabulary}{11cm}{L} \vspace{-2pt}\large{\bf{\textcolor{DarkBackground}{\textrm{Google Sheet Course Note Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{hangvtk7777} via \textcolor{DarkBackground}{\uline{cheatography.com/179808/cs/40430/}}} \end{tabulary} \end{multicols}} \fancyfoot[L]{ \footnotesize \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{LL} \SetRowColor{FootBackground} \mymulticolumn{2}{p{5.377cm}}{\bf\textcolor{white}{Cheatographer}} \\ \vspace{-2pt}hangvtk7777 \\ \uline{cheatography.com/hangvtk7777} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Published 23rd September, 2023.\\ Updated 5th November, 2023.\\ Page {\thepage} of \pageref{LastPage}. \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Sponsor}} \\ \SetRowColor{white} \vspace{-5pt} %\includegraphics[width=48px,height=48px]{dave.jpeg} Measure your website readability!\\ www.readability-score.com \end{tabulary} \end{multicols}} \begin{document} \raggedright \raggedcolumns % Set font size to small. Switch to any value % from this page to resize cheat sheet text: % www.emerson.emory.edu/services/latex/latex_169.html \footnotesize % Small font. \begin{multicols*}{2} \begin{tabularx}{8.4cm}{x{2.812 cm} x{2.888 cm} x{1.9 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{8.4cm}}{\bf\textcolor{white}{Phím tắt trong Excel}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Ctr + Phím cách}} -\textgreater{} Chọn cột & {\bf{Ctrl + Shift + ;}} -\textgreater{} Chèn thời gian & {\bf{Ctr + B}} -\textgreater{} In đậm \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} {\bf{Shift + Phím cách}} -\textgreater{} Chọn hàng & {\bf{Ctr + ;}} -\textgreater{} Chèn ngày & {\bf{Ctr + I}} -\textgreater{} In nghiêng \tn % Row Count 6 (+ 3) % Row 2 \SetRowColor{LightBackground} {\bf{Alt + Shift + mũi tên phải}} -\textgreater{} Nhóm hàng/ cột & {\bf{Ctr + ALt + Shift + ;}} -\textgreater{} Chèn ngày và giờ & \tn % Row Count 10 (+ 4) % Row 3 \SetRowColor{white} \mymulticolumn{3}{x{8.4cm}}{{\bf{Shift +}} -\textgreater{} Lùi hàng cột đã chọn} \tn % Row Count 11 (+ 1) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{3}{x{8.4cm}}{{\bf{Ctrl + Alt + =}} -\textgreater{} Chèn hàng cột lên trên} \tn % Row Count 12 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}---} \SetRowColor{LightBackground} \mymulticolumn{3}{x{8.4cm}}{{\emph{Từ trái sang phải: Navigation, Ngày và giờ, Formatting}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{Essential Functions}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{{\bf{UNIQUE}} (range, by\_column, exactly\_once)} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{{\bf{SORT}} (range, sort\_column, is\_ascending, {[}sort\_column2, is\_ascending2, ...{]})} \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{{\emph{eg: SORT(\{1, 2; 3, 4; 5, 6\}, 2, FALSE)}}} \tn % Row Count 4 (+ 1) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{{\bf{COUNTIFS, SUMIFS, AVERAGEIFS, MINIFS, MAXIFS}} (sum\_range, criteria\_range1, criterion1, {[}criteria\_range2, criterion2, ...{]})} \tn % Row Count 7 (+ 3) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{{\emph{eg: SUMIFS(A1:A10, B1:B10, "\textgreater{}20", C1:C10, "\textless{}30")}}} \tn % Row Count 8 (+ 1) % Row 5 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{{\emph{eg: SUMIFS(F5:F15,C5:C15,"red",D5:D15,"TX")}}} \tn % Row Count 9 (+ 1) % Row 6 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{{\emph{eg: SUMIF(C2:C10, "\textgreater{}"\&F1, B2:B10)}}} \tn % Row Count 10 (+ 1) % Row 7 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{{\bf{ROUND}}} \tn % Row Count 11 (+ 1) % Row 8 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{{\bf{ROUNDUP}}} \tn % Row Count 12 (+ 1) % Row 9 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{{\bf{ROUNDDOWN}}} \tn % Row Count 13 (+ 1) % Row 10 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{{\bf{VLOOKUP}}} \tn % Row Count 14 (+ 1) % Row 11 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{{\bf{HLOOKUP}}} \tn % Row Count 15 (+ 1) % Row 12 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{{\bf{FILTER}} (range, condition1, {[}condition2, ...{]})} \tn % Row Count 16 (+ 1) % Row 13 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{{\emph{eg: FILTER(A2:B26, A2:A26 \textgreater{} 5, D2:D26 \textless{} 10)}}} \tn % Row Count 17 (+ 1) % Row 14 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{{\emph{eg: FILTER(A2:B10, NOT(ISBLANK(A2:A10)))}}} \tn % Row Count 18 (+ 1) % Row 15 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{{\bf{SORTN}} (dải\_ô; {[}n{]}, {[}chế\_độ\_hiển\_thị\_mối\_liên\_kết{]}; {[}cột\_sắp\_xếp1; tăng\_dần1{]}, ...)} \tn % Row Count 21 (+ 3) % Row 16 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Trong đó, dải\_ô – Dữ liệu cần được sắp xếp để tìm n mục đầu tiên. n - {[}TÙY CHỌN - 1 theo mặc định{]} Số mục cần trả về. Phải lớn hơn 0. \seqsplit{chế\_độ\_hiển\_thị\_mối\_liên\_kết} – {[}TÙY CHỌN – 0 theo mặc định{]} Một số đại diện cho cách hiển thị mối liên kết. 0: Hiển thị tối đa n hàng đầu tiên trong dải ô được sắp xếp. 1: Hiển thị tối đa n hàng đầu tiên, cộng với mọi hàng bổ sung giống với hàng thứ n. 2: Hiển thị tối đa n hàng đầu tiên sau khi xóa các hàng trùng lặp. 3: Hiển thị tối đa n hàng đơn nhất đầu tiên, nhưng hiển thị mọi hàng trùng lặp của những hàng này.} \tn % Row Count 37 (+ 16) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{Essential Functions (cont)}} \tn % Row 17 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{{\emph{eg: SORTN(A2:C20, 2, 2, B2:B20, TRUE)}}} \tn % Row Count 1 (+ 1) % Row 18 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{{\bf{IMPORTRANGE}} (url\_bảng\_tính; chuỗi\_dải\_ô)} \tn % Row Count 3 (+ 2) % Row 19 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{{\emph{eg: \seqsplit{IMPORTRANGE("https://docs}.google.com/spreadsheets/d/abcd123abcd123"; "trang\_tính1!A1:C10")}}} \tn % Row Count 5 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{p{0.8 cm} p{0.8 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Tool Tips}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{8.4cm}}{{\bf{REPT }}(text, number\_of\_times) {\emph{repeats the specified text (in this case, "|") a specified number of times (the value in cell B1).}}} \tn % Row Count 3 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{Design Practices}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{{\bf{Consistent look}} {\emph{Keep color consistent throughout the report}}} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{{\emph{If data might change}} {\bf{Keep it in a cell instead of hard-coding it in the forrmula}}} \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{{\bf{Add contrast with formatting}} {\emph{Alternating colour icon}}} \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{{\bf{Add contrast with formatting}} {\emph{Only add contrast to where you want your audience pay attention to}}} \tn % Row Count 9 (+ 3) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{{\bf{Each sheet has a purpose}}} \tn % Row Count 10 (+ 1) % Row 5 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{{\bf{Make it pleasure to come back}} {\emph{Should have instruction sheet \& hyperlink}}} \tn % Row Count 12 (+ 2) % Row 6 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{{\bf{Consider the future}} {\emph{Will your data grow or stay the same size}}} \tn % Row Count 14 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{Essential TEXT \& DATE function}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{{\bf{LEFT}}} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{{\bf{RIGHT}}} \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{{\bf{MID}}} \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{{\bf{UPPER}}} \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{{\bf{LOWER}}} \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{{\bf{TRIM}}} \tn % Row Count 6 (+ 1) % Row 6 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{{\bf{SUBSTITUTE}}} \tn % Row Count 7 (+ 1) % Row 7 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{{\bf{ISEMAL}}} \tn % Row Count 8 (+ 1) % Row 8 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{{\bf{SEARCH}}} \tn % Row Count 9 (+ 1) % Row 9 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{{\bf{FIND}}} \tn % Row Count 10 (+ 1) % Row 10 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{{\bf{SPLIT}}} \tn % Row Count 11 (+ 1) % Row 11 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{{\bf{CONCATENATE}}} \tn % Row Count 12 (+ 1) % Row 12 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{{\bf{DATE}}} \tn % Row Count 13 (+ 1) % Row 13 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{{\bf{YEAR}}} \tn % Row Count 14 (+ 1) % Row 14 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{{\bf{MONTH}}} \tn % Row Count 15 (+ 1) % Row 15 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{{\bf{DAY}}} \tn % Row Count 16 (+ 1) % Row 16 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{{\bf{TODAY()}}} \tn % Row Count 17 (+ 1) % Row 17 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{{\bf{NOW()}}} \tn % Row Count 18 (+ 1) % Row 18 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{{\bf{EOMONTH}}} \tn % Row Count 19 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{Advanced Functions}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{{\bf{INDEX}} \seqsplit{(giá\_trị\_tham\_chiếu;} {[}hàng{]}; {[}cột{]})} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{{\emph{eg: INDEX(A1:C20; 5; 1)}}} \tn % Row Count 3 (+ 1) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{{\bf{MATCH }} (khóa\_tìm\_kiếm, dải\_ô, {[}loại\_tìm\_kiếm{]}**} \tn % Row Count 5 (+ 2) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{{\emph{eg: \seqsplit{MATCH("Chủ\_nhật";A2:A9;0)} }}} \tn % Row Count 6 (+ 1) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{{\emph{eg: MATCH(DATE(2012;1;1);A2:F2)}}} \tn % Row Count 7 (+ 1) % Row 5 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{{\bf{SUMPRODUCT}} (mảng1; {[}mảng2; ...{]})} \tn % Row Count 8 (+ 1) % Row 6 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{{\emph{mảng1 – Mảng hoặc dải ô thứ nhất, trong đó các phần tử sẽ được nhân với các phần tử tương ứng của mảng hoặc dải ô thứ hai.}}} \tn % Row Count 12 (+ 4) % Row 7 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{{\emph{mảng2; ... – {[} TÙY CHỌN – \{1,1,1,...\} có cùng độ dài với mảng1 theo mặc định {]} – Mảng hoặc dải ô thứ hai, trong đó các phần tử sẽ được nhân với các phần tử tương ứng của mảng hoặc dải ô thứ nhất.}}} \tn % Row Count 18 (+ 6) % Row 8 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{{\emph{eg: \seqsplit{=SUMPRODUCT(INDEX(B2:E1000}, , MATCH("SpecificHeader", B1:E1, 0)), (C2:C1000 = "SpecificValue2") }} 1)*} \tn % Row Count 21 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{p{0.8 cm} p{0.8 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Explore trong Google Sheet}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{8.4cm}}{} \tn % Row Count 0 (+ 0) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{QUERY}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{{\bf{QUERY}} (dữ\_liệu; truy\_vấn; {[}tiêu\_đề{]})} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{{\bf{QUERY : select \& where}}} \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{{\emph{eg: =QUERY('Example Data'!\$A\$2:\$H\$7, "select A where (B\textless{}\textgreater{}'Eng' and G=true) or (D \textgreater{} "\&A2\&")")}}} \tn % Row Count 4 (+ 2) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{{\bf{QUERY : group by}}} \tn % Row Count 5 (+ 1) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{{\emph{eg: QUERY('Example Data'!\$A\$2:\$H\$7, "select B, MAX(D) group by B")}}} \tn % Row Count 7 (+ 2) % Row 5 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{{\bf{QUERY : pivot}}} \tn % Row Count 8 (+ 1) % Row 6 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{{\emph{eg: QUERY('Example Data'!\$A\$2:\$H\$7, "select avg(D) pivot B")}}} \tn % Row Count 10 (+ 2) % Row 7 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{{\bf{Order by}}} \tn % Row Count 11 (+ 1) % Row 8 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{{\emph{QUERY('Example Data'!\$A\$2:\$H\$7, "select B, MAX(D) group by B order by MAX(D)")}}} \tn % Row Count 13 (+ 2) % Row 9 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{{\bf{Label}}} \tn % Row Count 14 (+ 1) % Row 10 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{{\emph{QUERY(A1:B10, "SELECT A, B LABEL B 'Years Old'")}}} \tn % Row Count 15 (+ 1) % Row 11 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{{\bf{Concatenate multiple QUERY (arrray) results}}} \tn % Row Count 16 (+ 1) % Row 12 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{{\emph{\{QUERY(Rawdata, "SELECT B, sum(D) WHERE B is not null GROUP BY B ORDER BY sum(D) desc LABEL sum (D) 'Actual Sales' ", 1)}}} \tn % Row Count 19 (+ 3) % Row 13 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{{\emph{;}}} \tn % Row Count 20 (+ 1) % Row 14 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{{\emph{QUERY(Rawdata,"SELECT sum(D) WHERE B is not null LABEL sum(D) 'Total' "\}}}} \tn % Row Count 22 (+ 2) % Row 15 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{{\bf{ QUERY function combine data from different sheets }}} \tn % Row Count 24 (+ 2) % Row 16 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{{\emph{ Eg: QUERY(\{Raw1;Raw2\}, "Select col1, count(col1) where col1 is not null group by col1")}}} \tn % Row Count 26 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}