Oct 03 2017
09:57 AM
- last edited on
Jul 25 2018
10:10 AM
by
TechCommunityAP
Oct 03 2017
09:57 AM
- last edited on
Jul 25 2018
10:10 AM
by
TechCommunityAP
Oct 04 2017 01:46 AM
Hi Nagendra,
You may use combination of OFFSET and MATCH. For this model (as in your picture)
for given date_moved 3 months before is found as
=OFFSET($D$1,MATCH($C23,$D$2:$D$19,0)-3,0)
where MATCH finds the position of the date and OFFSET gives you the value in 3 rows back. Similar 3rd month forward.
To SUM three months in addition you find the position of the Reg column in your range, define in OFFSET the height of your range in 3 cells back/forward from current date and given Reg cell, and sum the range. Finally
=SUM(OFFSET($D$1,MATCH($C23,$D$2:$D$19,0)-3,MATCH($D23,$D$1:$G$1,0)-1,3))
That was back, forward is simular. All set is in attached file.