Forum Discussion
Help on Excel formula
- Sep 02, 2021
Fill in the test case in all rows of the Actual sheet. Otherwise, the formulas become very complicated.
In B2 on the Expected sheet:
=IF(COUNTIFS(Actual!$A:$A,$A2,Actual!D:D,"fail*"),"fail",IF(COUNTIFS(Actual!$A:$A,$A2,Actual!D:D,"block*"),"Blocked",IF(COUNTIFS(Actual!$A:$A,$A2,Actual!D:D,"in progres*"),"In Progress","Pass")))
Fill down and to the right.
Fill in the test case in all rows of the Actual sheet. Otherwise, the formulas become very complicated.
In B2 on the Expected sheet:
=IF(COUNTIFS(Actual!$A:$A,$A2,Actual!D:D,"fail*"),"fail",IF(COUNTIFS(Actual!$A:$A,$A2,Actual!D:D,"block*"),"Blocked",IF(COUNTIFS(Actual!$A:$A,$A2,Actual!D:D,"in progres*"),"In Progress","Pass")))
Fill down and to the right.
- Dinesh0911Sep 02, 2021Copper ContributorThank you so much HansVogelaar, it is working as I expected.
- Dinesh0911Sep 03, 2021Copper ContributorHansVogelaar, if all the step status are "N/A" it is being return as " Pass", Can you please help me for keeping the value as "N/A" when all the values are 'N/A"?
- HansVogelaarSep 03, 2021MVP
Like this:
=IF(COUNTIFS(Actual!$A:$A,$A2,Actual!D:D,"fail*"),"Fail",IF(COUNTIFS(Actual!$A:$A,$A2,Actual!D:D,"block*"),"Blocked",IF(COUNTIFS(Actual!$A:$A,$A2,Actual!D:D,"in progres*"),"In Progress",IF(COUNTIFS(Actual!$A:$A,$A2,Actual!D:D,"Pass")=0,"N/A","Pass"))))