SOLVED

MULTIPLE CONDITION FORMULAS - ASSISTANCE NEEDED

%3CLINGO-SUB%20id%3D%22lingo-sub-1565539%22%20slang%3D%22en-US%22%3EMULTIPLE%20CONDITION%20FORMULAS%20-%20ASSISTANCE%20NEEDED%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1565539%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20trying%20to%20implement%20the%20CDC's%20criteria%20to%20discharge%20a%20patient%20frome%20home%20isolation%20into%20a%20spreadsheet%20to%20automate%20the%20process%20as%20much%20as%20it%20can%20be.%20The%20criteria%20they%20recommend%20to%20use%20is%20as%20follows%3A%26nbsp%3B%3C%2FP%3E%3CUL%3E%3CLI%3E%3CFONT%20size%3D%223%22%3EAsymptomatic%3A%2010%20days%20have%20passed%20since%20first%20positive%20viral%20diagnostic%20test.%3C%2FFONT%3E%3C%2FLI%3E%3CLI%3E%3CFONT%20size%3D%223%22%3EMild%2FModerate%3A%26nbsp%3B%3CSPAN%3EAt%20least%2010%20days%20have%20passed%20%3C%2FSPAN%3E%3CEM%3Esince%20symptoms%20first%20appeared%3C%2FEM%3E%3CSTRONG%3E%20and%3C%2FSTRONG%3E%3CFONT%20face%3D%22%26quot%3BOpen%20Sans%26quot%3B%2Capple-system%2Cblinkmacsystemfont%2C%26quot%3BSegoe%20UI%26quot%3B%2C%26quot%3BHelvetica%20Neue%26quot%3B%2Carial%2Csans-serif%22%3E%20at%20least%2024%20hours%20have%20passed%20%3C%2FFONT%3E%3CEM%3Esince%20last%20%3C%2FEM%3Efever%20without%20the%20use%20of%20fever-reducing%20medications%20%3CSTRONG%3E%3CSTRONG%3Eand%20%3C%2FSTRONG%3E%3C%2FSTRONG%3ESymptoms%20(e.g.%2C%20cough%2C%20shortness%20of%20breath)%20have%20improved.%3C%2FFONT%3E%3C%2FLI%3E%3CLI%3E%3CFONT%20size%3D%223%22%3ESevere%3A%26nbsp%3B%3CSPAN%3EAt%20least%2020%20days%20have%20passed%20%3C%2FSPAN%3E%3CEM%3Esince%20symptoms%20first%20appeared%20%3CSTRONG%3Eand%3C%2FSTRONG%3E%3CFONT%20face%3D%22%26quot%3BOpen%20Sans%26quot%3B%2Capple-system%2Cblinkmacsystemfont%2C%26quot%3BSegoe%20UI%26quot%3B%2C%26quot%3BHelvetica%20Neue%26quot%3B%2Carial%2Csans-serif%22%3E%20at%20least%2024%20hours%20have%20passed%20%3C%2FFONT%3E%3CEM%3Esince%20last%20%3C%2FEM%3Efever%20without%20the%20use%20of%20fever-reducing%20medications%20%3CSTRONG%3E%3CSTRONG%3Eand%20%3C%2FSTRONG%3E%3C%2FSTRONG%3ESymptoms%20(e.g.%2C%20cough%2C%20shortness%20of%20breath)%20have%20improved.%3C%2FEM%3E%3C%2FFONT%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%3CFONT%20size%3D%223%22%3E%3CEM%3E%3CSPAN%3EHere's%20a%20quick%20mockup%20of%20how%20my%20data%20is%20arranged%3A%3C%2FSPAN%3E%3C%2FEM%3E%3C%2FFONT%3E%3C%2FP%3E%3CTABLE%20width%3D%22668%22%3E%3CTBODY%3E%3CTR%3E%3CTD%20width%3D%2250.87%22%20height%3D%2285%22%3E%26nbsp%3B%3C%2FTD%3E%3CTD%20width%3D%2262.2%22%20height%3D%2285%22%3E%3CFONT%20size%3D%221%22%3EPOSITIVE%20PCR%20TEST%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2263.99%22%20height%3D%2285%22%3E%3CFONT%20size%3D%221%22%3ESTART%20OF%20SYMPTOMS%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2286%22%20height%3D%2285%22%3E%3CFONT%20size%3D%221%22%3ECLASSIFICATION%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2264%22%20height%3D%2285%22%3E%3CFONT%20size%3D%221%22%20color%3D%22%23000000%22%3EDAYS%20WITH%20SYMPTOMS%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2264%22%20height%3D%2285%22%3E%3CFONT%20size%3D%221%22%3ELAST%20DAY%20OF%20SYMPTOMS%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2286%22%20height%3D%2285%22%3E%3CFONT%20size%3D%221%22%3EASYMPTOMATIC%20DAYS%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2262.99%22%20height%3D%2285%22%3E%3CFONT%20size%3D%221%22%3ECURRENT%20DATE%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2264.95%22%20height%3D%2285%22%3E%3CFONT%20size%3D%221%22%3EDURATION%20OF%20ISOLATION%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2262%22%20height%3D%2285%22%3E%3CSTRONG%3E%3CFONT%20size%3D%221%22%20color%3D%22%23ff0000%22%3EPROBABLE%20RETURN%20DATE%3C%2FFONT%3E%3C%2FSTRONG%3E%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20width%3D%2250.87%22%20height%3D%2230%22%3E%3CFONT%20size%3D%221%22%3E%231%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2262.2%22%20height%3D%2230%22%3E%3CFONT%20size%3D%221%22%3E04%2F08%2F2020%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2263.99%22%20height%3D%2230%22%3E%3CFONT%20size%3D%221%22%3ENA%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2286%22%20height%3D%2230%22%3E%3CFONT%20size%3D%221%22%3EASYMPTOMATIC%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2264%22%20height%3D%2230%22%3E%3CFONT%20size%3D%221%22%3E0%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2264%22%20height%3D%2230%22%3E%3CFONT%20size%3D%221%22%3ENA%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2286%22%20height%3D%2230%22%3E%3CFONT%20size%3D%221%22%3E16%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2262.99%22%20height%3D%2230%22%3E%3CFONT%20size%3D%221%22%3E20%2F08%2F2020%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2264.95%22%20height%3D%2230%22%3E%3CFONT%20size%3D%221%22%3E16%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2262%22%20height%3D%2230%22%3E%26nbsp%3B%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20width%3D%2250.87%22%20height%3D%2230%22%3E%3CFONT%20size%3D%221%22%3E%232%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2262.2%22%20height%3D%2230%22%3E%3CFONT%20size%3D%221%22%3E10%2F08%2F2020%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2263.99%22%20height%3D%2230%22%3E%3CFONT%20size%3D%221%22%3E10%2F08%2F2020%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2286%22%20height%3D%2230%22%3E%3CFONT%20size%3D%221%22%3EMILD%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2264%22%20height%3D%2230%22%3E%3CFONT%20size%3D%221%22%3E7%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2264%22%20height%3D%2230%22%3E%3CFONT%20size%3D%221%22%3E17%2F08%2F2020%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2286%22%20height%3D%2230%22%3E%3CFONT%20size%3D%221%22%3E3%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2262.99%22%20height%3D%2230%22%3E%3CFONT%20size%3D%221%22%3E20%2F08%2F2020%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2264.95%22%20height%3D%2230%22%3E%3CFONT%20size%3D%221%22%3E10%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2262%22%20height%3D%2230%22%3E%26nbsp%3B%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20width%3D%2250.87%22%20height%3D%2230%22%3E%3CFONT%20size%3D%221%22%3E%233%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2262.2%22%20height%3D%2230%22%3E%3CFONT%20size%3D%221%22%3E08%2F08%2F2020%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2263.99%22%20height%3D%2230%22%3E%3CFONT%20size%3D%221%22%3E08%2F08%2F2020%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2286%22%20height%3D%2230%22%3E%3CFONT%20size%3D%221%22%3EMODERATE%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2264%22%20height%3D%2230%22%3E%3CFONT%20size%3D%221%22%3E5%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2264%22%20height%3D%2230%22%3E%3CFONT%20size%3D%221%22%3E13%2F08%2F2020%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2286%22%20height%3D%2230%22%3E%3CFONT%20size%3D%221%22%3E7%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2262.99%22%20height%3D%2230%22%3E%3CFONT%20size%3D%221%22%3E20%2F08%2F2020%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2264.95%22%20height%3D%2230%22%3E%3CFONT%20size%3D%221%22%3E12%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2262%22%20height%3D%2230%22%3E%26nbsp%3B%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20width%3D%2250.87%22%20height%3D%2230%22%3E%3CFONT%20size%3D%221%22%3E%234%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2262.2%22%20height%3D%2230%22%3E%3CFONT%20size%3D%221%22%3E07%2F08%2F2020%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2263.99%22%20height%3D%2230%22%3E%3CFONT%20size%3D%221%22%3E05%2F08%2F2020%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2286%22%20height%3D%2230%22%3E%3CFONT%20size%3D%221%22%3EMODERATE%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2264%22%20height%3D%2230%22%3E%3CFONT%20size%3D%221%22%3E15%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2264%22%20height%3D%2230%22%3E%3CFONT%20size%3D%221%22%3ENA%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2286%22%20height%3D%2230%22%3E%3CFONT%20size%3D%221%22%3ENA%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2262.99%22%20height%3D%2230%22%3E%3CFONT%20size%3D%221%22%3E20%2F08%2F2020%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2264.95%22%20height%3D%2230%22%3E%3CFONT%20size%3D%221%22%3E15%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2262%22%20height%3D%2230%22%3E%26nbsp%3B%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20width%3D%2250.87%22%20height%3D%2230%22%3E%3CFONT%20size%3D%221%22%3E%235%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2262.2%22%20height%3D%2230%22%3E%3CFONT%20size%3D%221%22%3E02%2F08%2F2020%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2263.99%22%20height%3D%2230%22%3E%3CFONT%20size%3D%221%22%3E02%2F08%2F2020%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2286%22%20height%3D%2230%22%3E%3CFONT%20size%3D%221%22%3ESEVERE%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2264%22%20height%3D%2230%22%3E%3CFONT%20size%3D%221%22%3E10%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2264%22%20height%3D%2230%22%3E%3CFONT%20size%3D%221%22%3E12%2F08%2F2020%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2286%22%20height%3D%2230%22%3E%3CFONT%20size%3D%221%22%3E8%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2262.99%22%20height%3D%2230%22%3E%3CFONT%20size%3D%221%22%3E20%2F08%2F2020%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2264.95%22%20height%3D%2230%22%3E%3CFONT%20size%3D%221%22%3E18%3C%2FFONT%3E%3C%2FTD%3E%3CTD%20width%3D%2262%22%20height%3D%2230%22%3E%26nbsp%3B%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20what%20I'm%20trying%20to%20%3CFONT%3Eautomatically%3C%2FFONT%3E%20get%20is%20the%20%3CSTRONG%3EPROBABLE%20RETURN%20DATE%3C%2FSTRONG%3E%20column%20but%20the%20formula%20should%20check%20for%20all%20the%20criteria%20(plus%20an%20extra%20one)%20kind%20of%20like%20this%3A%3C%2FP%3E%3CUL%3E%3CLI%3EIf%20the%20cell%20from%20Classification%20Column%20says%3A%20%22ASYMPTOMATIC%22%20then%20the%20%3CSPAN%3E%22PROBABLE%20RETURN%20DATE%22%20should%20be%20%3C%2FSPAN%3E10%20Days%20plus%20Positive%20PCR%20Test%20Date.%3C%2FLI%3E%3CLI%3EAfter%20that%2C%20the%20formula%20should%20check%20if%20the%20value%20of%20the%20cell%20inside%20ASYMPTOMATIC%20DAYS%20Days%20is%20greater%20than%203%20and%2C%20if%20it%20fails%2C%20it%20should%20say%20NA%20but%2C%20if%20it%20passes%2C%20then%20it%20should%20do%20the%20following%3A%3CUL%3E%3CLI%3E%3CSPAN%3EIf%20the%20cell%20from%20%3C%2FSPAN%3EClassification%20Column%20says%3A%20%22MILD%22%20or%20%22MODERATE%22%20then%20the%20%3CSPAN%3E%22PROBABLE%20RETURN%20DATE%22%20should%20be%20%3C%2FSPAN%3E10%20Days%20plus%20the%20date%20from%20%3CSPAN%3ESTART%20OF%20SYMPTOMS%3C%2FSPAN%3E%20OR%203%20days%20after%20the%20last%20days%20of%20symptoms%20if%20the%20value%20from%20the%20DAYS%20WITH%20SYMPTOMS%20is%20greater%20than%2010.%3C%2FLI%3E%3CLI%3E%3CSPAN%3EIf%20the%20cell%20from%20%3C%2FSPAN%3EClassification%20Column%20says%3A%20%22SEVERE%22%20then%20the%20%3CSPAN%3E%22PROBABLE%20RETURN%20DATE%22%20should%20be%20%3C%2FSPAN%3E20%20Days%20plus%20the%20date%20from%20START%20OF%20SYMPTOMS%20%3CSPAN%3EOR%203%20days%20after%20the%20last%20days%20of%20symptoms%20if%20the%20value%20from%20the%20DAYS%20WITH%20SYMPTOMS%20is%20greater%20than%2020.%3C%2FSPAN%3E%3C%2FLI%3E%3C%2FUL%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3EI%20really%20hope%20I%20was%20able%20to%20explain%20myself%20properly.%20Any%20advice%20is%20welcomed.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1565539%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1565601%22%20slang%3D%22en-US%22%3ERe%3A%20MULTIPLE%20CONDITION%20FORMULAS%20-%20ASSISTANCE%20NEEDED%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1565601%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F749166%22%20target%3D%22_blank%22%3E%40BattleBorn%3C%2FA%3E%26nbsp%3B%20I%20think%20the%20following%20will%20work.%26nbsp%3B%20note%2C%20I'm%20assuming%20that%20Asymptomatic%20will%20have%20%22na%22%20or%20the%20such%20(i.e.%20cause%20the%20error)%20and%20I%20use%20%2B3%20for%20days%20after%20last%20symptom%20even%20though%20the%20guidelines%20say%2024hrs%20not%2072hrs.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-excel%22%3E%3CCODE%3E%3DIFERROR(MAX(C2%2B10*(1%2B(D2%3D%22SEVERE%22))%2CIFERROR(F2%2B3%2CTODAY()%2B3))%2CB2%2B10)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1565696%22%20slang%3D%22en-US%22%3ERe%3A%20MULTIPLE%20CONDITION%20FORMULAS%20-%20ASSISTANCE%20NEEDED%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1565696%22%20slang%3D%22en-US%22%3E%3CP%3EI%20added%20those%20extra%203%20days%20as%20an%20additional%20precaution%20measure%20after%20reviewing%20the%20WHO's%20guidelines.%20So%20it's%20sort%20of%20a%20combination%20of%20both.%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20think%20this%20might%20be%20working.%20%3C%2FSPAN%3EThanks%20so%20much%2C%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F570951%22%20target%3D%22_blank%22%3E%40mtarler%3C%2FA%3E.%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

I'm trying to implement the CDC's criteria to discharge a patient frome home isolation into a spreadsheet to automate the process as much as it can be. The criteria they recommend to use is as follows: 

  • Asymptomatic: 10 days have passed since first positive viral diagnostic test.
  • Mild/Moderate: At least 10 days have passed since symptoms first appeared and at least 24 hours have passed since last fever without the use of fever-reducing medications and Symptoms (e.g., cough, shortness of breath) have improved.
  • Severe: At least 20 days have passed since symptoms first appeared and at least 24 hours have passed since last fever without the use of fever-reducing medications and Symptoms (e.g., cough, shortness of breath) have improved.

Here's a quick mockup of how my data is arranged:

 POSITIVE PCR TESTSTART OF SYMPTOMSCLASSIFICATIONDAYS WITH SYMPTOMSLAST DAY OF SYMPTOMSASYMPTOMATIC DAYSCURRENT DATEDURATION OF ISOLATIONPROBABLE RETURN DATE
#104/08/2020NAASYMPTOMATIC0NA1620/08/202016 
#210/08/202010/08/2020MILD717/08/2020320/08/202010 
#308/08/202008/08/2020MODERATE513/08/2020720/08/202012 
#407/08/202005/08/2020MODERATE15NANA20/08/202015 
#502/08/202002/08/2020SEVERE1012/08/2020820/08/202018 

 

So what I'm trying to automatically get is the PROBABLE RETURN DATE column but the formula should check for all the criteria (plus an extra one) kind of like this:

  • If the cell from Classification Column says: "ASYMPTOMATIC" then the "PROBABLE RETURN DATE" should be 10 Days plus Positive PCR Test Date.
  • After that, the formula should check if the value of the cell inside ASYMPTOMATIC DAYS Days is greater than 3 and, if it fails, it should say NA but, if it passes, then it should do the following:
    • If the cell from Classification Column says: "MILD" or "MODERATE" then the "PROBABLE RETURN DATE" should be 10 Days plus the date from START OF SYMPTOMS OR 3 days after the last days of symptoms if the value from the DAYS WITH SYMPTOMS is greater than 10.
    • If the cell from Classification Column says: "SEVERE" then the "PROBABLE RETURN DATE" should be 20 Days plus the date from START OF SYMPTOMS OR 3 days after the last days of symptoms if the value from the DAYS WITH SYMPTOMS is greater than 20.

I really hope I was able to explain myself properly. Any advice is welcomed. 

2 Replies
Best Response confirmed by BattleBorn (New Contributor)
Solution

@BattleBorn  I think the following will work.  note, I'm assuming your table starts in the upper left corner cell of A1 and that Asymptomatic will have "na" or the such (i.e. cause the error to return the B2+10) and I use +3 for days after last symptom even though the guidelines say 24hrs not 72hrs and finally if last day of symptoms is NA (or other non-date) I used TODAY() + 3 as the estimate because I didn't know what you wanted.

 

 

 

=IFERROR(MAX(C2+10*(1+(D2="SEVERE")),IFERROR(F2+3,TODAY()+3)),B2+10)

 

 

 

I added those extra 3 days as an additional precaution measure after reviewing the WHO's guidelines. So it's sort of a combination of both.

I think this might be working. Thanks so much, @mtarler.