=LET (Spend,SUMIF (T_Budget [Category],E2,T_Budget [Cost]),IFS (Spend>F2,"Over budget",Spend=F2,"Budget hit",Spend> (F2*0.9), ...
Learn how to calculate payback and discounted payback in Excel with formulas, SCAN, XMATCH, LET, and SWITCH, plus ...