Need help pulling distinct count from another sheet

Hi. I am creating a rollup sheet using two separate directories imported onto separate sheets. Looking for Unique NPI and Unique locations.

The following formula works for the first entry, but is returning 1 for the next 3. =COUNT(DISTINCT(COLLECT({DE Location ID}, {DE Benefit Name}, "vision", {DE Client Name}, CONTAINS([Client Name]@row, @cell))))

=COUNT(DISTINCT(COLLECT({DC Location ID}, {DC Benefit Name}, "vision", {DC Client Name}, CONTAINS([Client Name]@row, @cell)))). The only difference is that the DC information is coming from the same directory but has 3 different clients. The NPI count seems to working fine.

Any suggestions?

Best Answer

  • Paul Newcome
    Paul Newcome ✭✭✭✭✭✭
    Answer ✓

    Yes and Yes. The leading zero creates a text string instead of a number. Inconsistent data types will cause issues.


    insert a new text/number column and use this as a column formula:

    =[Location ID]@row + ""


    Now everything will be converted to a text string for consistent data type, and you can reference this column in your cross sheet reference.

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!