Nested IF in Checkbox Column when Referencing Another Sheet

Have an issue I cannot seem to resolve to automate a checkbox.

I have a "Content" sheet that is data coming from a source outside Smartsheet. Relevant columns look like this:

I have a separate sheet (we'll call it "Product Family") that analyzes the data on the Content sheet. Relevant columns look like this:

I want to automate the checkbox columns starting at "Data Sheet" and ending at "Demo." The box should be checked if:

  1. The Content Type in the Content Type column on the Content sheet matches the content type in the column headers on the Product Family sheet; AND
  2. The Tag from the Tags column on the Product Family sheet appears in any of the columns in the range spanning Product Family through PF5 on the Content sheet.

I tried this formula:

=IF(AND(CONTAINS([Tags]@row, {Product Family Range 1}), {Product Family Range 2}, "Data Sheets"), 1, 0)

(Range 1 is Product Family through PF5, and Range 2 is the Content Type column)

I get an INVALID DATA TYPE error. The checkbox columns are NOT restricted. Not sure if it's relevant, but the data in the Tags column on the Product Family sheet is via a cell link to another sheet not shown here.


Any suggestions for how to resolve?

Best Answer

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!