Sep 27 2023 04:43 AM
Hi,
I was looking for a formula to check a range of cells for either of the three
1. 'Passed'
2. 'Failed'
3. Blank Cell
If all cells in the range have 'Passed' the result cell should return 'Passed'
If at least one cell has 'Failed' the result cell should return 'Failed'
And if at least one cell is Blank, the result cell should remain Blank or maybe return 'Incomplete'
I have created a formula to fulfill the Pass/Fail conditions =IF(COUNTIF(G7:G44,"Failed"),"Failed","Passed")
but unable to include the condition for Blank cells.
Please help with modifications to include the Blank cell condition.
Thanks
Sep 27 2023 05:06 AM
@Anto93 Following the same logic, try this:
=IF(COUNTIF(G7:G44,""),"",IF(COUNTIF(G7:G44,"Failed"),"Failed","Passed"))
Sep 27 2023 05:09 AM
SolutionHi @Anto93,
I apologize for my previous answer, which was incorrect. I have re-read your question carefully and researched and tested different solutions. Here is the best working solution I have found:
=IF(COUNTIF(G7:G44,"Failed")>0,"Failed",IF(COUNTBLANK(G7:G44)>0,"Incomplete","Passed"))
This formula works as follows:
Please click Mark as Best Response & Like if my post helped you to solve your issue.
This will help others to find the correct solution easily. It also closes the item.
If the post was useful in other ways, please consider giving it Like.
Kindest regards,
Leon Pavesic
(LinkedIn)
Sep 27 2023 05:15 AM - edited Sep 27 2023 05:21 AM
Riny_van_Eekelen Thanks a lot for the response. I tried it like this now. But unfortunately now its returning me Blank irrespective of if the cells in range have 'Failed' or 'Passed'
Sep 27 2023 05:20 AM