Excel Data Manipulation CheatSheet 1731972102
Excel Data Manipulation CheatSheet 1731972102
1. Text Functions
2. Date Functions
3. Lookup Functions
4. Conditional Functions
5. Array Functions
6. Statistical Functions
7. Text Manipulation
8. Data Cleaning
● Moving correlation:
=CORREL(OFFSET($A$1,ROW()-1,0,N,1),OFFSET($B$1,ROW()-1,0,N,1))
● Exponential smoothing: =α*Current+(1-α)*Previous
● Linear regression:
=SLOPE(y_range,x_range)*x+INTERCEPT(y_range,x_range)
● Compound annual growth rate: =(Last/First)^(1/Years)-1
● Rolling standard deviation: =STDEV.P(OFFSET($A$1,ROW()-1,0,N,1))
● Anomaly detection:
=IF(ABS(Current-AVERAGE(Range))>2*STDEV.P(Range),"Anomaly","Normal"
)
● Pareto analysis: =SUMPRODUCT(--(Range>=Current))/SUM(Range)
● ABC classification:
=IF(CumulativePercent<=0.8,"A",IF(CumulativePercent<=0.95,"B","C"))
● Time series decomposition: =Current/AVERAGE(OFFSET(Current,-11,0,12))
● Forecast: =FORECAST.LINEAR(x,known_y,known_x)
● Multi-condition lookup:
=INDEX(Return,MATCH(1,(Condition1)*(Condition2),0))
● Dynamic named range: =OFFSET(StartCell,0,0,COUNTA(Column),1)
● Indirect reference: =INDIRECT("Sheet1!A"&ROW())
● Column letter to number: =COLUMN(INDIRECT(ColumnLetter&"1"))
● Find last row: =MATCH(2,1/(NOT(ISBLANK(Range))),1)
● Find last column: =MATCH(2,1/(NOT(ISBLANK(Row))),1)
● Dynamic range reference: =ADDRESS(ROW(),COLUMN())
● Cross-worksheet reference:
=INDIRECT("'"&SheetName&"'!"&CellReference)
● Array lookup: =INDEX(Return,SMALL(IF(Condition,ROW(Condition)),N))
● Reverse lookup: =INDEX(Return,MATCH(Value,Index,0))
● Pivot data:
=CHOOSE(MATCH(Category,Categories,0),Value1,Value2,Value3)
● Unpivot data: =OFFSET($A$1,ROW(A1)-1,COLUMN(A1)-1)
● Transpose dynamic range: =TRANSPOSE(Range)
● Cross-tabulation: =SUMPRODUCT((Category1=A1)*(Category2=B1)*Values)
● Data reshaping:
=INDEX(DataRange,QUOTIENT(ROW()-1,NumColumns)+1,MOD(ROW()-1,NumColu
mns)+1)
● Array expansion: =SEQUENCE(ROWS(Range)*COLUMNS(Range))
● Matrix multiplication: =MMULT(Matrix1,Matrix2)
● Vector operations: =SUMPRODUCT(Vector1,Vector2)
● Data normalization: =(Value-MIN(Range))/(MAX(Range)-MIN(Range))
● Data standardization: =(Value-AVERAGE(Range))/STDEV.P(Range)
● Customer segmentation:
=IF(Value>Threshold1,"Premium",IF(Value>Threshold2,"Standard","Basi
c"))
● Profitability analysis: =(Revenue-Cost)/Revenue
● Price elasticity: =(ΔQuantity/Quantity)/(ΔPrice/Price)
● Market basket analysis:
=SUMPRODUCT((Product1=1)*(Product2=1))/COUNT(Transactions)
● Customer lifetime value:
=PresentValue*(1+GrowthRate)/(1+DiscountRate-GrowthRate)
● Churn prediction: =IF(DaysSinceLastPurchase>Threshold,"At
Risk","Active")
● Sales forecasting:
=FORECAST.ETS(FutureDate,HistoricalValues,HistoricalDates)
● Inventory optimization: =SQRT(2*AnnualDemand*OrderCost/HoldingCost)
● Break-even analysis: =FixedCosts/(PricePerUnit-VariableCostPerUnit)
● Performance scorecard: =SUMPRODUCT(Weights,NormalizedMetrics)