79084015

Date: 2024-10-13 19:51:43
Score: 1.5
Natty:
Report link

A solution using two separate tables, AllDiagList and PtDiag:

Table definitions

Then in table PtDiag, enter in the first cells

=LET(pt_diags, TRIM(TEXTSPLIT([@[PATIENT''S DIAGNOSIS(ES)]], ";")),
IF(SUM(ISNUMBER(XMATCH(AllDiagList[Diag], pt_diags)) * (AllDiagList[CARDIO] = "Y")), "Y", "N"))
=LET(pt_diags, TRIM(TEXTSPLIT([@[PATIENT''S DIAGNOSIS(ES)]], ";")),
IF(SUM(ISNUMBER(XMATCH(AllDiagList[Diag], pt_diags)) * (AllDiagList[RESP] = "Y")), "Y", "N"))

Tables and result

Please let me know if you need further explanation of the steps.

Reasons:
  • RegEx Blacklisted phrase (2.5): Please let me know
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: nkalvi