Sum values in Column B for distinct values in column A

Options

Hi All,

So we use smartsheet to have a running yearly log of samples submitted for analysis. I am hoping to create a list of unique values from column A (Emails of those who submitted samples) and then use a sumif to count number of samples submitted from the data in column B. We would like to determine who our frequent fliers are for sample submissions and show it on a dashboard. I have included a screenshot below that shows the two columns A=submitter and B=#Samples, with the desired output being what we would have in a metric sheet housing the sum of samples by submitter for a bar chart. Any help would be greatly appreciated!


Best Answer

Answers

  • Cassie Walker
    Cassie Walker ✭✭✭✭
    edited 10/12/20
    Options

    Ramzi--

    Perfect! Thank you!! I entered this and it did exactly what I needed, and then I created a report to only display submitters with a value in the desired output column and used this to make a chart! thank you so much for your helpful and fast response! :) It will make my life a lot easier moving forward!


    One final question @Ramzi K : What would I change in the syntax to allow it to be a column formula so I don't have to click and drag the formula down? Or would that mess up how it only happens at one instance of the duplicate?

  • Ramzi K
    Ramzi K ✭✭✭✭✭
    edited 10/12/20
    Options

    @Cassie Walker

    Glad to help!

    Unfortunately, due to the a direct cell reference (Submitter$1) you can't do that. If having a column formula is a hard requirement for you, I can try to accomplish what you need in a different way, but it will likely be more complicated.

    Cheers,

    Ramzi

    Ramzi Khuri - Principal Consultant @ Cedar Tree Consulting (www.cedartreeconsulting.com)

    Feel free to email me: ramzi@cedartreeconsulting.com

    💡 If this post helped you out, please help the Community by marking it as the accepted answer/helpful.

  • Cassie Walker
    Cassie Walker ✭✭✭✭
    Options

    @Ramzi K , ok I should be able to work with this. I am just not the primary user of the sheet, so I will make a reminder to go in and drag the formula down every so often. Thanks again!

  • Josh Wilson
    Options

    @Ramzi K I just found this post from a few years ago and it's the closest I have come to solving my problem. How would you go about making this into a column formula?

    Your formula worked great except I have about 6000 rows that I would need to drag the formula down to. And also, the source sheet gets updated weekly via a data shuttle.

    Here is what I am trying to do: I am attempting to get a list of all client's that have 0 verified hours. Ultimately I would like to move a copy of a row or at least display on a separate sheet, a simple list of all clients that had 0 TOTAL verified hours for the date range. (For us, this means the client was not seen at all). This is an important compliance piece we are trying to solve with Smartsheet since the data is already being imported and available in another data shuttle import.


Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!