Hello all, windows 7sp1 64 bit (8gb ram, i7 dual core proc) with excel 64 bit (64 bit is needed for larger calculations).
I need some help with the below formula and how to make it smaller or faster using loops. I am good with powershell, just not excel
Thank you for your time and help with this!
=IF(AND(ISBLANK($D$2),ISBLANK($D$3),ISBLANK($D$4),ISBLANK($D$5),ISBLANK($D$6)),SUM('Cash Model'!BG$122:BG263),
IF(AND(ISBLANK($D$2),ISBLANK($D$3),ISBLANK($D$4),ISBLANK($D$5),ISTEXT($D$6)),SUMIF('Cash Model'!$F$122:$F263,$D$6,'Cash Model'!BG$122:BG263),
IF(AND(ISBLANK($D$2),ISBLANK($D$3),ISBLANK($D$4),ISNUMBER($D$5),ISTEXT($D$6)),SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$E$122:$E263,$D$5,'Cash Model'!$F$122:$F263,$D$6),
IF(AND(ISBLANK($D$2),ISBLANK($D$3),ISBLANK($D$4),ISNUMBER($D$5),ISBLANK($D$6)),SUMIF('Cash Model'!$E$122:$E263,$D$5,'Cash Model'!BG$122:BG263),
IF(AND(ISBLANK($D$2),ISBLANK($D$3),ISTEXT($D$4),ISBLANK($D$5),ISBLANK($D$6)),SUMIF('Cash Model'!$D$122:$D263,$D$4,'Cash Model'!BG$122:BG263),
IF(AND(ISBLANK($D$2),ISBLANK($D$3),ISTEXT($D$4),ISBLANK($D$5),ISTEXT($D$6)),SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$D$122:$D263,$D$4,'Cash Model'!$F$122:$F263,$D$6),
IF(AND(ISBLANK($D$2),ISBLANK($D$3),ISTEXT($D$4),ISNUMBER($D$5),ISBLANK($D$6)),SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$D$122:$D263,$D$4,'Cash Model'!$E$122:$E263,$D$5),
IF(AND(ISBLANK($D$2),ISBLANK($D$3),ISTEXT($D$4),ISNUMBER($D$5),ISTEXT($D$6)),SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$D$122:$D263,$D$4,'Cash Model'!$E$122:$E263,$D$5,'Cash Model'!$F$122:$F263,$D$6),
IF(AND(ISBLANK($D$2),ISTEXT($D$3),ISBLANK($D$4),ISBLANK($D$5),ISBLANK($D$6)),SUMIF('Cash Model'!$C$122:$C263,$D$3,'Cash Model'!BG$122:BG263),
IF(AND(ISBLANK($D$2),ISTEXT($D$3),ISBLANK($D$4),ISBLANK($D$5),ISTEXT($D$6)),SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$C$122:$C263,$D$3,'Cash Model'!$F$122:$F263,$D$6),
IF(AND(ISBLANK($D$2),ISTEXT($D$3),ISBLANK($D$4),ISNUMBER($D$5),ISTEXT($D$6)),SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$C$122:$C263,$D$3,'Cash Model'!$E$122:$E263,$D$5,'Cash Model'!$F$122:$F263,$D$6),
IF(AND(ISBLANK($D$2),ISTEXT($D$3),ISBLANK($D$4),ISNUMBER($D$5),ISBLANK($D$6)),SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$C$122:$C263,$D$3,'Cash Model'!$E$122:$E263,$D$5),
IF(AND(ISBLANK($D$2),ISTEXT($D$3),ISTEXT($D$4),ISBLANK($D$5),ISBLANK($D$6)),SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$C$122:$C263,$D$3,'Cash Model'!$D$122:$D263,$D$4),
IF(AND(ISBLANK($D$2),ISTEXT($D$3),ISTEXT($D$4),ISBLANK($D$5),ISTEXT($D$6)),SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$C$122:$C263,$D$3,'Cash Model'!$D$122:$D263,$D$4,'Cash Model'!$F$122:$F263,$D$6),
IF(AND(ISBLANK($D$2),ISTEXT($D$3),ISTEXT($D$4),ISNUMBER($D$5),ISBLANK($D$6)),SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$C$122:$C263,$D$3,'Cash Model'!$D$122:$D263,$D$4,'Cash Model'!$E$122:$E263,$D$5),
IF(AND(ISBLANK($D$2),ISTEXT($D$3),ISTEXT($D$4),ISNUMBER($D$5),ISTEXT($D$6)),SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$C$122:$C263,$D$3,'Cash Model'!$D$122:$D263,$D$4,'Cash Model'!$E$122:$E263,$D$5,'Cash Model'!$F$122:$F263,$D$6),
IF(AND(ISTEXT($D$2),ISTEXT($D$3),ISTEXT($D$4),ISNUMBER($D$5),ISBLANK($D$6)),SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$B$122:$B263,$D$2,'Cash Model'!$C$122:$C263,$D$3,'Cash Model'!$D$122:$D263,$D$4,'Cash Model'!$E$122:$E263,$D$5),
IF(AND(ISTEXT($D$2),ISTEXT($D$3),ISTEXT($D$4),ISBLANK($D$5),ISBLANK($D$6)),SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$B$122:$B263,$D$2,'Cash Model'!$C$122:$C263,$D$3,'Cash Model'!$D$122:$D263,$D$4),
IF(AND(ISTEXT($D$2),ISTEXT($D$3),ISTEXT($D$4),ISBLANK($D$5),ISTEXT($D$6)),SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$B$122:$B263,$D$2,'Cash Model'!$C$122:$C263,$D$3,'Cash Model'!$D$122:$D263,$D$4,'Cash Model'!$F$122:$F263,$D$6),
IF(AND(ISTEXT($D$2),ISTEXT($D$3),ISBLANK($D$4),ISNUMBER($D$5),ISTEXT($D$6)),SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$B$122:$B263,$D$2,'Cash Model'!$C$122:$C263,$D$3,'Cash Model'!$E$122:$E263,$D$5,'Cash Model'!$F$122:$F263,$D$6),
IF(AND(ISTEXT($D$2),ISTEXT($D$3),ISBLANK($D$4),ISNUMBER($D$5),ISBLANK($D$6)),SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$B$122:$B263,$D$2,'Cash Model'!$C$122:$C263,$D$3,'Cash Model'!$E$122:$E263,$D$5),
IF(AND(ISTEXT($D$2),ISTEXT($D$3),ISBLANK($D$4),ISBLANK($D$5),ISTEXT($D$6)),SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$B$122:$B263,$D$2,'Cash Model'!$C$122:$C263,$D$3,'Cash Model'!$F$122:$F263,$D$6),
IF(AND(ISTEXT($D$2),ISTEXT($D$3),ISBLANK($D$4),ISBLANK($D$5),ISBLANK($D$6)),SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$B$122:$B263,$D$2,'Cash Model'!$C$122:$C263,$D$3),
IF(AND(ISTEXT($D$2),ISBLANK($D$3),ISTEXT($D$4),ISNUMBER($D$5),ISTEXT($D$6)),SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$B$122:$B263,$D$2,'Cash Model'!$D$122:$D263,$D$4,'Cash Model'!$E$122:$E263,$D$5,'Cash Model'!$F$122:$F263,$D$6),
IF(AND(ISTEXT($D$2),ISBLANK($D$3),ISTEXT($D$4),ISNUMBER($D$5),ISBLANK($D$6)),SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$B$122:$B263,$D$2,'Cash Model'!$D$122:$D263,$D$4,'Cash Model'!$E$122:$E263,$D$5),
IF(AND(ISTEXT($D$2),ISBLANK($D$3),ISTEXT($D$4),ISBLANK($D$5),ISBLANK($D$6)),SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$B$122:$B263,$D$2,'Cash Model'!$D$122:$D263,$D$4),
IF(AND(ISTEXT($D$2),ISBLANK($D$3),ISTEXT($D$4),ISBLANK($D$5),ISTEXT($D$6)),SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$B$122:$B263,$D$2,'Cash Model'!$D$122:$D263,$D$4,'Cash Model'!$F$122:$F263,$D$6),
IF(AND(ISTEXT($D$2),ISBLANK($D$3),ISBLANK($D$4),ISNUMBER($D$5),ISTEXT($D$6)),SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$B$122:$B263,$D$2,'Cash Model'!$E$122:$E263,$D$5,'Cash Model'!$F$122:$F263,$D$6),
IF(AND(ISTEXT($D$2),ISBLANK($D$3),ISBLANK($D$4),ISNUMBER($D$5),ISBLANK($D$6)),SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$B$122:$B263,$D$2,'Cash Model'!$E$122:$E263,$D$5),
IF(AND(ISTEXT($D$2),ISBLANK($D$3),ISBLANK($D$4),ISBLANK($D$5),ISTEXT($D$6)),SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$B$122:$B263,$D$2,'Cash Model'!$F$122:$F263,$D$6),
IF(AND(ISTEXT($D$2),ISBLANK($D$3),ISBLANK($D$4),ISBLANK($D$5),ISBLANK($D$6)),SUMIF('Cash Model'!$B$122:$B263,$D$2,'Cash Model'!BG$122:BG263),
SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$B$122:$B263,$D$2,'Cash Model'!$C$122:$C263,$D$3,'Cash Model'!$D$122:$D263,$D$4,'Cash Model'!$E$122:$E263,$D$5,'Cash Model'!$F$122:$F263,$D$6))))))))))))))))))))))))))))))))
I need some help with the below formula and how to make it smaller or faster using loops. I am good with powershell, just not excel
Thank you for your time and help with this!
=IF(AND(ISBLANK($D$2),ISBLANK($D$3),ISBLANK($D$4),ISBLANK($D$5),ISBLANK($D$6)),SUM('Cash Model'!BG$122:BG263),
IF(AND(ISBLANK($D$2),ISBLANK($D$3),ISBLANK($D$4),ISBLANK($D$5),ISTEXT($D$6)),SUMIF('Cash Model'!$F$122:$F263,$D$6,'Cash Model'!BG$122:BG263),
IF(AND(ISBLANK($D$2),ISBLANK($D$3),ISBLANK($D$4),ISNUMBER($D$5),ISTEXT($D$6)),SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$E$122:$E263,$D$5,'Cash Model'!$F$122:$F263,$D$6),
IF(AND(ISBLANK($D$2),ISBLANK($D$3),ISBLANK($D$4),ISNUMBER($D$5),ISBLANK($D$6)),SUMIF('Cash Model'!$E$122:$E263,$D$5,'Cash Model'!BG$122:BG263),
IF(AND(ISBLANK($D$2),ISBLANK($D$3),ISTEXT($D$4),ISBLANK($D$5),ISBLANK($D$6)),SUMIF('Cash Model'!$D$122:$D263,$D$4,'Cash Model'!BG$122:BG263),
IF(AND(ISBLANK($D$2),ISBLANK($D$3),ISTEXT($D$4),ISBLANK($D$5),ISTEXT($D$6)),SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$D$122:$D263,$D$4,'Cash Model'!$F$122:$F263,$D$6),
IF(AND(ISBLANK($D$2),ISBLANK($D$3),ISTEXT($D$4),ISNUMBER($D$5),ISBLANK($D$6)),SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$D$122:$D263,$D$4,'Cash Model'!$E$122:$E263,$D$5),
IF(AND(ISBLANK($D$2),ISBLANK($D$3),ISTEXT($D$4),ISNUMBER($D$5),ISTEXT($D$6)),SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$D$122:$D263,$D$4,'Cash Model'!$E$122:$E263,$D$5,'Cash Model'!$F$122:$F263,$D$6),
IF(AND(ISBLANK($D$2),ISTEXT($D$3),ISBLANK($D$4),ISBLANK($D$5),ISBLANK($D$6)),SUMIF('Cash Model'!$C$122:$C263,$D$3,'Cash Model'!BG$122:BG263),
IF(AND(ISBLANK($D$2),ISTEXT($D$3),ISBLANK($D$4),ISBLANK($D$5),ISTEXT($D$6)),SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$C$122:$C263,$D$3,'Cash Model'!$F$122:$F263,$D$6),
IF(AND(ISBLANK($D$2),ISTEXT($D$3),ISBLANK($D$4),ISNUMBER($D$5),ISTEXT($D$6)),SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$C$122:$C263,$D$3,'Cash Model'!$E$122:$E263,$D$5,'Cash Model'!$F$122:$F263,$D$6),
IF(AND(ISBLANK($D$2),ISTEXT($D$3),ISBLANK($D$4),ISNUMBER($D$5),ISBLANK($D$6)),SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$C$122:$C263,$D$3,'Cash Model'!$E$122:$E263,$D$5),
IF(AND(ISBLANK($D$2),ISTEXT($D$3),ISTEXT($D$4),ISBLANK($D$5),ISBLANK($D$6)),SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$C$122:$C263,$D$3,'Cash Model'!$D$122:$D263,$D$4),
IF(AND(ISBLANK($D$2),ISTEXT($D$3),ISTEXT($D$4),ISBLANK($D$5),ISTEXT($D$6)),SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$C$122:$C263,$D$3,'Cash Model'!$D$122:$D263,$D$4,'Cash Model'!$F$122:$F263,$D$6),
IF(AND(ISBLANK($D$2),ISTEXT($D$3),ISTEXT($D$4),ISNUMBER($D$5),ISBLANK($D$6)),SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$C$122:$C263,$D$3,'Cash Model'!$D$122:$D263,$D$4,'Cash Model'!$E$122:$E263,$D$5),
IF(AND(ISBLANK($D$2),ISTEXT($D$3),ISTEXT($D$4),ISNUMBER($D$5),ISTEXT($D$6)),SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$C$122:$C263,$D$3,'Cash Model'!$D$122:$D263,$D$4,'Cash Model'!$E$122:$E263,$D$5,'Cash Model'!$F$122:$F263,$D$6),
IF(AND(ISTEXT($D$2),ISTEXT($D$3),ISTEXT($D$4),ISNUMBER($D$5),ISBLANK($D$6)),SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$B$122:$B263,$D$2,'Cash Model'!$C$122:$C263,$D$3,'Cash Model'!$D$122:$D263,$D$4,'Cash Model'!$E$122:$E263,$D$5),
IF(AND(ISTEXT($D$2),ISTEXT($D$3),ISTEXT($D$4),ISBLANK($D$5),ISBLANK($D$6)),SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$B$122:$B263,$D$2,'Cash Model'!$C$122:$C263,$D$3,'Cash Model'!$D$122:$D263,$D$4),
IF(AND(ISTEXT($D$2),ISTEXT($D$3),ISTEXT($D$4),ISBLANK($D$5),ISTEXT($D$6)),SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$B$122:$B263,$D$2,'Cash Model'!$C$122:$C263,$D$3,'Cash Model'!$D$122:$D263,$D$4,'Cash Model'!$F$122:$F263,$D$6),
IF(AND(ISTEXT($D$2),ISTEXT($D$3),ISBLANK($D$4),ISNUMBER($D$5),ISTEXT($D$6)),SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$B$122:$B263,$D$2,'Cash Model'!$C$122:$C263,$D$3,'Cash Model'!$E$122:$E263,$D$5,'Cash Model'!$F$122:$F263,$D$6),
IF(AND(ISTEXT($D$2),ISTEXT($D$3),ISBLANK($D$4),ISNUMBER($D$5),ISBLANK($D$6)),SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$B$122:$B263,$D$2,'Cash Model'!$C$122:$C263,$D$3,'Cash Model'!$E$122:$E263,$D$5),
IF(AND(ISTEXT($D$2),ISTEXT($D$3),ISBLANK($D$4),ISBLANK($D$5),ISTEXT($D$6)),SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$B$122:$B263,$D$2,'Cash Model'!$C$122:$C263,$D$3,'Cash Model'!$F$122:$F263,$D$6),
IF(AND(ISTEXT($D$2),ISTEXT($D$3),ISBLANK($D$4),ISBLANK($D$5),ISBLANK($D$6)),SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$B$122:$B263,$D$2,'Cash Model'!$C$122:$C263,$D$3),
IF(AND(ISTEXT($D$2),ISBLANK($D$3),ISTEXT($D$4),ISNUMBER($D$5),ISTEXT($D$6)),SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$B$122:$B263,$D$2,'Cash Model'!$D$122:$D263,$D$4,'Cash Model'!$E$122:$E263,$D$5,'Cash Model'!$F$122:$F263,$D$6),
IF(AND(ISTEXT($D$2),ISBLANK($D$3),ISTEXT($D$4),ISNUMBER($D$5),ISBLANK($D$6)),SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$B$122:$B263,$D$2,'Cash Model'!$D$122:$D263,$D$4,'Cash Model'!$E$122:$E263,$D$5),
IF(AND(ISTEXT($D$2),ISBLANK($D$3),ISTEXT($D$4),ISBLANK($D$5),ISBLANK($D$6)),SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$B$122:$B263,$D$2,'Cash Model'!$D$122:$D263,$D$4),
IF(AND(ISTEXT($D$2),ISBLANK($D$3),ISTEXT($D$4),ISBLANK($D$5),ISTEXT($D$6)),SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$B$122:$B263,$D$2,'Cash Model'!$D$122:$D263,$D$4,'Cash Model'!$F$122:$F263,$D$6),
IF(AND(ISTEXT($D$2),ISBLANK($D$3),ISBLANK($D$4),ISNUMBER($D$5),ISTEXT($D$6)),SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$B$122:$B263,$D$2,'Cash Model'!$E$122:$E263,$D$5,'Cash Model'!$F$122:$F263,$D$6),
IF(AND(ISTEXT($D$2),ISBLANK($D$3),ISBLANK($D$4),ISNUMBER($D$5),ISBLANK($D$6)),SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$B$122:$B263,$D$2,'Cash Model'!$E$122:$E263,$D$5),
IF(AND(ISTEXT($D$2),ISBLANK($D$3),ISBLANK($D$4),ISBLANK($D$5),ISTEXT($D$6)),SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$B$122:$B263,$D$2,'Cash Model'!$F$122:$F263,$D$6),
IF(AND(ISTEXT($D$2),ISBLANK($D$3),ISBLANK($D$4),ISBLANK($D$5),ISBLANK($D$6)),SUMIF('Cash Model'!$B$122:$B263,$D$2,'Cash Model'!BG$122:BG263),
SUMIFS('Cash Model'!BG$122:BG263,'Cash Model'!$B$122:$B263,$D$2,'Cash Model'!$C$122:$C263,$D$3,'Cash Model'!$D$122:$D263,$D$4,'Cash Model'!$E$122:$E263,$D$5,'Cash Model'!$F$122:$F263,$D$6))))))))))))))))))))))))))))))))