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.

Counting single values with multiple criteria

✭✭✭
edited 02/07/24 in Formulas and Functions

I need a little help with a formula in Smartsheet, I am trying to count the number of employees who are over utilised (> 105) but some employees have multiple entries (same utilisation, so only need 1 entry in the count). Answer below should be 3


Best Answer

  • ✭✭✭
    Answer ✓

    @Keith Turk -

    Have you tried incorporating the formula function Distinct (https://help.smartsheet.com/function/distinct)?

    It will only look for unique values.

    I think in your case, you may want to opt for a Count/Distinct/Collect formula. This will count the unique values based on your parameters, in this case, the utilization being over 105.

    Based on your screenshot try this: =COUNT(DISTINCT(COLLECT(Name:Name, Utilisation:Utilisation, >105)))

    Name:Name would be the column housing the names and Utilisation:Utilisation would be the column housing the numbers.


    I hope this helps?

Answers

  • ✭✭✭
    Answer ✓

    @Keith Turk -

    Have you tried incorporating the formula function Distinct (https://help.smartsheet.com/function/distinct)?

    It will only look for unique values.

    I think in your case, you may want to opt for a Count/Distinct/Collect formula. This will count the unique values based on your parameters, in this case, the utilization being over 105.

    Based on your screenshot try this: =COUNT(DISTINCT(COLLECT(Name:Name, Utilisation:Utilisation, >105)))

    Name:Name would be the column housing the names and Utilisation:Utilisation would be the column housing the numbers.


    I hope this helps?

  • ✭✭✭

    Perfect, thanks Antonie, the DISTINCT function is new to me. The learning never stops. :)

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!

Trending in Formulas and Functions

  • I'm trying to create a SUMIF formula that looks at the salesperson name in a column and adds up or totals their $ sales in another column. To ultimately show in Dashboard of Totals Sales by Salesperso…
    User: "Allan Z"
    Answered ✓
    9
    2
  • Good day Smartsheet Team, Getting an unparseable error on this formula: =IF($Name@row <> "",(SUMIFS({Expense}, {Period},1, {Type}, OR(@cell = "RES602782", @cell = "RES602497")),"") Trying to pull in a…
    User: "stratman"
    Answered ✓
    15
    2
  • I have a sheet that compiles all the responses from a form. The sheet has multiple start and end date columns, but only one start and one end date cell is NOT blank depending on the activity selected …
    User: "m_anderson"
    Answered ✓
    13
    2