Formulas and Functions

Formulas and Functions

Ask for help with your formula and find examples of how others use formulas and functions to solve a similar problem.

What's your Best Error Checking Column Using Formula?

✭✭✭✭✭
edited 01/20/25 in Formulas and Functions

I have discovered multiple ways to create a error checking column that looks in all columns to see if there's a broken formula somewhere. However, all the ways I have found aren't very elegant and don't provide the type of details I want.

Example:

=IF(ISERROR([First Column in Sheet]@row:[Last Column in Sheet]@row), 1)

This works to be blank if I don't have any errors, but if there are errors, I get the kind of error in the result. Eg. "#BLOCKED" or "#UNPARSEABLE". etc.

It would be amazing to be able to identify all the errors in the columns. So if there's a #BLOCKED and an #UNPARSEABLE in the same row, it lists both side by side as the returned value. Or to somehow color the row using conditional formatting based on the type of error it is :)

Has anyone come up with a great formula they use to do better than this, that they would be willing to share? (Definitely something that uses a range instead of having to name individual columns, of course.)

-Neil

Answers

  • Community Champion

    Is the column you are placing your formula into contained within the range of [First Column in Sheet]@row:[Last Column in Sheet]@row? If so, that will result in receiving an error if there is an error anywhere else. You can try moving the error proofing column to the last column on the sheet and not including that in the reference. If you need/want the error proofing column somewhere in the middle of the sheet, you can use an OR statement to check all column to the left and right of the error proofing column as two individual ranges. That would look something like this:

    =IF(OR(ISERROR([First Column in Sheet]@row:[Column to the Left of Error Checking Column]@row), ISERROR([Column to the Right of Error Checking Column]@row:[Last Column in Sheet]@row)), 1, 0)

    My very intentionally error-filled test sheet:

  • ✭✭✭✭✭

    It would be before the [first column] or after [last column] in each row, and I wouldn't include it in the formula.

    I do really like your sheet. can you share the formulas?

    -Neil

  • Community Champion

    The formula from the screenshot above is:

    =IF(OR(ISERROR([First Column in Sheet]@row:[Column to the Left of Error Checking Column]@row), ISERROR([Column to the Right of Error Checking Column]@row:[Last Column in Sheet]@row)), 1, 0)

  • I can't quite get this formula to work. Does it only work on certain types of errors?

  • Community Champion

    Hmm… that is possible. I didn't check all errors.

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!

Trending in Formulas and Functions

  • I have a pretty basic sheet that I am using to develop a formula, and am encountering an issue I haven't seen before. The formula isn't including my second row for some reason. It isn't a huge issue f…
    User: "jjg279"
    Answered ✓
    9
    2
  • I'm sure that this is an easy fix but I've tried a bunch of different ways and can't get this to work. I need to get the max date from a sheet to feed it into my meta data sheet (dates are stored in d…
    User: "susanmgfin"
    Answered ✓
    8
    2
  • I need help to come up with the risk formula. I tried many different formulas and tried to modify it but just can't seem to have desired results. So these are the conditions I MUST meet: Program is a …
    User: "Ronak"
    Answered ✓
    29
    6