Please see attached file the layout shown in sheet1.
the most recent follow up date up to 30 days ( example if I am looking at the overview today 17/11/2017, I'd like to see the patient appointment from today up to 17/12/2017. I donot want to see those who have appointment after 17/12/2017 or before 17/11/2017 on overview page. Please ask if it is not clear. in Patient data tab all date are highlighted in Pink needs to be shown up in Overview tab automatically.
Many Thanks
1] "Most Recent Follow-up Due Date", in Sheet1 F5, copied down:
=IFERROR(AGGREGATE(14,6,Overview!G$5:G$26/(TODAY()<=Overview!G$5:G$26)/(EDATE(TODAY(),1)>=Overview!G$5:G$26),ROWS($1:1)),"")
2] Suggest in Patient Data Sheet, Column R "Date Follow-up Due",
Your formula >>
=IF(Q4="1-month follow-up ",IF(J3=""," ",IF(ISERROR(J3+30)," ",J3+30)),IF(Q4="6-month follow-up ",IF(J3=""," ",IF(ISERROR(J3+180)," ",J3+180)),IF(Q4="12-month follow-up ",IF(J3=""," ",IF(ISERROR(J3+360)," ",J3+360)))))
Changed to this (See Column X) >>
=IF(Q4="","",EDATE(LOOKUP(9^9,J$3:J4),LEFT(Q4,FIND("-",Q4)-1)))
3] See attached file
Regards
Bosco