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.

Distinct and Countifs even possible?

I am trying to find the number of induvial emails who submitted a form each week, each month, and each year. I have a form where users add in their own email and anyone who was involved in filling it out. I want to count the number of unique emails listed during different time frames. I tried to use =COUNTIFS([Contact List]:[Contact List], Distinct(@cell)) and that didn't work.

Tags:

Answers

  • Community Champion

    Hi @Mae Peterson

    In such a case, I would create a separate sheet to get the distinct emails using the INDEX(DISTINCT({email range}), row index) formula.

    Then, use the COUNTIF function with the email.

    In the demo sheet below, I look up another sheet with the following formula;

    [Email] =INDEX(DISTINCT({Sample Email and Date Data : Email}), [#]@row)

    Site faviconSmartsheet


    Then, I can use the emails to get email statistics based on the date using the following formula.

    [ALL] =COUNTIFS({Sample Email and Date Data : Email}, Email@row)
    [May] =COUNTIFS({Sample Email and Date Data : Email}, Email@row, {Sample Email and Date Data : Date}, MONTH(@cell) = 5)
    [Monday] =COUNTIFS({Sample Email and Date Data : Email}, Email@row, {Sample Email and Date Data : Date}, WEEKDAY(@cell) = 2)

    Below is the sample date sheet.

    Site faviconSmartsheet

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!

Trending in Formulas and Functions