Sign in to join the conversation:
I am trying to give a percentage based on how 2 columns read. Column PassFailA and Column PassFailB. If both show Pass 100%, If A is Pass B is Fail or Vise Versa 50% and if both Fail 25%
Hello,
Thanks for the question. If I understand what you're looking to do correctly, this can be accomplished using a nested IF formula including the AND and OR functions. More on all of the available functions can be found here (https://help.smartsheet.com/functions), and we also have a blog post on how to build nested IF formulas which can be found here (https://www.smartsheet.com/blog/support-tip-build-nested-IF). Here's an example of how this could be written:
=IF(AND([Column PassFailA]@row = "Pass", [Column PassFailB]@row = "Pass"), 1, IF(AND(OR([Column PassFailA]@row = "Fail", [Column PassFailB]@row = "Fail"), OR([Column PassFailA]@row = "Pass", [Column PassFailB]@row = "Pass")), 0.5, IF(AND([Column PassFailA]@row = "Fail", [Column PassFailB]@row = "Fail"), 0.25)))
For this example I'm also using @row instead of the row's number within the cell reference. This will help make the formula more efficient as this sheet grows larger. More on @row can be found here (https://help.smartsheet.com/articles/2476491#row).
I've also included a screenshot of the outcomes for every scenario you listed. I'd also like to note that if either column is left blank, this formula will leave the % Column blank until both are set to either "Pass" or "Fail".
my formula is returning number of dates, as in adding dates.
Disregard. The problem was additional dates on collapsed child rows. Thank you. Good afternoon. I have created a metric sheet that was then used to create a chart. The formula is written as: =COUNTIF({Date of Visit}, IFERROR(YEAR(@cell ), 0) = Year@row ) This was then drug down for 4 rows. Rows 1, 2, and 4 have the correct…
My goal is to have the percentage update automatically each day. If the task has a duration of 45 days and we are 3 days in, I need it to show the percentage complete. It would cap at 100% once it has reached the end date