I have this formula:
=IF(C1=35,SUM(D4:D38)+D41+D42+D43,SUM(D4:D31)+D34+D35+D36)
But when I delete rows 32-38 it changes to this formula:
=IF(C1=35,SUM(D4:D31)+D34+D35+D36,SUM(D4:D31)+#REF!+#REF!+#REF!)
And that results in an output value of #REF!
How do I make it so that when I delete those 7 rows, the formula calculates the sum of the shortened range?
Bookmarks