Minimum sum for sequential 7 days

%3CLINGO-SUB%20id%3D%22lingo-sub-1664191%22%20slang%3D%22en-US%22%3EMinimum%20sum%20for%20sequential%207%20days%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1664191%22%20slang%3D%22en-US%22%3E%3CP%3EPost%20with%20question%20was%20published%20some%20ago%20and%20deleted%20in%20a%20short%20while.%20The%20task%20is%20to%20find%20minimum%20sum%20of%20any%20sequential%207%20records.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3Eformula%20could%20be%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3DMIN(%20MMULT(%20INDEX(%24B%243%3AINDEX(%24B%243%3A%24B%24100%2CCOUNTA(%24B%243%3A%24B%24100))%2C%20SEQUENCE(1%2CDaysNumber)%2BSEQUENCE(COUNTA(%24B%243%3A%24B%24100)-DaysNumber%2B1%2C1)-1%20)%2C%20SEQUENCE(DaysNumber%2C1%2C1%2C0)%20)%20)%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1664191%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
MVP

Post with question was published some ago and deleted in a short while. The task is to find minimum sum of any sequential 7 records.

image.png

formula could be

 

=MIN(
  MMULT(
    INDEX($B$3:INDEX($B$3:$B$100,COUNTA($B$3:$B$100)),
        SEQUENCE(1,DaysNumber)+SEQUENCE(COUNTA($B$3:$B$100)-DaysNumber+1,1)-1
    ),
   SEQUENCE(DaysNumber,1,1,0)
   )
)

 

0 Replies