# COUNTIFS with DISTINCT

Employee
This discussion was created from comments split from: Countifs with Distinct?.

• Hello Everone,

I am new on the community, though I have been using Smartsheet for few years, (I am French, maybe my English will be different than yours sorry about that).

I came here to look for an answer to my problem. I am trying to use the Distinct function combine with countifs, but I can't get it to work

.Here is what I am trying to do.

I collect a report of my workers days from a form on a sheet with the names, date and all other type of info I need from the job site.

I am trying to extract from that sheet how many different days the man have work on a month, knowing that I can have 2 or 3 input for a same day (morning on one job and afternoon on another one)

=COUNTIFS({Repports JOBSITE 2021 Names}; =Name@row; {Repports JOBSITE 2021 Month}; =Month@row; {Repports JOBSITE 2021 Year}; =Year@row)

This formula give me the count of input by worker but it doesn't give the exact number of workday.

I can provide you with more info if you need to understand better my problem.

I would very much appreciate any input that can help me go forward with this.

I could use this type of function for many of my Smartsheet tables.

Thank you for taking the time to read.

Olivier

ABC Construction

• ✭✭✭✭✭✭

I hope you're well and safe!

Welcome to the Community and the wonderful world of Smartsheet!

Can you describe your process in more detail and maybe share the sheet(s)/copies of the sheet(s) or some screenshots? (Delete/replace any confidential/sensitive information before sharing) That would make it easier to help. (share too, andree@workbold.com)

I hope that helps!

Be safe and have a fantastic week!

Best,

Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

Did my post(s) help or answer your question or solve your problem? Please support the Community by marking it Insightful/Vote Up or/and as the accepted answer. It will make it easier for others to find a solution or help to answer!

SMARTSHEET EXPERT CONSULTANT & PARTNER

Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35

Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.

• hello,

thank you for the reply, I can take some screenshot if you want but I am French my datas are mostly in French if you don't mind I can also share the files I think there are no sensitive datas (I will check first).

First screenshot the sheet the column highlighted are the ones were I get the datas for my other sheet

second screenshot the other sheet were I am trying to get a count of how many different days the worker work on a month, sometime they give 2 or more data (morning on one job and afternoon another one so I get 2 rows with the same day) see the formula in screenshot 2)

Thank you again for caring and helping, have a great week too.

• ✭✭✭✭✭✭

Happy to help!

Yes, please share what you can. That would make it easier to help. (share too, andree@workbold.com)

SMARTSHEET EXPERT CONSULTANT & PARTNER

Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35

Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.

• Did you see the 2 screenshots?

• ✭✭✭✭✭✭

Yes, I had a quick look, but it's always simpler looking at the sheets.

Let me know when you know if you can share or not.

SMARTSHEET EXPERT CONSULTANT & PARTNER

Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35

Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.

• Andrée, thank you

Paul Newcome has found the solution I was looking for.

Paul Newcome3:23 pm

I would suggest something along the lines of...

=COUNT(DISTINCT(COLLECT({Repports JOBSITE 2021 Date Column}; {Repports JOBSITE 2021 Names}; =Name@row; {Repports JOBSITE 2021 Month}; =Month@row; {Repports JOBSITE 2021 Year}; =Year@row)))

Have a good day

Olivier

• ✭✭✭✭✭✭

Happy to help. 👍️

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!