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.

Return all Values

✭✭✭✭✭
edited 02/25/25 in Formulas and Functions

Hi,

I used a similar formula to return values based on a "filter" and I want to return all distinct values where "Risk Resilience Level" equals "Elevated Risk" or "High Risk".

=INDEX(DISTINCT(COLLECT({Supplier Name}, {Risk Level}, "Elevated Risk")), [Row ID]@row)

This now returns a "#Invalid Data Type".

{Supplier Name} is a text field

{Risk Level} is a text field (some are blank).

What can I do to fix this?

Best Answer

  • ✭✭✭✭✭
    Answer ✓

    I am not sure why, but all of a sudden I opened it and it was returning valid responses.

    Here is what I currently have that started working all of a sudden:

    =INDEX(DISTINCT(COLLECT({Supplier Name}, {Risk Level}, "Elevated Risk")), [Row ID]@row)

    I don't know if I changed something accidentally or what, but it's functioning now.

Answers

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