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%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20442px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F218141i9109B61F957C277B%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22image.png%22%20alt%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3Eformula%20could%20be%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-excel%22%3E%3CCODE%3E%3DMIN(%0A%20%20MMULT(%0A%20%20%20%20INDEX(%24B%243%3AINDEX(%24B%243%3A%24B%24100%2CCOUNTA(%24B%243%3A%24B%24100))%2C%0A%20%20%20%20%20%20%20%20SEQUENCE(1%2CDaysNumber)%2BSEQUENCE(COUNTA(%24B%243%3A%24B%24100)-DaysNumber%2B1%2C1)-1%0A%20%20%20%20)%2C%0A%20%20%20SEQUENCE(DaysNumber%2C1%2C1%2C0)%0A%20%20%20)%0A)%3C%2FCODE%3E%3C%2FPRE%3E%0A%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
Highlighted
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