ABCDEFGHI
1
Copyright: Cheat Sheets LLC (CheatSheets.blog)
2
3
IDTitleBlog PostExample 1Example 2DescriptionFormula
4
F01Assign to Tiers or CohortsLinkLinkLinkUse a reference list (e.g., if >= X & < Y then tier Z) to arrange individual entities into tiers, cohorts, segments etc.ARRAYFORMULA ( FILTER ( returnRange , value >= min_refRange , value < max_refRange ) )
5
F02Filter with "IN" CritieriaLinkLink--Filter a range to include those which match any from a list of criteria (mimics "IN" SQL function)FILTER ( returnRange , ISNUMBER ( MATCH ( criteriaRange , inclusionList , 0 ) ) )
6
F03Filter with "NOT IN" CritieriaLinkLink--Filter a range to exclude those which match any from a list of criteria (mimics "NOT IN" SQL function)FILTER ( returnRange , NOT ( ISNUMBER ( MATCH ( criteriaRange , inclusionList , 0 ) ) ) )
7
F04Return X Sorted by YLinkLinkLinkReturn a filtered single-column data set sorted by data in a different columnTRANSPOSE ( INDEX ( TRANSPOSE ( SORT ( multicolumnRange , sortColumn_number , TRUE ) ) , returnColumn_number ) )
8
F05Unique List Across Multiple Columns--LinkLinkReturn a unique list of values from a multi-column rangeSORT ( UNIQUE ( TRANSPOSE ( SPLIT ( CONCATENATE ( ARRAYFORMULA ( multicolumnRange & "|" ) ) , "|" ) ) ) , 1 , TRUE )
9
F06Unique List Across Multiple Columns (XL)--Link--Return a unique list of values from a multi-column range. The same purpose as F06 (above). Use this if you get the "50K character limit" errorARRAYFORMULA ( UNIQUE ( TRANSPOSE ( SPLIT ( CONCATENATE ( targetColumn_1 & "|" , targetColumn_2 & "|" ) , "|" ) ) ) )
10
F07Avoid COUNTA False Positive with IFERRORLink--LinkIf you wrap FILTER in COUNTA to count filtered text values it will never read "0" because it registers "#N/A" as a value. Fix that with IFERRORCOUNTA ( IFERROR ( FILTER ( returnRange , criteriaRange = criteria ) ) )
11
F08Filter with "OR" ClauseLink--LinkBy default, FILTER uses "and" logic (filter if this is true AND this is true). This approach let's you use "OR" logicFILTER ( returnRange , ( criteriaRange_1 = criteriaRange_1 ) + ( criteriaRange_2 = criteriaRange_2 ) + ( criteriaRange_3 = criteriaRange_3 ) )
12
F09Add a Month with EDATELink--LinkWithout EDATE, adding a month is surprisingly complex. This formulas solves for thatEDATE ( value , addMonths_count )
13
F10Trim Unwanted Text with SubstituteLink--LinkThe "TRIM" formula removes spaces. But what if you need to remove underscores, commas or asterisks? That's what this formula is forSUBSTITUTE ( value , removedString , "" )
14
F11Format Titles with TEXTLink--LinkHere's a link to the TEXT syntax guideTEXT ( value , syntax )
15
F12Filter with Substring Criteria--Link--For example, search an array and return every value that contains and underscore, or the word "renewal"FILTER ( returnRange , ISNUMBER ( SEARCH ( substring , substringRange ) )
16
F13Determine if Substring in Range--Link--This is basically "ctrl+F" in the form of a formula. Works across multple rangesIFERROR ( IF ( SEARCH ( searchString , CONCATENATE ( searchRange_1 , searchRange_2 , searchRange_3 ) ) > 0 , "YES" ) , "NO" )
17
F14Replace Values within Filtered Return--Link--For example, search an array and, for any returned values, replace any underscores with commasFILTER ( ARRAYFORMULA ( SUBSTITUTE ( returnRange , removedString , replacementString ) ) , criteriaRange_1 = criteria_1 )
18
F15Gantt ChartLinkLink--Create an in-cell Gantt chart!SPARKLINE ( { INT( start_date ) - INT( overall_start_date ) , INT ( end_date ) - INT( start_date ) } , { "charttype" , "bar" ; "color1" , "white" ; "color2" , "black" ; "max" , INT ( overall_end_date ) - INT ( overall_start_date ) } )
19
F16Find Column Letter of Searched Value----LinkSearch for a value in a range and return the column letterSUBSTITUTE ( ADDRESS ( 1 , MATCH ( searchValue , entireRowRange , 0 ) , 4 ) , 1 , "" )
20
F17Find Row Number of Searched Value----LinkSearch for a value in a range and return the row numberSUBSTITUTE ( ADDRESS ( MATCH ( searchValue , entireColumnRange , 0 ) , 1 , 4 ) , "A" , "" )
21
F18Compound Growth Rate (CxGR)----LinkCalculate the growth rate required to arrive at the desired end balance over a set number of periods( endBalance / startBalance ) ^ ( 1 / periodCount) - 1
22
F19Compound Monthly Growth Rate (CMGR)----LinkCalculate the monthly growth rate required to arrive at the year-end balance in a single year( endBalance / startBalance ) ^ ( 1 / 12 ) - 1
23
F20$K/$M/$B Custom Number Format------Shorten currency formatting using this customer number format. From the navigation bar, go Format > Number > Custom Number Format and then paste this into the field at top[<999950]$0.0,"K";[<999950000]$0.0,,"M";$0.0,,,"B"
24