I have a formula with 8433 characters, however, it seems that Excel only allows for 8192. With more than 70 conditions, the "if" statement is extensive. Is there a more effective approach to analyse the criteria so that the formula below uses fewer characters?
=IF(ISBLANK(AD3),"",IF(
SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Buy",Transactions!$F$3:$F,"Stock",Transactions!$D$3:$D,AD3)
+SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"DRIP",Transactions!$F$3:$F,"Stock",Transactions!$D$3:$D,AD3)
+SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Transfer Deposit",Transactions!$F$3:$F,"Stock",Transactions!$D$3:$D,AD3)
+SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Buy",Transactions!$F$3:$F,"ETF",Transactions!$D$3:$D,AD3)
+SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"DRIP",Transactions!$F$3:$F,"ETF",Transactions!$D$3:$D,AD3)
+SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Transfer Deposit",Transactions!$F$3:$F,"ETF",Transactions!$D$3:$D,AD3)
+SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Buy",Transactions!$F$3:$F,"Commodity",Transactions!$D$3:$D,AD3)
+SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"DRIP",Transactions!$F$3:$F,"Commodity",Transactions!$D$3:$D,AD3)
+SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Transfer Deposit",Transactions!$F$3:$F,"Commodity",Transactions!$D$3:$D,AD3)
+SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Buy",Transactions!$F$3:$F,"Managed Fund",Transactions!$D$3:$D,AD3)
+SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"DRIP",Transactions!$F$3:$F,"Managed Fund",Transactions!$D$3:$D,AD3)
+SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Transfer Deposit",Transactions!$F$3:$F,"Managed Fund",Transactions!$D$3:$D,AD3)
+SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Buy",Transactions!$F$3:$F,"REIT",Transactions!$D$3:$D,AD3)
+SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"DRIP",Transactions!$F$3:$F,"REIT",Transactions!$D$3:$D,AD3)
+SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Transfer Deposit",Transactions!$F$3:$F,"REIT",Transactions!$D$3:$D,AD3)
-SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Sell",Transactions!$F$3:$F,"Stock",Transactions!$D$3:$D,AD3)
-SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Transfer Send",Transactions!$F$3:$F,"Stock",Transactions!$D$3:$D,AD3)
-SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Sell",Transactions!$F$3:$F,"ETF",Transactions!$D$3:$D,AD3)
-SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Transfer Send",Transactions!$F$3:$F,"ETF",Transactions!$D$3:$D,AD3)
-SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Sell",Transactions!$F$3:$F,"Commodity",Transactions!$D$3:$D,AD3)
-SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Transfer Send",Transactions!$F$3:$F,"Commodity",Transactions!$D$3:$D,AD3)
-SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Sell",Transactions!$F$3:$F,"Managed Fund",Transactions!$D$3:$D,AD3)
-SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Transfer Send",Transactions!$F$3:$F,"Managed Fund",Transactions!$D$3:$D,AD3)
-SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Sell",Transactions!$F$3:$F,"REIT",Transactions!$D$3:$D,AD3)
-SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Transfer Send",Transactions!$F$3:$F,"REIT",Transactions!$D$3:$D,AD3)
+SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Buy",Transactions!$F$3:$F,"Crypto",Transactions!$D$3:$D,AD3)
+SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Crypto Interest",Transactions!$F$3:$F,"Crypto",Transactions!$D$3:$D,AD3)
+SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Transfer Deposit",Transactions!$F$3:$F,"Crypto",Transactions!$D$3:$D,AD3)
-SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Transfer Send",Transactions!$F$3:$F,"Crypto",Transactions!$D$3:$D,AD3)
-SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Sell",Transactions!$F$3:$F,"Crypto",Transactions!$D$3:$D,AD3)
+SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Buy",Transactions!$F$3:$F,"Stablecoin",Transactions!$D$3:$D,AD3)
+SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Crypto Interest",Transactions!$F$3:$F,"Stablecoin",Transactions!$D$3:$D,AD3)
+SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Transfer Deposit",Transactions!$F$3:$F,"Stablecoin",Transactions!$D$3:$D,AD3)
-SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Transfer Send",Transactions!$F$3:$F,"Stablecoin",Transactions!$D$3:$D,AD3)
-SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Sell",Transactions!$F$3:$F,"Stablecoin",Transactions!$D$3:$D,AD3)
-SUMIFS(Transactions!$M$3:$M,Transactions!$H$3:$H,"Buy",Transactions!$B$3:$B,AD3)=0,"Sold All",
SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Buy",Transactions!$F$3:$F,"Stock",Transactions!$D$3:$D,AD3)
+SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"DRIP",Transactions!$F$3:$F,"Stock",Transactions!$D$3:$D,AD3)
+SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Transfer Deposit",Transactions!$F$3:$F,"Stock",Transactions!$D$3:$D,AD3)
+SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Buy",Transactions!$F$3:$F,"ETF",Transactions!$D$3:$D,AD3)
+SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"DRIP",Transactions!$F$3:$F,"ETF",Transactions!$D$3:$D,AD3)
+SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Transfer Deposit",Transactions!$F$3:$F,"ETF",Transactions!$D$3:$D,AD3)
+SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Buy",Transactions!$F$3:$F,"Commodity",Transactions!$D$3:$D,AD3)
+SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"DRIP",Transactions!$F$3:$F,"Commodity",Transactions!$D$3:$D,AD3)
+SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Transfer Deposit",Transactions!$F$3:$F,"Commodity",Transactions!$D$3:$D,AD3)
+SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Buy",Transactions!$F$3:$F,"Managed Fund",Transactions!$D$3:$D,AD3)
+SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"DRIP",Transactions!$F$3:$F,"Managed Fund",Transactions!$D$3:$D,AD3)
+SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Transfer Deposit",Transactions!$F$3:$F,"Managed Fund",Transactions!$D$3:$D,AD3)
+SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Buy",Transactions!$F$3:$F,"REIT",Transactions!$D$3:$D,AD3)
+SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"DRIP",Transactions!$F$3:$F,"REIT",Transactions!$D$3:$D,AD3)
+SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Transfer Deposit",Transactions!$F$3:$F,"REIT",Transactions!$D$3:$D,AD3)
-SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Sell",Transactions!$F$3:$F,"Stock",Transactions!$D$3:$D,AD3)
-SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Transfer Send",Transactions!$F$3:$F,"Stock",Transactions!$D$3:$D,AD3)
-SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Sell",Transactions!$F$3:$F,"ETF",Transactions!$D$3:$D,AD3)
-SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Transfer Send",Transactions!$F$3:$F,"ETF",Transactions!$D$3:$D,AD3)
-SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Sell",Transactions!$F$3:$F,"Commodity",Transactions!$D$3:$D,AD3)
-SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Transfer Send",Transactions!$F$3:$F,"Commodity",Transactions!$D$3:$D,AD3)
-SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Sell",Transactions!$F$3:$F,"Managed Fund",Transactions!$D$3:$D,AD3)
-SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Transfer Send",Transactions!$F$3:$F,"Managed Fund",Transactions!$D$3:$D,AD3)
-SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Sell",Transactions!$F$3:$F,"REIT",Transactions!$D$3:$D,AD3)
-SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Transfer Send",Transactions!$F$3:$F,"REIT",Transactions!$D$3:$D,AD3)
+SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Buy",Transactions!$F$3:$F,"Crypto",Transactions!$D$3:$D,AD3)
+SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Crypto Interest",Transactions!$F$3:$F,"Crypto",Transactions!$D$3:$D,AD3)
+SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Transfer Deposit",Transactions!$F$3:$F,"Crypto",Transactions!$D$3:$D,AD3)
-SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Transfer Send",Transactions!$F$3:$F,"Crypto",Transactions!$D$3:$D,AD3)
-SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Sell",Transactions!$F$3:$F,"Crypto",Transactions!$D$3:$D,AD3)
+SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Buy",Transactions!$F$3:$F,"Stablecoin",Transactions!$D$3:$D,AD3)
+SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Crypto Interest",Transactions!$F$3:$F,"Stablecoin",Transactions!$D$3:$D,AD3)
+SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Transfer Deposit",Transactions!$F$3:$F,"Stablecoin",Transactions!$D$3:$D,AD3)
-SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Transfer Send",Transactions!$F$3:$F,"Stablecoin",Transactions!$D$3:$D,AD3)
-SUMIFS(Transactions!$I$3:$I,Transactions!$H$3:$H,"Sell",Transactions!$F$3:$F,"Stablecoin",Transactions!$D$3:$D,AD3)
-SUMIFS(Transactions!$M$3:$M,Transactions!$H$3:$H,"Buy",Transactions!$B$3:$B,AD3)))
I tried to save the workbook in excel binary workbook format, but macros don't work