Here’s the equivalent/similar change to the Savings Budget.
Savings Budget cell H12
addition after IF(N12:N="Category",
:
IF((E12:E=0)+(ISNUMBER(FIND("Budget",B12:B))),0,
Cell H12
Before:
=ARRAYFORMULA(IF(N12:N="Category",VLOOKUP(B12:B,{$AE$11:$AE,$AR$11:$AR},2,FALSE),IF(N12:N="Type",SUMIF($AF$11:$AF&$AH$11:$AH,B12:B,$AR$11:$AR),IF(ISBLANK(N12:N),IFERROR(1/0),SUMIF($AF$11:$AF&$AG$11:$AG&$AH$11:$AH,N12:N&B12:B,$AR$11:$AR)))))
Cell H12
After:
=ARRAYFORMULA(IF(N12:N="Category",IF((E12:E=0)+(ISNUMBER(FIND("Budget",B12:B))),0,VLOOKUP(B12:B,{$AE$11:$AE,$AR$11:$AR},2,FALSE)),IF(N12:N="Type",SUMIF($AF$11:$AF&$AH$11:$AH,B12:B,$AR$11:$AR),IF(ISBLANK(N12:N),IFERROR(1/0),SUMIF($AF$11:$AF&$AG$11:$AG&$AH$11:$AH,N12:N&B12:B,$AR$11:$AR)))))
To remove the sparkline in the PROGRESS
column for BUDGET=0
.
Cell G12
outer IF-block addition:
IF(E12=0,,
Cell E12
Before:
=IFERROR(
IF(or(O12="Expense",N12="Expense",and(N12="Type",B12="EXPENSE")),
IF(F12+1<=E12+D12,
SPARKLINE({if(isblank(F12),0,F12)},{"charttype","bar";"max",E12+D12;"color1","#2e86de"}),
SPARKLINE({max(0,E12+D12),F12-E12-D12},{"charttype","bar";"max",F12;"color1","#69c569";"color2","#de4c60"})),
IF(or(O12="Income",N12="Income",and(N12="Type",B12="INCOME")),
IF(F12<=E12-D12,
SPARKLINE({if(isblank(F12),0,F12),E12-D12-F12},{"charttype","bar";"max",E12-D12;"color1","#2e86de";"color2","#de4c60"}),
SPARKLINE(F12,{"charttype","bar";"max",F12;"color1","#69c569"})),
IFERROR(1/0))))
Cell E12
After:
=IFERROR(
IF(E12=0,,
IF(or(O12="Expense",N12="Expense",and(N12="Type",B12="EXPENSE")),
IF(F12+1<=E12+D12,
SPARKLINE({if(isblank(F12),0,F12)},{"charttype","bar";"max",E12+D12;"color1","#2e86de"}),
SPARKLINE({max(0,E12+D12),F12-E12-D12},{"charttype","bar";"max",F12;"color1","#69c569";"color2","#de4c60"})),
IF(or(O12="Income",N12="Income",and(N12="Type",B12="INCOME")),
IF(F12<=E12-D12,
SPARKLINE({if(isblank(F12),0,F12),E12-D12-F12},{"charttype","bar";"max",E12-D12;"color1","#2e86de";"color2","#de4c60"}),
SPARKLINE(F12,{"charttype","bar";"max",F12;"color1","#69c569"})),
IFERROR(1/0)))))
The cell E12
formula change would need to be copied down to the end of column E, since it is not an ARRAYFORMULA and cell has it’s own formula.