Forum Discussion
jaolvera
Sep 08, 2023Brass Contributor
by row formula
Hello, I needed a formula that would return a yes or no result by row in column A, if the dates in column that correspond with the patient IDs in column C are within 30 days of each other. some bac...
Patrick2788
Sep 08, 2023Silver Contributor
It looks like your data is tabled. BYROW will Spill and Tables are scalar-based. If you convert the table to a range the error may go away.
jaolvera
Sep 08, 2023Brass Contributor
it still didnt work now some cells say CALC error on the cells
- Patrick2788Sep 08, 2023Silver ContributorAre you able to share an anonmyized copy of the workbook?
- jaolveraSep 08, 2023Brass Contributor
- Patrick2788Sep 08, 2023Silver Contributor
My rendition:
=LET( GetDates, LAMBDA(row, LET( dates, FILTER(DtCreate, PatientID = row, 0), diff, DROP(dates, 1) - DROP(dates, -1), IFERROR(IF(MIN(diff) <= 28, "Yes", ""), "") ) ), BYROW(PatientID, GetDates) )