Count Distinct Collect Find not calculating correctly

Options
Paul G.
Paul G. ✭✭✭✭✭

I have a formula, =COUNT(DISTINCT(COLLECT({CW Number}, {Opportunity Type}, FIND(Category@row, @cell) > 0))), which is not calculating correctly. See image below. For the Volunteer Type of Tutoring it lists 8 but it should be 9. All other calculations using this formula calculate at 1 or 0. The totals should be much higher. The totals are calculated from a sheet which receives information from a Smartsheet form the Volunteers complete on a regular basis.

The purpose of the formula is to count the number of volunteers who have provided a specific volunteer service. It is not to count the number of times the specific volunteer service.The categories which are used in this formula are explained below.

"CW Number" is the unique number issued to the volunteer and a way to identify the volunteer. Each volunteer enters their CW Number when completing the form.

"Opportunity Type" is the different Volunteer categories (Clerical, Driver, etc.) which the volunteers indicate they were active in for the time period they are entering into the form. The volunteer selects the category from a drop down list. They can select more than one category. So that is why the Find function is being used.

In addition, I would like to add $Category@row, {Year}, =$Year$2 to the formula to calculate the totals for a specific year. {Year} is the year a volunteer type was performed for. This is a "helper" column which has been added to the sheet the Smartsheet form feeds into. The helper column calculates the year based on the Report End Date the volunteer indicates when completing the form. $Year$2 is the specific cell on the metrics sheet which indicates the year the metrics sheet is developed for. A dashboard is developed form the metrics sheet.

Any help would greatly be appreciated.

image.png


Best Answers

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!