Excel sum index match date criteria

Daily Data table (extract) (current size: rows 500 columns 1500)

Emp27/10/1928/10/1929/10/1930/10/19
1234565.07.07.07.0
2345676.08.08.08.0

Weekly Summary table (extract)

Emp27/10-02/11/1903/11-09/11/19
123456??????
234567??????

These are structured table on different worksheet within the same workbook. Any formula to use in ??? to calculate sum of 7 days as described in the header cell?

Thank you.

1 Answer

Try the formula solution

In "Weekly Summary Table" B8, formula copied right to C8 and all copied down :

1] Using SUMIFS function

=SUMIFS(INDEX($2:$3,MATCH($A8,$A$2:$A$3,0),0),$1:$1,">="&REPLACE(B$7,6,6,""),$1:$1,"<="&RIGHT(B$7,8))

Or,

2] Using SUM+OFFSET function

=SUM(OFFSET($A$1,MATCH($A8,$A$2:$A$3,0),MATCH(0+REPLACE(B$7,6,6,""),$1:$1,0)-1,1,7)) 

enter image description here

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like