Getting #INVALID VALUE error with INDEX/COLLECT function

I'm trying to pull distinct values from a subset of a range. I'm using the following formula:

=INDEX(DISTINCT(COLLECT({Subject}, {Site Number}, {Metadata Site Number})), [Unique ID]@row, 0)

I'm looking to generate a list of distinct values that are for a specific subject (patient) that's at a specific site, which is referenced from a different file. Each time I apply this formula I get the #INVALID VALUE error.

I've successfully used this format in other files. Would appreciate any insights

Tags:

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!