example
When P1 selects the month, the A column should correspond to the G column, and the sum of the month P1 plus the previous month should be counted.
Cell P2 result should be =SUM(K2,K3,J2,J3)
Any help would be appreciated!
example
When P1 selects the month, the A column should correspond to the G column, and the sum of the month P1 plus the previous month should be counted.
Cell P2 result should be =SUM(K2,K3,J2,J3)
Any help would be appreciated!
Last edited by metrostar; 10-11-2022 at 08:34 PM.
Try this in P2. You can use the logic in this one for the remainder of the yellow highlighted cells.
![]()
=SUM(OFFSET(A2,0,MATCH($P$1,$B$1:$M$1,0)),OFFSET(A3,0,MATCH($P$1,$B$1:$M$1,0)),OFFSET(A2,0,MATCH($P$1,$B$1:$M$1,0)-1),OFFSET(A3,0,MATCH($P$1,$B$1:$M$1,0)-1))
Happy with my advice? Click on the * reputation button below
Cell P2 formula , Drag down
Formula:
=SUM(SUMIF(A:A,"*"&$O2&"*",OFFSET(A:A,,MATCH(P$1,$B$1:$M$1,)+{-1;0})))
Thank you @Crooza , your formula doesn't do what I want
@wk9128 you are amazing, just what i wanted, thank you
@metrostar You're Welcome. Glad to help . Thank You for the feedback.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks