A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi,
Would the following work for you ?
=IF(COUNTA(B3:B31)=COUNTIF(B3:B31,"P"), "Passed", "Failed")
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi there.
I've been at this for hours (seriously) and I just cant get it right. I have a range of data B3:B31 which needs to contain a P or F for a pass or fail. I have conditionally formatted the cells already to show a red or green cell depending on the outcome.
Now the hard part...... im trying to insert a formula to determine whether the result of the data in B3:B31 results in a pass or fail. Essentially 1 fail in this range results is an overall fail. Only a 100% p score can be a pass Can someone help me with the appropriate formula to do this? Ive tried this =IF(B3:B31="p","Pass","Fail") and its telling me its wrong.
Thank you.
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Answer accepted by question author
Hi,
Would the following work for you ?
=IF(COUNTA(B3:B31)=COUNTIF(B3:B31,"P"), "Passed", "Failed")
Another way to get to work is as below
=IF(SUBTOTAL(3,B3:B31)=COUNTIFS(B3:B31,"P"),"Pass","Fail")
Logic is:
==> If both values equals this means there are only Ps in the range (B3:B31), if not, there's at least one non-P. This works in your case as you're supposed to only have F, P or blanks
Hope this makes sense & helps.
Feel free to use the Mark as Answer link on the proposed formula - this might help someone else...
YES!!!! Oh my goodness that has made my day. Is there any way you can break it down to help me understand what you did so in future I may know what im doing.
Thank you.
=IF(MAX(B3:B31)="P","Pass",IF(MAX(B3:B31)="F","Fail"))
I also tried the above and its just telling me a constant Fail. My knowledge of formulas is quite basic and many efforts have been a copy and paste from other queries to no avail.