Forum Discussion

SignalRaptor's avatar
SignalRaptor
Copper Contributor
Oct 29, 2023
Solved

Shortening a Long Excel Formula

I'm still relatively new to Excel and I'm trying to automate this but there's more than a few conditions and the length of the formula is getting a little out of hand.   SUM(B3:B43)+IF((SUM(B3:B43...
  • JoeUser2004's avatar
    JoeUser2004
    Oct 31, 2023

    SignalRaptor  wrote:  ``With relative references I just dragged the formula horizontally across and it updated automatically``

     

    You're absolutely right.  (Pun intended. wink)  I don't know why I suggested the mixed absolute alternative.  Again, I just reacted to your comment ``so I don't have to type "SUM(#3:#43)" over and over`` without giving it much thought.

     

    Re: "if you have the same thing written over and over, you've done something inefficient".  That was my primary interest, as well.  And I think I addressed that issue.

     

    PS....  If you wish, the LET expression could be:

     

    =LET( s, SUM(B$3:B$43), amt, ROUND(s * (1 + DATEDIF($A$1,$A$2,"m")*10%/12), 2),

    amt + MAX(ROUND(amt*1.75%, 2), 0.25) * (s > 0) )

Resources